Skip to content

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) ​

ParameterTypeRequiredDescription
modelstringYesThe 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。
promptstringYesPrompt 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_ratiostringYesRequired. 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。
sizestringNoOutput size: 1K, 1.5K or 2K. Default 2K. If omitted, the gateway sends 2K.
output_formatstringNoOutput image format. Defaults to png. Default:"png"。 Allowed values:png / jpeg。 Example:png。
backgroundstringNoBackground of the output image. Defaults to auto.
- auto: decided by the model
- transparent: transparent background
- opaque: opaque background
transparent is available only when output_format is png. Default:"auto"。 Allowed values:auto / transparent / opaque。 Example:auto。
nsfw_checkerbooleanNoDefaults 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": {}
}

ModelFold — one API for all the best AI models.