Skip to content

Seedream5.0 Pro - Image 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) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be seedream/5-pro-image-to-image for this endpoint Default:"seedream/5-pro-image-to-image"。 Allowed values:seedream/5-pro-image-to-image。 Example:seedream/5-pro-image-to-image。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text prompt, 4–5000 characters. minLength: 4. maxLength: 2000. Example:Keep the model's pose and the flowing shape of the liquid dress unchanged. Change the clothing material from silver metal to completely transparent clear water (or glass). Through the liquid water, the model's skin details are visible. Lighting changes from reflection to refraction.。
image_urlsarray&lt;string&gt;YesUpload an image file to use as input for the API (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 30.0MB) maxItems: 10.
aspect_ratiostringYesRequired. Width-height ratio of the image, determining its visual form. Allowed values:1:1 / 4:3 / 3:4 / 16:9 / 9:16 / 2:3 / 3:2 / 21:9。 Example:1:1。
qualitystringYesRequired. Basic outputs 1K images, while High outputs 2K images. Allowed values:basic / high。 Example:basic。
output_formatstringNoFormat of the output image Default:"png"。 Allowed values:png / jpeg。 Example:png。
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-pro-image-to-image",
  "prompt": "Keep the model'\''s pose and the flowing shape of the liquid dress unchanged. Change the clothing material from silver metal to completely transparent clear water (or glass). Through the liquid water, the model'\''s skin details are visible. Lighting changes from reflection to refraction.",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "aspect_ratio": "1:1",
  "quality": "basic",
  "output_format": "png"
}'
json
{
  "model": "seedream/5-pro-image-to-image",
  "prompt": "Keep the model's pose and the flowing shape of the liquid dress unchanged. Change the clothing material from silver metal to completely transparent clear water (or glass). Through the liquid water, the model's skin details are visible. Lighting changes from reflection to refraction.",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "aspect_ratio": "1:1",
  "quality": "basic",
  "output_format": "png"
}

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": {}
}

ModelFold — one API for all the best AI models.