Image models
Seedream 4.0
On this page
Seedream 4.0 — fast, high-fidelity AI image generation & editing.
| modelId | bytedance-seedream-v4-edit |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to image | POST /api/v1/generate | Base generation from a text prompt. |
| Image to image | POST /api/v1/generate | Condition on a reference image — upload it via /api/v1/files/upload and pass the URL. |
| Poll task | GET /api/v1/task/{id}?model=bytedance-seedream-v4-edit | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Describe the image editing you want to perform.. |
| image_urls | image | required | Drag and drop or click to upload your images |
| image_size | select | optional | square, square_hd, portrait_4_3, portrait_3_2, portrait_16_9, landscape_4_3, landscape_3_2, landscape_16_9, landscape_21_9 |
| image_resolution | select | optional | 1K, 2K, 4K |
| max_images | number | optional | — |
| seed | number | optional | Enter number... |
| nsfw_checker | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"bytedance-seedream-v4-edit","input":{"prompt":"Relight with an iridescent dusk glow, deepening the peacock's plumage into jewel-toned teal and gold with a soft rim light tracing the eye of every feather.","image_size":"square_hd","image_resolution":"1K","max_images":1,"seed":8,"nsfw_checker":"true"}}'