| Size | Price per image |
|---|---|
| 2K (default) | $0.028 |
| 3K | $0.042 |
image_urls array. Maximum 10 images.2K (default) or 3K. 3K costs 1.5x of 2K.1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4.png or jpeg (default: png).{
"model": "seedream",
"task_type": "seedream-5-lite",
"input": {
"prompt": "A golden retriever playing in a field of sunflowers at sunset",
"aspect_ratio": "16:9",
"output_format": "png",
"size": "2K"
}
}curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "seedream",
"task_type": "seedream-5-lite",
"input": {
"prompt": "A golden retriever playing in a field of sunflowers at sunset",
"aspect_ratio": "16:9",
"output_format": "png",
"size": "2K"
}
}'{
"code": 200,
"data": {
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"model": "seedream",
"task_type": "seedream-5-lite",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"prompt": "A golden retriever playing in a field of sunflowers at sunset",
"aspect_ratio": "16:9",
"output_format": "png",
"size": "2K"
},
"output": null,
"meta": {
"created_at": "2026-03-16T10:00:00.000000000Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 280000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}