{"openapi":"3.0.2","info":{"title":"bria/fibo","description":"The request body Comfy Router accepts for the model \"bria/fibo\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"8eb9ffa0b379"},"paths":{"/v2/models/bria/fibo":{"post":{"operationId":"runRouterModel","summary":"Run bria/fibo synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"required":["instruction"]},{"required":["structured_instruction"]}],"description":"The Bria FIBO edit fields, shared by the v1 `POST /proxy/bria/v2/image/edit` request body and the Comfy Router input schema for `bria/fibo`. See the note above this component for why the two surfaces share properties but not `model_version`'s constraints.","example":{"images":["iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAC2klEQVR42u3TQQ0AQAgEMeTgX8W5gi8OjoROVgGhUdLhwgkEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAAkACQAJAAkACQAJAAkACQAJAAkACQAFjSy7SPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8IIAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASABIAEgASABIAEgASABIAEgASABIAEgASABIAAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAadSRm+WukYdfewAAAABJRU5ErkJggg=="],"instruction":"make the background light blue"},"properties":{"guidance_scale":{"default":5,"description":"Determines how closely the generated image should adhere to the instruction.","format":"float","maximum":5,"minimum":3,"type":"number"},"images":{"description":"The source image to be edited. Publicly available URL or Base64-encoded. Accepted formats JPEG, JPG, PNG, WEBP. Must contain exactly one item.","items":{"type":"string"},"maxItems":1,"minItems":1,"type":"array"},"instruction":{"description":"Text-based edit instruction (e.g., \"make the sky blue\", \"add a cat\"). Either instruction or structured_instruction must be provided.","type":"string"},"ip_signal":{"default":false,"description":"If true, returns a warning for potential IP content in the instruction.","type":"boolean"},"mask":{"description":"Optional mask image URL or Base64-encoded. Black areas will be preserved, white areas will be edited.","type":"string"},"model_version":{"description":"The version of the model to use. Comfy Router supplies this from the `{model}` path segment, so omit it there; the value Bria runs is `FIBO`, which the v1 route also defaults to when the field is absent. Not constrained to an enum on this half: Router writes the value in after the caller's body has been validated.","nullable":true,"type":"string"},"negative_prompt":{"description":"A text prompt specifying concepts, styles, or objects to exclude from the edited image.","type":"string"},"prompt_content_moderation":{"default":true,"description":"If true, returns 422 on instruction moderation failure.","type":"boolean"},"seed":{"description":"Seed for deterministic generation. If omitted, a random seed is used.","type":"integer"},"steps_num":{"default":50,"description":"Number of diffusion steps.","maximum":50,"minimum":20,"type":"integer"},"structured_instruction":{"description":"A string containing the structured edit instruction in JSON format. Use this instead of instruction for precise, programmatic control.","type":"string"},"sync":{"description":"Must be false or omitted. Bria's synchronous mode (true) is refused rather than forwarded, on Comfy Router and on this operation's own `/proxy/` route: Comfy Router fixes the return mode before dispatch and polls for the result inside the call, and the `/proxy/` route returns the request_id and status_url to poll.","nullable":true,"type":"boolean"},"visual_input_content_moderation":{"default":true,"description":"If true, returns 422 on images or mask moderation failure.","type":"boolean"},"visual_output_content_moderation":{"default":true,"description":"If true, returns 422 on visual output moderation failure.","type":"boolean"}},"required":["images"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BriaStatusResponse"}],"description":"Comfy Router output schema for the Bria models: the terminal `GET /v2/status/{request_id}` document, forwarded unchanged. Every Bria operation is SUBMIT-AND-POLL — the submit answers with a `BriaAsyncResponse` handle carrying `request_id`, and Router polls that status route on the caller's behalf, so the body a caller receives is the finished result rather than that handle. Every Bria operation listed here shares this one status route and this one document shape.\nWHICH FIELD CARRIES THE RESULT DEPENDS ON THE OPERATION, and it is the one thing a caller must not generalise from a sibling model's page. The eighteen image operations — `bria/fibo`, `bria/image` and the sixteen `bria/image-edit-*` ids — put the result image at `result.image_url`. The four `bria/video-edit-*` ids put the edited video at `result.video_url`. Router treats a run as complete when EITHER of those two URL paths is filled; it does not check which one the operation should fill, so a caller should read the path for its own operation. Each model's published example below shows the one its own operation fills.\n`result` is present ONLY when `status` is `COMPLETED`, and it also carries `seed`, `prompt` and `refined_prompt`, which are echoes of the REQUEST rather than output — so a caller must key completion off the result LEAF for its operation rather than off `result` being non-empty. Router draws the same line: a `COMPLETED` whose `result` holds only those echoes is reported as a terminal failure with reason `success_without_output`, not a successful generation.\n`status` is Bria's own UPPERCASE four-value vocabulary — `IN_PROGRESS`, `COMPLETED`, `ERROR`, `UNKNOWN` — and it is not case-folded. `error` is present only when `status` is `ERROR`.","example":{"request_id":"0b3f9d7e-2c41-4a8b-9f10-6d5c8e2a4b71","result":{"image_url":"https://example.invalid/bria/image-edit-remove-background/generated.png","seed":42},"status":"COMPLETED"}}}}}}}}},"components":{"schemas":{"BriaStatusResponse":{"description":"Status response from Bria API","properties":{"error":{"description":"Error object (only present when status is ERROR)","properties":{"code":{"description":"Error code.","type":"integer"},"details":{"description":"Additional error details.","type":"string"},"message":{"description":"Error message.","type":"string"}},"type":"object"},"request_id":{"description":"Unique identifier for the request.","type":"string"},"result":{"description":"Result object (only present when status is COMPLETED)","properties":{"image_url":{"description":"URL of the generated/edited image.","type":"string"},"prompt":{"description":"Original prompt.","type":"string"},"refined_prompt":{"description":"Refined version of the prompt, or null on a COMPLETED generation Bria did not refine. Nullable because the key is PRESENT carrying null rather than omitted; observed live on bria/image-edit-gen-fill.","nullable":true,"type":"string"},"seed":{"description":"Seed used for generation.","type":"integer"},"structured_instruction":{"description":"The structured instruction, a JSON document serialized as a string, that `/v2/structured_instruction/generate` returns. That operation fills neither URL.","type":"string"},"structured_prompt":{"description":"The detailed JSON structured prompt.","type":"string"},"video_url":{"description":"URL of the generated video.","type":"string"}},"type":"object"},"status":{"description":"Current status of the request.","enum":["IN_PROGRESS","COMPLETED","ERROR","UNKNOWN"],"type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"bria/fibo","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image","text"],"x-comfy-router-output-modalities":["image"]}
