curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedream-5.0-pro",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Editorial studio portrait of a fashion model wearing vibrant West African wax-print clothing, matching headwrap, layered bead jewelry and bracelets, confident pose, warm textured backdrop, saturated colors, dramatic fashion lighting.",
"size": "3:4",
"resolution": "2K",
"output_format": "jpeg"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-07-09T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 401,
"error": {
"message": "Unauthorized - Invalid API key",
"type": "authentication_error"
}
}Seedream
Seedream-5.0-Pro Image Generation
Flagship Seedream image generation and editing model with precise prompt following, layout control, and multi-image reference editing
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedream-5.0-pro",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Editorial studio portrait of a fashion model wearing vibrant West African wax-print clothing, matching headwrap, layered bead jewelry and bracelets, confident pose, warm textured backdrop, saturated colors, dramatic fashion lighting.",
"size": "3:4",
"resolution": "2K",
"output_format": "jpeg"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-07-09T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 401,
"error": {
"message": "Unauthorized - Invalid API key",
"type": "authentication_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the response result through the unified Query Task Status endpoint.
Seedream-5.0-Pro Image Generation
Seedream-5.0-Pro is ByteDance’s flagship image model for text-to-image generation and region-precise image editing. It is designed for complex prompts, structured layouts, multilingual typography, product visuals, and multi-reference editing workflows.Available Models
- seedream-5.0-pro - Flagship text-to-image generation
- seedream-5.0-pro-edit - Image editing with multi-image reference support (up to 10 images)
Size Parameter
input.size is required and controls the output aspect ratio. If omitted, the system uses 1:1 by default:
- Ratio preset:
1:1,4:3,3:4,16:9,9:16,2:3,3:2,21:9
Resolution Parameter
input.resolution is required and controls the output resolution. If omitted, the system uses 1K by default:
- Resolution preset:
1K,2K
Pricing
Each request generates one image by default and uses the current Seedream-5.0-Pro price.How to Call
Use the unified submit endpoint:POST /api/generate/submit
Text-to-image example:
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream-5.0-pro",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Editorial studio portrait of a fashion model wearing vibrant West African wax-print clothing, matching headwrap, layered bead jewelry and bracelets, confident pose, warm textured backdrop, saturated colors, dramatic fashion lighting.",
"size": "3:4",
"resolution": "2K",
"output_format": "jpeg"
}
}'
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream-5.0-pro",
"input": {
"prompt": "A clean science magazine cover about renewable city infrastructure, dense but readable layout, accurate icons, modern editorial design",
"size": "16:9",
"resolution": "1K",
"output_format": "png"
}
}'
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream-5.0-pro-edit",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Replace the perfume bottle in the first reference image with the green BB cream tube from the second reference image, keep the outdoor flower-and-water background, and apply the script logo from the third reference image to the front label.",
"image_urls": [
"https://example.com/reference-scene.jpg",
"https://example.com/reference-product.jpg",
"https://example.com/reference-logo.jpg"
],
"size": "3:4",
"resolution": "2K"
}
}'
Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Seedream-5.0-Pro model identifier
Available options:
seedream-5.0-pro, seedream-5.0-pro-edit Input parameters for generation
Show child attributes
Show child attributes
Webhook callback URL for result notifications
Example:
"https://your-domain.com/callback"
