Notice: MAI Image 2.7 launch limited-time 20% off, covering the full text-to-image and image editing lineup, try it now
Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
Open navigation

API reference

Look up parameters, responses and error codes per endpoint. To get a first task running end to end, start with the API guides.

Text reasoning

ProtocolEndpointUse it for
OpenAI Chat CompletionsPOST /v1/chat/completionsThe most widely supported shape — most SDKs and clients speak it
OpenAI ResponsesPOST /v1/responsesServer-side state, built-in tools and streaming events

Guides: text reasoning guide.

Media generation

EndpointUse it for
POST /v1/tasksSubmit an image, video or audio generation task
GET /v1/tasksList tasks with filters and pagination
GET /v1/tasks/:idPoll one task until it finishes

Guides: media generation guide.

Media artifact storage

EndpointUse it for
GET /v1/storagesList the artifacts an account owns
POST /v1/storages/promoteTurn a temporary output into a persistent artifact
POST /v1/storages/deleteDelete an artifact

Guides: media artifact storage guide.

Account info

EndpointUse it for
GET /v1/account/balanceRead the account balance and quota

Guides: account info guide.

Model API

Each model family has its own page with request shape, pricing and limits: model catalog.