{"openapi":"3.0.2","info":{"title":"bria/image-edit-erase","description":"The request body Comfy Router accepts for the model \"bria/image-edit-erase\", 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":"c81ff346c838"},"paths":{"/v2/models/bria/image-edit-erase":{"post":{"operationId":"runRouterModel","summary":"Run bria/image-edit-erase synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Bria Eraser API","example":{"image":"iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAC2klEQVR42u3TQQ0AQAgEMeTgX8W5gi8OjoROVgGhUdLhwgkEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAAkACQAJAAkACQAJAAkACQAJAAkACQAFjSy7SPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8IIAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAG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AAFAeuAhLMg9zyQgAAAAASUVORK5CYII="},"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"},"mask":{"description":"The mask defining the area to erase. Base64-encoded string or URL pointing to a publicly accessible image file. White pixels (255) mark the region to remove, black pixels (0) are preserved.","type":"string"},"mask_type":{"description":"The type of mask provided, either \"manual\" (default) or \"automatic\".","type":"string"},"preserve_alpha":{"description":"Controls whether partially transparent areas from the input image are retained in the output.","type":"boolean"},"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":{"description":"When enabled, applies content moderation to input visual. Returns 422 if the image fails moderation.","type":"boolean"},"visual_output_content_moderation":{"description":"When enabled, applies content moderation to result visual. Returns 422 if the output fails moderation.","type":"boolean"}},"required":["image","mask"],"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/image-edit-erase","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image"],"x-comfy-router-output-modalities":["image"]}
