Seedream 4.5 Text to Image API
/v1/tasks All models are called through the Unified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).
Model summary
| Model name | seedream-4.5/text-to-image |
|---|---|
| Type | Image generation (text-to-image) |
| Endpoint | POST /v1/tasks |
| Pricing | See HiAPI Pricing |
Seedream 4.5 text-to-image: ByteDance's community-favorite quality tier with solid photorealism and in-image text rendering, 8 ratios, 2K/4K at one flat per-image price.
Production guidance
- For production, pass callback.url at the top level of the request body so HiAPI can notify your service when the task reaches a terminal state.
- GET /v1/tasks/:id is better for local debugging, low-volume jobs, or fallback reconciliation if a callback is missed.
- Use callback.when=final. Both success and fail are terminal states, so your service should deduplicate by taskId.
Best suited for
The community-favorite quality tier: product shots, ads and photoreal scenes with solid detail.
promptresolutionAccurate English and Chinese text on signs and posters — brand and marketing ready.
promptFrom 21:9 banners to 9:16 portrait, with 2K/4K at the same price.
aspect_ratioresolutionOne flat rate per image regardless of resolution.
resolutionRequest parameters
model string required Fixed value seedream-4.5/text-to-image.
input object required Business parameters. Put Seedream 4.5 Text to Image-specific configuration here.
prompt string required A text description of the image you want to generate. Max 3000 characters.
aspect_ratio enum required Width-height ratio of the generated image.
resolution enum required Output image resolution. 2K for standard quality, 4K for ultra HD.
callback object optional Optional callback configuration. When set, HiAPI notifies your service when the task reaches a terminal state.
url string required Required when callback is set; HTTPS URL that receives terminal task notifications.
when enum optional Callback trigger timing. Use final.
Example requests
Tested photoreal wildlife shot, 16:9 ultra HD.
{
"model": "seedream-4.5/text-to-image",
"input": {
"prompt": "A majestic snow leopard resting on a rocky ledge at dawn, breath visible in the cold air, golden alpine light, cinematic composition, ultra-detailed, high dynamic range",
"aspect_ratio": "16:9",
"resolution": "4K"
}
}Tested Chinese calligraphy sign rendering, 3:4 portrait.
{
"model": "seedream-4.5/text-to-image",
"input": {
"prompt": "A cozy ramen shop storefront at night with a glowing hand-painted signboard that reads 一碗入魂 in bold calligraphy, steam rising, rain-slicked street reflections, warm lantern light",
"aspect_ratio": "3:4",
"resolution": "2K"
}
}Getting the result
- The response returns a taskId immediately without waiting for generation to finish.
- In production, prefer waiting for callback.url to receive the terminal notification. For local debugging, poll GET /v1/tasks/:id.
- When status=success, download the generated image from output[].url.
- When status=fail, fix the request based on the returned error instead of retrying the same invalid payload.
FAQ
Seedream 4.5 vs 5.0-lite?
4.5 is the quality tier with stronger photorealism and text rendering; 5.0-lite is the budget/speed tier.
Do 2K and 4K cost the same?
Yes — per-image billing is resolution-independent, so 4K is usually the right choice.
Can it edit reference images?
Use the sibling seedream-4.5/image-to-image for edits and composites with up to 14 references.