Bria is built to be used by agents as much as by people. This page lists the machine-readable surfaces of the documentation and the shortest paths from an agent to a working call. If you are an agent reading this: everything you need is linked from here.
| Surface | URL | Use it for |
|---|---|---|
| Index for LLMs | https://docs.bria.ai/llms.txt | A curated list of every page with one-line descriptions, plus the key facts about auth, async jobs and limits. |
| Markdown for every page | Append .md to any page URL, for example /webhooks.md or /image-editing/v2-endpoints/blur-bg.md | Clean page content without navigation. Requests that send Accept: text/markdown or a known agent user agent receive Markdown automatically. |
| Docs MCP server | https://docs.bria.ai/mcp | Search the docs, list APIs and endpoints, and fetch endpoint schemas and security schemes as tools. Connect it from Cursor, VS Code or Claude Code, or use the "Connect" actions at the top of any page. |
| OpenAPI descriptions | Download button on each API reference page (for example Image Editing) | The full OpenAPI 3.0 description of each API for code generation and validation. |
| Sandbox | platform.bria.ai | Try any endpoint interactively with your token. |
Connect the docs MCP server in Claude Code:
claude mcp add --transport http bria-docs https://docs.bria.ai/mcp| Path | Best for | Setup |
|---|---|---|
| Bria MCP server | Claude, Cursor, VS Code, ChatGPT, the Anthropic and OpenAI APIs, custom agents | https://mcp.prod.bria-api.com/mcp with the api_token header, or uvx bria-mcp locally |
| Agent skills | Claude Code, Cursor, Codex, Cline and other coding agents | npx skills add bria-ai/bria-skill, key in BRIA_API_KEY |
| Python SDK | Agents that write and run Python | pip install bria-client, key in BRIA_API_TOKEN |
| JavaScript / TypeScript | Agents that write Node or edge code | fetch against the REST API with the api_token header; see the Quickstart |
| REST API (cURL, any language) | Anything else | api_token header; see the Quickstart |
- Base URL
https://engine.prod.bria-api.com. Authenticate with theapi_tokenheader; only/v2/image/verifyand/v2/video/verifyare public. - v2 endpoints are asynchronous: they return
202withrequest_idandstatus_url. PollGET /v2/status/{request_id}every 1 to 2 seconds untilstatusisCOMPLETED,ERRORorUNKNOWN, or passwebhook_url.sync: trueblocks and returns the result, except for async-only options such asresolution: "4MP". - Images are a public URL or a raw base64 string (no
data:prefix). JPEG, PNG and WEBP. - Do not send optional parameters you do not need. Defaults are tuned for quality.
- For a transparent background or a cutout of a single image, use
/v2/image/edit/remove_background. For live video use Streaming Background Removal; for files use/v2/video/edit/remove_background. - Generation returns a
structured_promptand aseed. Store both: sending them back reproduces the image, and adding apromptrefines it without changing the composition. - Rate limits are per organization and endpoint: Free 10, Pay-as-you-go 60, Enterprise 1000 requests per minute. On
429, back off exponentially. - Please send
User-Agent: BriaPlatform/APIdocs/LLMsAgenton API calls made on behalf of an agent, so Bria can support agent traffic well.
You can generate and edit images and video with Bria (https://docs.bria.ai). Authenticate with the
api_token header. Prefer v2 endpoints under https://engine.prod.bria-api.com/v2. Requests are async:
POST returns request_id and status_url; poll GET /v2/status/{request_id} until status is COMPLETED,
then download result.image_url or result.video_url. Pass images as public URLs or raw base64. Use
/image/generate for new images, /image/edit for instruction edits, /image/edit/remove_background for
cutouts, /image/edit/expand for outpainting, /image/edit/increase_resolution for upscaling, and
/image/edit/product/* for product photography. Read https://docs.bria.ai/llms.txt for the full index.The Ask AI button in the header answers questions from these docs only, with code where it helps. It follows the same conventions as this page: REST by default, Python when a language is not specified, and the status endpoint for anything asynchronous.