{"openapi":"3.0.2","info":{"title":"bria/image-edit-relight","description":"The request body Comfy Router accepts for the model \"bria/image-edit-relight\", 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":"3b1f1525a260"},"paths":{"/v2/models/bria/image-edit-relight":{"post":{"operationId":"runRouterModel","summary":"Run bria/image-edit-relight synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Bria Relight API","example":{"image":"https://img.freepik.com/free-photo/portrait-woman_395237-33.jpg?w=740\u0026q=80","light_direction":"side","light_type":"midday"},"properties":{"image":{"description":"The image to edit. Supported input types are Base64-encoded string or URL pointing to a publicly accessible image file. Accepted formats JPEG, JPG, PNG, WEBP.","type":"string"},"light_direction":{"description":"The light direction, one of \"front\", \"side\", \"bottom\", or \"top-down\".","type":"string"},"light_type":{"description":"The lighting atmosphere to apply, one of \"midday\", \"blue hour light\", \"low-angle sunlight\", \"sunrise light\", \"spotlight on subject, keep background settings\", \"overcast light\", \"soft overcast daylight lighting\", \"cloud-filtered lighting\", \"fog-diffused lighting\", \"moonlight lighting\", \"starlight lighting nighttime\", \"soft bokeh lighting\", or \"harsh studio lighting keep background setting\".","type":"string"}},"required":["image","light_type","light_direction"],"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-relight/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-edit-relight","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"]}
