Skip to content

Wan 2.7 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
modelstringYesModel name for generation tasks. This endpoint currently uses wan/2-7-image. Default:"wan/2-7-image"。 Allowed values:wan/2-7-image。 Example:wan/2-7-image。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Prompt for image generation or editing. This field supports both Chinese and English, with a maximum length of 5000 characters. maxLength: 2000. Example:Transform the food photo by replacing the marked ingredients with sliced red chili pieces while preserving the bowl, lighting, steam, camera angle, and overall realism.。
input_urlsarray&lt;string&gt;No(Optional) Array of input image URLs. maxItems: 9.
aspect_ratiostringNo(Optional) Output aspect ratio when no image input is provided. Allowed values:1:1 / 16:9 / 4:3 / 21:9 / 3:4 / 9:16 / 8:1 / 1:8。 Example:1:1。
enable_sequentialbooleanNoWhether to enable sequential/group image mode. Default is false. Default:false。 Example:false。
resolutionstringNoOutput resolution: 1K or 2K (default 2K). For 4K, use wan/2-7-image-pro. Default:"2K"。 Allowed values:1K / 2K。 Example:2K。
thinking_modebooleanNoWhether to enable thinking mode. Only available when enable_sequential=false and input_urls is empty; it is disabled in other cases. Default:false。 Example:false。
color_palettearray&lt;object&gt;No(Optional) Custom color theme. Only available when enable_sequential=false. Requires 3-10 colors, 8 recommended. minItems: 3. maxItems: 10.
  color_palette[].hexstringYesHEX color value. pattern: ^#[0-9A-Fa-f]{6}$. Example:#C2D1E6。
  color_palette[].ratiostringYesColor proportion, format must be xx.xx%. pattern: ^\d{1,3}\.\d{2}%$. Example:23.51%。
bbox_listarray&lt;array&lt;array&lt;integer&gt;&gt;&gt;No(Optional) Interactive editing bounding box areas. The outer list length should match input_urls; maximum 2 boxes per image; single box format is [x1, y1, x2, y2].
watermarkbooleanNoWhether to add watermark. Default:false。 Example:false。
seedintegerNoOptional. Omit for a random seed. minimum: 0. maximum: 2147483647. Example:0。
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": "wan/2-7-image",
  "prompt": "Transform the food photo by replacing the marked ingredients with sliced red chili pieces while preserving the bowl, lighting, steam, camera angle, and overall realism.",
  "enable_sequential": false,
  "resolution": "2K",
  "thinking_mode": false,
  "watermark": false
}'
json
{
  "model": "wan/2-7-image",
  "prompt": "Transform the food photo by replacing the marked ingredients with sliced red chili pieces while preserving the bowl, lighting, steam, camera angle, and overall realism.",
  "enable_sequential": false,
  "resolution": "2K",
  "thinking_mode": false,
  "watermark": false
}

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.