No Read me document is available for this model yet.

Mai Image 2.6
Mai Image 2.6
- 99.9% SLA
- Official Discounts
- Pay-as-you-go
- Fast & Low Latency
Brand:
Input token: $5.00/MImage input token: $8.00/MImage output token: $38.00/M
API DOCS / SIMPLIFIED
Integrate this model with one task-based API flow
Mai Image 2.6 The examples below are rendered from Mai Image 2.6, the current gateway base URL, and the selected public model contract.
Input mode
X-API-Key on every request
POST /api/v1/openapi/task
GET /api/v1/openapi/task/status/{task_id}
Async task workflow
Single code window
Switch language once. Each example already includes both the task creation request and the task status polling request.
Unified Example
API_KEY="<API_KEY>"
BASE_URL="https://api.musespark.ai"
REQUEST_BODY='{
"model_id": "mai-image-2.6",
"parameters": {
"prompt": "A cinematic portrait with soft lighting",
"resolution": "1K",
"aspect_ratio": "auto",
"web_grounding": false,
"batch_size": 1
}
}'
CREATE_RESPONSE=$(curl --request POST "$BASE_URL/api/v1/openapi/task" \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data-raw "$REQUEST_BODY")
TASK_ID="<TASK_ID_FROM_CREATE_RESPONSE>"
curl "$BASE_URL/api/v1/openapi/task/status/$TASK_ID" \
--header "X-API-Key: $API_KEY"Request and response JSON become the documentation
Keep the payload and task status envelope as the primary contract. Field descriptions, optionality, and enum hints now live inline as JSON comments.
Request Body
Caller payload
This is the request envelope accepted by the public gateway for the selected model contract.
Field comments and caller parameters come directly from the current item's model schema.
{ "model_id": "mai-image-2.6",// target model "parameters": { "prompt": "A cinematic portrait with soft lighting",// image generation or reference-image editing prompt · min 1 · min length 1 "resolution": "1K",// text-to-image resolution: 1K or 2K. Lowercase 1k and 2k are also accepted. Exact pixel dimensions override this setting. This setting does not control editing dimensions · enum: 1K | 2K "aspect_ratio": "auto",// choose one of the listed aspect ratios or auto for text-to-image generation. Editing dimensions are chosen automatically from the reference images · enum: auto | 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 5:4 | 4:5 | 16:9 | 9:16 | 2:1 | 1:2 | 3:1 | 1:3 | 21:9 | 9:21 "web_grounding": false,// search current information before generation, for example real people, places, or events "batch_size": 1// museSpark batch count; each child task requests one provider output · min 1 · max 15 }}Response Body
Gateway response
This is the task status response you will query with task_id until the task reaches a terminal state.
Poll every 2-5 seconds and stop once status becomes completed, failed, cancelled.
{ "code": 200,// 200 on success "msg": "success", "data": { "task_id": "task_01HQX8N2QJ0YQ8Q0T7G6N4V6K2",// use for status polling "status": "completed",// enum: queued | running | completed | failed | cancelled "progress": 100,// 0-100 if available "completed_at": 1760000000,// unix timestamp "expires_at": 1760001800,// unix timestamp "result": { "output_urls": [// generated files "https://cdn.example.com/output.png" ] } }}Why Choose MuseSpark?
| Model & Modality | Credits / 1M tokens | Our Price (USD) |
|---|---|---|
| Input token | 500/M | $5.00/M |
| Output token | 0/M | $0.00/M |
| Image input token | 800/M | $8.00/M |
| Image output token | 3,800/M | $38.00/M |
Reference prices
Use these prices to compare output options. You are billed for actual token usage at the rates above.
| Output options | Credits / image | Price (USD) / image |
|---|---|---|
| 1K · Without reference images | ≈ 4.3912 | ≈ $0.0439 |
| 2K · Without reference images | ≈ 9.2552 | ≈ $0.0926 |
Examples
No examples yet.
FAQ
No FAQs are available for this item yet.






