Seedream3.0 - Text to Image
Endpoint
POST /images/generations
Full URL: https://modelfold.ai/v1/images/generations
Authentication: every request must include the
Authorization: Bearer <API_KEY>header.
Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.
Input parameters for the generation task
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model name to use for generation. Required field. - Must be bytedance/seedream for this endpoint Default:"bytedance/seedream"。 Allowed values:bytedance/seedream。 Example:bytedance/seedream。 |
prompt | string | Yes | Prompt required by the ModelFold gateway; at most 2000 characters. The text prompt used to generate the image (Max length: 5000 characters) maxLength: 2000. Example:A 2D flat art style campsite poster with the text “ModelFold AI Seedream 3.0 API”. The scene includes mountains, brown tents under a sunny sky, a rabbit, a deer, some birds, green grass, and a flowing river, all illustrated in clean vector art.。 |
image_size | string | No | Output size preset. One of square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9. Default:"square_hd"。 Allowed values:square / square_hd / portrait_4_3 / portrait_16_9 / landscape_4_3 / landscape_16_9。 Example:square_hd。 |
guidance_scale | number | No | Controls how closely the output image aligns with the input prompt. Higher values mean stronger prompt correlation. (Min: 1, Max: 10, Step: 0.1) (step: 0.1) Default:2.5。 minimum: 1. maximum: 10. Example:2.5。 |
seed | integer | No | Random seed to control the stochasticity of image generation. |
Request Example
bash
curl -X POST "https://modelfold.ai/v1/images/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedream",
"prompt": "A 2D flat art style campsite poster with the text “ModelFold AI Seedream 3.0 API”. The scene includes mountains, brown tents under a sunny sky, a rabbit, a deer, some birds, green grass, and a flowing river, all illustrated in clean vector art.",
"image_size": "square_hd",
"guidance_scale": 2.5
}'json
{
"model": "bytedance/seedream",
"prompt": "A 2D flat art style campsite poster with the text “ModelFold AI Seedream 3.0 API”. The scene includes mountains, brown tents under a sunny sky, a rabbit, a deer, some birds, green grass, and a flowing river, all illustrated in clean vector art.",
"image_size": "square_hd",
"guidance_scale": 2.5
}Response
200 — Generation completed. usage contains actual billing details; result URLs are illustrative.
json
{
"ok": true,
"created": 1792134000,
"data": [
{
"url": "https://modelfold.ai/uploads/outputs/result.png"
}
],
"usage": {}
}