Seedream 5.0 Lite
Generate and edit images with Seedream 5.0 Lite. Choose 2K, 3K or 4K output, with up to 14 reference images.
/api/v1/generations6 credits per image at every quality setting. Reference images do not add an extra charge. Check credits_refunded to confirm a refund; unresolved submissions may require review.
Authorization
AuthorizationstringrequiredBearer fx1_live_… — send your API key in the request header. API access requires administrator approval.
Idempotency-KeystringoptionalUse one unique value per generation and reuse it with the same body on retries. Printable ASCII, no spaces. A different body with the same key returns 409.
Maximum length: 128 characters
Request body
modelstringrequiredUse this exact model ID in the top-level request body.
seedream-5promptstringrequiredDescribe the image to create or the changes to apply. Whitespace is trimmed; the result must not be empty.
Maximum length: 3,000 characters
imagesstring[]optionalPublicly accessible HTTPS image URLs, up to 2,048 characters each. Omit or pass [] for text-to-image; supply references for image editing. JPEG, PNG or WebP, up to 30 MB each (provider limit). Base64 is not accepted.
Maximum items: 14
aspect_ratiostringoptionalOutput width-to-height ratio. Custom dimensions and auto are not supported.
Default: 1:1
1:14:33:416:99:162:33:221:9qualitystringoptionalbasic → 2K, high → 3K, ultra → 4K. Use this field to choose the resolution tier.
Default: basic
basichighultraoutput_formatstringoptionalGenerated image file format.
Default: png
pngjpegResponse & next step
A successful submission returns 202 and a generation id. Poll GET /api/v1/generations/{id} every 2–3 seconds until the status is succeeded or failed.
Read the image URL from output.images[0].url. On failure, inspect error and credits_refunded. Returned dimensions are optional.
Model notes
seedream-5is Seedream 5.0 Lite. Seedream 5.0 Pro is a separate model and is not yet available through this API.- Choose output size with
quality:basicproduces 2K,highproduces 3K andultraproduces 4K. Choose PNG or JPEG withoutput_format. - Send
prompt,images,aspect_ratio,qualityandoutput_formatalongsidemodelin the JSON body. Unknown fields are rejected, includingresolution,seed,n,batch_size, custom dimensions andwebhook_url. - Omitting
images, or using an empty array, creates a text-to-image task. Providing 1–14 HTTPS references creates an image-editing task. Base64 input is not accepted by this model. - Content safety checking is enabled. This API produces one image per request;
imagescounts references, not outputs. - The final image is saved to Flux storage before the generation is marked successful. A temporary status-query or storage error keeps the task queued for another attempt.