Wan 2.7 Image Pro
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)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model name for generation tasks. This endpoint currently uses wan/2-7-image-pro. Default:"wan/2-7-image-pro"。 Allowed values:wan/2-7-image-pro。 Example:wan/2-7-image-pro。 |
prompt | string | Yes | Prompt 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_urls | array<string> | No | (Optional) Array of input image URLs. maxItems: 9. |
aspect_ratio | string | No | (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_sequential | boolean | No | Whether to enable sequential/group image mode. Default is false. Default:false。 Example:false。 |
resolution | string | No | Output resolution: 1K, 2K or 4K (default 2K). 4K is available only for text-to-image (no input images) with sequential generation off. Default:"2K"。 Allowed values:1K / 2K / 4K。 Example:2K。 |
thinking_mode | boolean | No | Whether 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_palette | array<object> | No | (Optional) Custom color theme. Only available when enable_sequential=false. Requires 3-10 colors, 8 recommended. minItems: 3. maxItems: 10. |
color_palette[].hex | string | Yes | HEX color value. pattern: ^#[0-9A-Fa-f]{6}$. Example:#C2D1E6。 |
color_palette[].ratio | string | Yes | Color proportion, format must be xx.xx%. pattern: ^\d{1,3}\.\d{2}%$. Example:23.51%。 |
bbox_list | array<array<array<integer>>> | 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]. |
watermark | boolean | No | Whether to add watermark. Default:false。 Example:false。 |
seed | integer | No | Optional. Omit for a random seed. minimum: 0. maximum: 2147483647. Example:0。 |
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": "wan/2-7-image-pro",
"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-pro",
"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": {}
}