Skip to main content

Overview

Seedream 4.0 is a ByteDance image model for text-to-image generation and reference-guided image generation. It supports 1K, 2K, and 4K output presets, up to 10 generated images per task, optional sequential generation, and prompt optimization with standard or fast.
CapabilityValue
Model IDseedream-4-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 tiers1K, 2K, 4K
Aspect ratios1:1, 2:3, 3:2, 4:3, 3:4, 9:16, 16:9, 21:9
Size input1K, 2K, 4K, 2048x2048, 2048X2048, 2048*2048
Sequential generationdisabled, auto
Prompt optimizationstandard, fast

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/seedream-4-0Submit a generation task
GET/statusTask/seedream-4-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-4-0" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "mode": "text-to-image",
      "prompt": "a sunrise train passing through snowy hills",
      "max_images": 2,
      "resolution": "1K",
      "aspect_ratio": "16:9",
      "prompt_optimize_mode": "fast"
    }
  }'
Successful response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}
Save the taskId; you need it to poll for the final result.

Request body

Text-to-image

{
  "input": {
    "mode": "text-to-image",
    "prompt": "a clean architectural concept of a coastal library",
    "max_images": 2,
    "resolution": "1K",
    "aspect_ratio": "16:9",
    "prompt_optimize_mode": "fast"
  }
}

Image-to-image

{
  "input": {
    "mode": "image-to-image",
    "prompt": "turn this sketch into a cinematic concept frame",
    "image_urls": [
      "https://example.com/reference-1.png"
    ],
    "max_images": 2,
    "resolution": "2K",
    "aspect_ratio": "3:4",
    "sequential_image_generation": "auto",
    "prompt_optimize_mode": "standard"
  }
}

Explicit size

{
  "input": {
    "mode": "text-to-image",
    "prompt": "an editorial interior still",
    "max_images": 1,
    "size": "2048*2048"
  }
}

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 4.0 input parameters.

Size presets from resolution + aspect_ratio

When aspect_ratio is provided, APIXO maps resolution and aspect_ratio to these output dimensions:
Aspect ratio1K size2K size4K size
1:11024x10242048x20484096x4096
2:3832x12481664x24963328x4992
3:21248x8322496x16644992x3328
3:4864x11521728x23043520x4704
4:31152x8642304x17284704x3520
9:16736x13121600x28483040x5504
16:91312x7362848x16005504x3040
21:91568x6723136x13446240x2656

Polling and delivery guidance

Seedream 4.0 tasks are asynchronous.
ResolutionTypical generation timeRecommended first pollPoll interval
1K20s-30s15s after task creation3s
2K25s-35s20s after task creation3s-5s
4K40s-55s30s after task creation5s
For production systems, prefer callback_url instead of tight polling loops.

Billing

Seedream 4.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.0290 / 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.