Skip to Content
DocumentationModelsImageSeedream 5.0 Pro

Seedream 5.0 Pro

Use doubao-seedream-5-0-pro to create image output. This page contains the complete request needed for this model.

Model facts

PropertyValue
Model IDdoubao-seedream-5-0-pro
EndpointPOST /api/v1/generation/create
OutputImage
Modestext-to-image, image-to-image
PricingView current pricing

Minimal request

curl -X POST https://api.apihubs.ru/api/v1/generation/create \
  -H "Authorization: Bearer $API_STOCK_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-seedream-5-0-pro",
  "input": {
    "prompt": "A cinematic scene with soft natural light"
  }
}'

The create response contains a task ID:

{
  "code": 200,
  "data": {
    "taskId": "019ca881-9503-7270-a560-f00fc2b15785",
    "status": "not_started",
    "createdAt": "2026-08-22T12:00:00.000Z"
  }
}

Parameters

Parameters belong inside the top-level input object. Unknown fields are rejected.

ParameterTypeRequiredDefaultDescription
promptstringYesText description for image generation
urlsstring[]NoReference image URLs (URLs or base64 data URIs) for image-to-image mode
size“1:1” | “4:3” | “3:4” | “16:9” | “9:16” | “3:2” | “2:3” | “21:9” | “9:21” | “auto”No"1:1"Image aspect ratio
resolution“1K” | “2K”No"1K"Image resolution
outputFormat“jpeg” | “png”No"jpeg"Output image format (doubao-seedream-5-0-lite / doubao-seedream-5-0-pro only; ignored by other models)
promptOptimizeMode“standard” | “fast”No"standard"Prompt optimization mode (doubao-seedream-4-5 only; ignored by other models)
watermarkbooleanNofalseWhether to add a watermark to the generated image

Modes

Minimal generation

{
  "model": "doubao-seedream-5-0-pro",
  "input": {
    "prompt": "A cinematic scene with soft natural light"
  }
}

With urls

{
  "model": "doubao-seedream-5-0-pro",
  "input": {
    "prompt": "A cinematic scene with soft natural light",
    "urls": [
      "https://example.com/input.jpg"
    ]
  }
}

Constraints

  • size: allowed: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21, auto.
  • resolution: allowed: 1K, 2K.
  • outputFormat: allowed: jpeg, png.
  • promptOptimizeMode: allowed: standard, fast.

Invalid types, unsupported enum values, out-of-range numbers, and missing required fields return HTTP 400 with error.code: "invalid_input". Correct the request rather than retrying it unchanged.

Result

Poll the task or provide a top-level webhook URL in the create request:

curl https://api.apihubs.ru/api/v1/task/status/$TASK_ID \
  -H "Authorization: Bearer $API_STOCK_KEY"

A successful media task returns one or more files:

{
  "code": 200,
  "data": {
    "taskId": "019ca881-9503-7270-a560-f00fc2b15785",
    "status": "finished",
    "files": [
      {
        "fileUrl": "https://storage.api-stock.com/result.png",
        "fileType": "image"
      }
    ],
    "createdTime": "2026-08-22T12:00:00.000Z"
  }
}

See Tasks and webhooks for terminal statuses, retries and webhook delivery.

Seedream 5.0 Pro — API Hubs