{"openapi":"3.0.2","info":{"title":"bria/image","description":"The request body Comfy Router accepts for the model \"bria/image\", 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":"ced48605a350"},"paths":{"/v2/models/bria/image":{"post":{"operationId":"runRouterModel","summary":"Run bria/image synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for the Bria FIBO Generate API. Send one of these input combinations: prompt, images, images and prompt, structured_prompt, or structured_prompt and prompt.","example":{"prompt":"A red vintage bicycle leaning against a brick wall in soft morning light"},"not":{"allOf":[{"not":{"required":["prompt"]}},{"not":{"required":["images"]}},{"not":{"required":["structured_prompt"]}}]},"properties":{"aspect_ratio":{"default":"1:1","description":"Output image aspect ratio, one of \"1:1\", \"2:3\", \"3:2\", \"3:4\", \"4:3\", \"4:5\", \"5:4\", \"9:16\", \"16:9\", \"16:10\", \"10:16\", \"2:1\", \"1:2\", \"21:9\", \"9:21\", \"3:1\", \"1:3\", \"4:1\", \"1:4\", \"5:1\" or \"1:5\". Bria refuses the ratios from \"16:10\" onward with \"4MP\", with a refinement that sends both prompt and structured_prompt, and with images that have no prompt.","type":"string"},"images":{"description":"A reference image that inspires the new image. 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"},"ip_signal":{"default":false,"description":"If true, returns a warning for potential IP content in the prompt.","type":"boolean"},"model_version":{"description":"The version of the model to use. Only \"FIBO\" is accepted; omit it to run the same model.","type":"string"},"output_type":{"default":"png","description":"Output image format, \"png\" or \"jpeg\".","type":"string"},"prompt":{"description":"Text-based instruction. Use it alone to generate a new image, or with images or structured_prompt to guide or refine the result.","type":"string"},"prompt_content_moderation":{"default":true,"description":"If true, returns 422 on prompt moderation failure.","type":"boolean"},"resolution":{"default":"1MP","description":"Output image resolution, \"1MP\" or \"4MP\". \"4MP\" improves image details but increases latency by about 30 seconds.","type":"string"},"seed":{"description":"Seed for deterministic generation. If omitted, a random seed is used.","type":"integer"},"structured_prompt":{"description":"A string containing the structured prompt in JSON format, from the result of an earlier generation. Use it with the same seed to recreate that image, or change part of it to refine the image.","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 moderation failure.","type":"boolean"},"visual_output_content_moderation":{"default":true,"description":"If true, returns 422 on visual output moderation failure.","type":"boolean"}},"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/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/image","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["image"]}
