Seedream5.5 - Text to Image
This reference documents the ModelFold gateway.
Endpoint
POST /images/generations
Full URL: https://modelfold.ai/v1/images/generations
Authentication: every request must include the
Authorization: Bearer <API_KEY>header.
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 seedream/5-5-text-to-image for this endpoint Default:"seedream/5-5-text-to-image"。 Allowed values:seedream/5-5-text-to-image。 Example:seedream/5-5-text-to-image。 |
prompt | string | Yes | Prompt required by the ModelFold gateway; at most 5000 characters. Required. Text prompt, 5–5000 characters. minLength: 5. maxLength: 5000. Example:A premium skincare e-commerce hero image: a glass serum bottle on a pure white display stand under soft light, commercial photorealistic photography。 |
aspect_ratio | string | Yes | Required. Aspect ratio of the output image. Allowed values:1:1 / 4:3 / 3:4 / 16:9 / 9:16 / 2:3 / 3:2 / 21:9。 Example:1:1。 |
size | string | No | Output size: 1K, 1.5K or 2K. Default 2K. If omitted, the gateway sends 2K. |
output_format | string | No | Output image format. Defaults to png. Default:"png"。 Allowed values:png / jpeg。 Example:png。 |
background | string | No | Background of the output image. Defaults to auto.- auto: decided by the model- transparent: transparent background- opaque: opaque backgroundtransparent is available only when output_format is png. Default:"auto"。 Allowed values:auto / transparent / opaque。 Example:auto。 |
nsfw_checker | boolean | No | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
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": "seedream/5-5-text-to-image",
"prompt": "A premium skincare e-commerce hero image: a glass serum bottle on a pure white display stand under soft light, commercial photorealistic photography",
"aspect_ratio": "1:1",
"size": "1K",
"output_format": "png",
"background": "auto"
}'json
{
"model": "seedream/5-5-text-to-image",
"prompt": "A premium skincare e-commerce hero image: a glass serum bottle on a pure white display stand under soft light, commercial photorealistic photography",
"aspect_ratio": "1:1",
"size": "1K",
"output_format": "png",
"background": "auto"
}Response
json
{
"ok": true,
"created": 1792134000,
"data": [
{
"url": "https://modelfold.ai/uploads/outputs/result.png"
}
],
"usage": {}
}