Seedream 4.5 DreamCore API

Developer Documentation

Use these endpoints to generate Seedream 4.5 artworks asynchronously. Each render consumes credits depending on quality and model.

Authentication

All requests must include your API key in the Authorization header:

Authorization: Bearer <YOUR_API_KEY>

Missing or invalid keys return 401 Unauthorized.

POST

https://seedream45ai.org/api/generate

Create generation task

Submits a new Seedream 4.5 job. The API immediately returns a task_id while the render completes asynchronously.

ParameterTypeRequiredDescription
promptstring (max 1500 chars)YesPrimary text description (1500 characters max). Required for every request.
aspectRatiostringYesSupported ratios: 1:1 · 3:4 · 4:3 · 9:16 · 16:9.
qualitystring (basic | high)Yesbasic (fast, 2K) or high (slower, 4K).
imageUrlsstring[]NoOptional reference images. Required when using the edit model.

Credit consumption

Credits deduct when the task is accepted. Failed jobs automatically refund the exact balance.

PresetCredits deducted
Text-to-Image · Basic quality12
Text-to-Image · High quality18
Edit (with references) · Basic quality18
Edit (with references) · High quality24
4-image burst (single call)48
Sample request
POST https://seedream45ai.org/api/generate
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json

{
  "prompt": "Cinematic photo of an obsidian smartwatch on a marble plinth, volumetric lighting",
  "aspectRatio": "4:3",
  "quality": "high",
  "imageUrls": []
}
Sample response
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "sd45_b83bf7c0c51a4c71"
  }
}
GET / POST

https://seedream45ai.org/api/status

Check task status

Poll this endpoint to retrieve the latest record. If the task is still IN_PROGRESS we query the upstream provider again before replying.

ParameterTypeRequiredDescription
task_idstringYesID returned by /generate. Provide via query (?task_id=) when calling /status.
FieldDescription
task_idID returned from /generate.
statusIN_PROGRESS
requestSanitized snapshot of the payload you submitted.
responseArray of image URLs once the task is SUCCESS.
consumed_creditsCredits spent for the task (0 when refunded).
error_messageProvider error string when status is FAILED.
created_atUTC timestamp recorded when the job entered the queue.
Sample request
GET https://seedream45ai.org/api/status?task_id=sd45_b83bf7c0c51a4c71
Authorization: Bearer <YOUR_API_KEY>
Sample response
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "sd45_b83bf7c0c51a4c71",
    "status": "SUCCESS",
    "request": {
      "prompt": "Cinematic photo of an obsidian smartwatch on a marble plinth, volumetric lighting",
      "aspectRatio": "4:3",
      "quality": "high"
    },
    "response": [
      "https://watch_001.png"
    ],
    "consumed_credits": 12,
    "error_message": null,
    "created_at": "2025-06-14T05:21:11Z"
  }
}

Error handling

  • 401 Unauthorized - Missing or invalid API key.
  • 402 Payment Required - Credit balance could not cover the deduction.
  • 429 Too Many Requests - Slow the polling cadence or request rate.
  • 500 - Transient issue; retry with exponential backoff.