Seedream 5.0 Lite
Seedream 5.0 by is a state-of-the-art text-to-image model with enhanced typography, clear text rendering for posters and brand visuals, superior prompt adherence, and up to 4K resolution. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Seedream 5.0 Lite
Seedream 5.0 Lite is ByteDance's image generation model for text-to-image and reference-guided generation. Upload up to 5 reference images and receive 2K or 4K output in PNG or JPG format.
Base URL
https://api.icreat.aiAuthentication
All API requests must be authenticated with an API Key. You can obtain an API Key from the console.
export ICREAT_API_KEY="your-api-key-here"HTTP Request Headers
import os
API_KEY = os.environ.get("ICREAT_API_KEY")
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer " + API_KEY,
}Protect your API Key
Never expose your API Key in client-side code or public repositories. Use environment variables or a backend proxy.
Code Examples
Image and video generation uses a two-step async flow: submit a task to get task_id, then poll via query task result; the response includes status and result ([] while processing; on SUCCEEDED, result holds resources and costUSD is present). The examples below use the same task_id across both steps.
1. Submit Task
Send the generation request to the submit endpoint. On success, the response returns a task_id—save it for polling and fetching results.
2. Query Task Result (Poll)
Use the task_id from submit to poll progress (repeat until terminal). The response includes status and result: result is [] while processing; on SUCCEEDED, result holds resources and costUSD is included; FAILED means the task failed.
Input Schema
Submit Task — Input Schema
The following parameters are accepted in the submit request body.
Total: 5 Required: 3 Optional: 2
The image generation prompt, with a maximum length of 10,000 characters.
Output image resolution.
Output image format.
A list of reference image URLs. Up to 5 images are supported. Common image formats are accepted, with a maximum size of 10 MB per image. Omit for text-to-image.
Whether to add a watermark to the generated image.
Query Task Result — Input
Total: 1 Required: 1 Optional: 0
The task ID returned from the submit endpoint.
Output Schema
Submit Task — Output Schema
Total: 1
Unique identifier for the async task. Use this ID to poll status and retrieve the result.
Query Task Result — Output
Total: variable
Current task status. result is usually [] until success; on SUCCEEDED, result holds resources and costUSD is present.
Generated resources. Empty array while processing or on failure; array of objects on success.
Task cost in USD. Present only when status is SUCCEEDED.
LLM Prompt
The Markdown below is an LLM-friendly prompt you can paste into AI assistants (e.g. Cursor, ChatGPT) to help them understand this model's API, call flow, and key parameters. Use Copy for AI or copy from the code block below.
# bytedance/seedream-5.0
> Seedream 5.0 Lite is ByteDance's image generation model for text-to-image and reference-guided generation.
## Overview
Use the iCreat two-step async task API: submit a generation request, then poll the query task result endpoint; on success read resources from `result` (includes `costUSD`).
## API Info
- **Base URL**:`https://api.icreat.ai`
- **Submit endpoint (POST)**:`/v1/task/submit/bytedance/seedream-5.0`
- **Query result endpoint (POST)**:`/v1/task/result`
- **Model ID**:`bytedance/seedream-5.0`
- **Auth**:`Authorization: Bearer ${ICREAT_API_KEY}`
## Call Flow
1. **Submit**: POST submit path with body per Input Notes; response `{ "task_id": "..." }`
2. **Query result**: POST `/v1/task/result` with `{ "task_id": "..." }`; response includes `status` and `result` (`[]` while processing); on `SUCCEEDED`, `result` holds resources and `costUSD` is present; read `url` or `download_url` when `type` is `Image`
### Input Notes
- Request body uses top-level flat fields
- Required: `prompt`, `size`, `outputFormat`
- Optional: `image`, `watermark`
- `prompt` (required): The image generation prompt, with a maximum length of 10,000 characters.
- `size` (required): Output image resolution. (default `2K`)
- `outputFormat` (required): Output image format. (default `png`)
- `image` (optional): A list of reference image URLs. Up to 5 images are supported. Common image formats are accepted, with a maximum size of 10 MB per image. Omit for text-to-image.
- `watermark` (optional): Whether to add a watermark to the generated image. (default `true`)
### Output Notes
- Poll: read `status`; `result` is `[]` while processing
- Success: `result` is `[{ "type": "Image", "url": "...", "download_url": "..." }]` plus `costUSD`
## Notes
- Use the same `task_id` across both steps; `result` is `[]` while processing — keep polling
- `FAILED` is terminal — check request parameters or reference media