Skip to content
Docs menu

Image models

Seedream 4.0

On this page

Seedream 4.0 — fast, high-fidelity AI image generation & editing.

modelIdbytedance-seedream-v4-edit
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to imagePOST /api/v1/generateBase generation from a text prompt.
Image to imagePOST /api/v1/generateCondition on a reference image — upload it via /api/v1/files/upload and pass the URL.
Poll taskGET /api/v1/task/{id}?model=bytedance-seedream-v4-editRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredDescribe the image editing you want to perform..
image_urlsimagerequiredDrag and drop or click to upload your images
image_sizeselectoptionalsquare, square_hd, portrait_4_3, portrait_3_2, portrait_16_9, landscape_4_3, landscape_3_2, landscape_16_9, landscape_21_9
image_resolutionselectoptional1K, 2K, 4K
max_imagesnumberoptional
seednumberoptionalEnter number...
nsfw_checkerselectoptionalfalse, 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"}}'