Skip to content

Seedream4.0 - Edit ​

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 bytedance/seedream-v4-edit for this endpoint Default:"bytedance/seedream-v4-edit"。 Allowed values:bytedance/seedream-v4-edit。 Example:bytedance/seedream-v4-edit。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. The text prompt used to edit the image (Max length: 5000 characters) maxLength: 2000. Example:Refer to this logo and create a single visual showcase for an outdoor sports brand named ‘ModelFold AI’. Display five branded items together in one image: a packaging bag, a hat, a carton box, a wristband, and a lanyard. Use blue as the main visual color, with a fun, simple, and modern style.。
image_urlsarray&lt;string&gt;YesList of URLs of input images for editing. Presently, up to 10 image inputs are allowed. (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 30.0MB) maxItems: 10.
image_sizestringNoThe size of the generated image. Default:"square_hd"。 Allowed values:square / square_hd / portrait_4_3 / portrait_3_2 / portrait_16_9 / landscape_4_3 / landscape_3_2 / landscape_16_9 / landscape_21_9。 Example:square_hd。
image_resolutionstringNoFinal image resolution is determined by combining image_size (aspect ratio) and image_resolution (pixel scale).. Default:"1K"。 Allowed values:1K / 2K / 4K。 Example:1K。
seedintegerNoRandom seed for reproducible results. Integer, up to 1000000. Omit for a random seed. maximum: 1000000.
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": "bytedance/seedream-v4-edit",
  "prompt": "Refer to this logo and create a single visual showcase for an outdoor sports brand named ‘ModelFold AI’. Display five branded items together in one image: a packaging bag, a hat, a carton box, a wristband, and a lanyard. Use blue as the main visual color, with a fun, simple, and modern style.",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "image_size": "square_hd",
  "image_resolution": "1K"
}'
json
{
  "model": "bytedance/seedream-v4-edit",
  "prompt": "Refer to this logo and create a single visual showcase for an outdoor sports brand named ‘ModelFold AI’. Display five branded items together in one image: a packaging bag, a hat, a carton box, a wristband, and a lanyard. Use blue as the main visual color, with a fun, simple, and modern style.",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "image_size": "square_hd",
  "image_resolution": "1K"
}

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.