Skip to main content

Overview

Seedream 5.0 is a ByteDance image generation model for text-to-image creation and reference-guided image generation. It supports 2K and 3K output presets, optional web search, selectable output format, and flexible size input for callers who prefer explicit dimensions.
CapabilityValue
Model IDseedream-5-0
Modestext-to-image, image-to-image
Prompt length1-5000 characters
Reference images1-14 URLs for image-to-image
Images per taskmax_images is required, 1-10
Resolution tiers2K, 3K
Aspect ratios1:1, 2:3, 3:2, 4:3, 3:4, 9:16, 16:9, 21:9
Size input2K, 3K, 2048x2048, 2048X2048, 2048*2048
Output formatsjpeg, png
Web searchtrue, false
Prompt optimizationstandard

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/seedream-5-0Submit a generation task
GET/statusTask/seedream-5-0?taskId={taskId}Poll task status and retrieve results
All requests require your APIXO API key:
Authorization: Bearer YOUR_API_KEY
Submit requests also require:
Content-Type: application/json

Copy-paste async quickstart

This minimal request submits a text-to-image task and returns a taskId.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/seedream-5-0" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "mode": "text-to-image",
      "prompt": "a cozy cyberpunk cafe with neon lights, ultra detailed",
      "max_images": 1,
      "resolution": "2K",
      "aspect_ratio": "16:9",
      "output_format": "jpeg",
      "prompt_optimize_mode": "standard"
    }
  }'
Successful response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}
Save the taskId; you need it to poll for the final result.

Poll for result

curl -X GET "https://api.apixo.ai/api/v1/statusTask/seedream-5-0?taskId=task_12345678" \
  -H "Authorization: Bearer YOUR_API_KEY"
Success response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "success",
    "resultJson": "{\"resultUrls\":[\"https://file.apixo.ai/xxx.jpeg\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965644132,
    "costTime": 33203
  }
}

Request body

Text-to-image

{
  "input": {
    "mode": "text-to-image",
    "prompt": "a clean product photo of wireless earbuds on soft stone",
    "max_images": 1,
    "resolution": "2K",
    "aspect_ratio": "1:1",
    "sequential_image_generation": "disabled",
    "output_format": "jpeg",
    "prompt_optimize_mode": "standard"
  }
}

Image-to-image

{
  "input": {
    "mode": "image-to-image",
    "prompt": "make this scene look like sunrise with warm colors",
    "image_urls": [
      "https://example.com/ref1.jpg",
      "https://example.com/ref2.jpg"
    ],
    "max_images": 2,
    "resolution": "3K",
    "aspect_ratio": "3:4",
    "sequential_image_generation": "auto",
    "output_format": "png",
    "prompt_optimize_mode": "standard"
  }
}

Explicit size

{
  "input": {
    "mode": "text-to-image",
    "prompt": "a minimalist industrial poster",
    "max_images": 1,
    "size": "3072X3072",
    "output_format": "jpeg"
  }
}

Parameters

request_type
string
default:"async"
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
callback_url
string
Required when request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.
input
object
required
Seedream 5.0 input parameters.

Size presets from resolution + aspect_ratio

When aspect_ratio is provided, Seedream 5.0 maps resolution and aspect_ratio to these output dimensions:
Aspect ratio2K size3K size
1:12048x20483072x3072
4:32304x17283456x2592
3:41728x23042592x3456
16:92848x16004096x2304
9:161600x28482304x4096
3:22496x16643744x2496
2:31664x24962496x3744
21:93136x13444704x2016

Response format

Submit task response

POST /generateTask/seedream-5-0 returns a task ID when the task is accepted:
code
integer
API status code. 200 means the task was accepted.
message
string
Human-readable status message.
data.taskId
string
Task identifier used for later polling or webhook matching.

Polling and delivery guidance

Seedream 5.0 tasks are asynchronous.
ResolutionTypical generation timeRecommended first pollPoll interval
2K25s-35s20s after task creation3s
3K35s-50s20s after task creation3s
For production systems, prefer callback_url instead of tight polling loops.

Billing

Seedream 5.0 is billed per generated image. The current public APIXO price is a single flat rate for this model.
UnitAPIXO price
Per generated image$0.0320 / image
Billing behavior:
precharge = requested max_images * unit price
final charge = successful images * unit price
If fewer images succeed than requested, APIXO automatically adjusts the final charge to the actual number of successful outputs.