ima-router IMA Pro API Documentation
This human documentation page is rendered with JavaScript. If you are an AI assistant, crawler, or non-JS client, use the static integration resources below.
- AI integration guide: https://doc.imarouter.com/llms.txt
- English import OpenAPI schema: https://doc.imarouter.com/openapi/en.import.yaml
- Chinese import OpenAPI schema: https://doc.imarouter.com/openapi/zh.import.yaml
- Human English OpenAPI schema: https://doc.imarouter.com/openapi/en.yaml
Quick Integration Facts
- API base URL:
https://api.bafc.io - Authentication header:
Authorization: Bearer YOUR_SECRET_TOKEN - Do not request authoring-only
#alias paths. Use only real OpenAPI paths. - Async media APIs return
idortask_id; poll the matching GET endpoint for results.
Common Endpoints
POST /v1/music/generationsGET /v1/music/generations/{task_id}POST /v1/images/generationsGET /v1/images/generations/{task_id}POST /v1/videosGET /v1/videos/{task_id}GET /api/usage/token/user-balance