ModelStream LogoModelStream Logo
Models
Video API
Image API
Chat API
Audio API
Studio
Pricing
Docs
Menu
IntroductionQuickstartAPI KeysUse with Hermes AgentUse with OpenClaw
Model ListBilling Guide
ModelStream

Video API

  • Seedance 2.0
  • Happyhorse 1.0
  • Vidu Q3
  • Kling V3.0
  • Veo 3.1
  • Wan 2.7
  • More Video Models →

Image API

  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0
  • Imagen 4
  • Qwen Image 2.0
  • Z-Image Turbo
  • More Image Models →

Audio API

  • Suno Music
  • Qwen3 TTS Flash
  • More Audio Models →

Chat API

  • GLM-5.2
  • Claude Opus 4.8
  • Gemini 3.5 Flash
  • Qwen 3.7 Max
  • GPT 5.5
  • More Chat Models →

About Us

  • Privacy Policy
  • Terms of Service
  • Support
  • Enterprise

© 2026 ModelStream Inc. All rights reserved.

API Documentation
API Reference
Images
Generate Image

Generate Image

Loading models...
Q
Qwen-Image-Edit-Max (qwen-image-edit-max)
qwen-image-edit-max0 models support this endpoint

The Max series of Qwen’s image editing models delivers more stable and versatile editing capabilities: enhanced industrial design and geometric reasoning, improved character consistency, reduced offset issues, and integrated LoRA capabilities for a wider range of image editing functions. This version is a snapshot as of January 16, 2026. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/qwen-image-edit-max-2026-01-16?serviceSite=asia-pacific-china

Generate image

https://api.modelstream.ai
POST/v1/images/generations

Authentication

BearerAuth
AuthenticationBearer <token>

All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx

Parameter Location: Header Param

Request Body

application/json

These parameters come from the selected model form_schema. Switching models updates this list and the request example.

images*array

Supports uploading 1 to 3 images for editing and fusion, max 10MB each. When size is unset, the output aspect ratio is based on the input image.

RequiredExample Value: ["https://static.modelstream.ai/demo/qwen/qwen-image-edit.png"]Value Range: 0 ≤ value ≤ 3
prompt*string
RequiredExample Value: Placeholder: Describe the editing instruction, style, and composition in detail (max 800 characters)...
negative_prompt?string

Describe elements you do not want in the image, up to 500 characters. Optional.

Example Value: Placeholder: Describe content you do not want to see, e.g., low resolution, worst quality...
n?number

The number of images to output, 1-6 supported.

Example Value: 1Value Range: 1 ≤ value ≤ 6step: 1
size?string

Sets the output resolution; both width and height fall within 512-2048. Leave empty (Auto) to derive from the input image with an aspect ratio close to the original.

Example Value:
Enum/Options:
Auto: 1024 * 1024 (1:1): 1024*10241536 * 1536 (1:1): 1536*1536768 * 1152 (2:3): 768*11521024 * 1536 (2:3): 1024*15361152 * 768 (3:2): 1152*7681536 * 1024 (3:2): 1536*1024960 * 1280 (3:4): 960*12801080 * 1440 (3:4): 1080*14401280 * 960 (4:3): 1280*9601440 * 1080 (4:3): 1440*1080720 * 1280 (9:16): 720*12801080 * 1920 (9:16): 1080*19201280 * 720 (16:9): 1280*7201920 * 1080 (16:9): 1920*10801344 * 576 (21:9): 1344*5762048 * 872 (21:9): 2048*872
prompt_extend?boolean

When enabled, the model optimizes the prompt, significantly improving results for simple prompts. On by default.

Example Value: true
watermark?boolean

Adds a 'Qwen-Image' watermark to the bottom right of the image. Off by default.

Example Value: false

Response Parameters

application/json
200apiDocs.responses.successGenerateImage
created?integer

Parameter description for Created

data?array

Parameter description for Data

curl -X POST "https://api.modelstream.ai/v1/images/generations" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-edit-max",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"
          },
          {
            "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"
          },
          {
            "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"
          },
          {
            "text": "The girl from Image 1 is wearing the black dress from Image 2 and sitting in the pose from Image 3. Keep her clothing, hairstyle, and expression unchanged, and make the action look natural and smooth."
          }
        ]
      }
    ]
  },
  "parameters": {
    "n": 2,
    "negative_prompt": "low resolution, error, worst quality, low quality, disfigured, extra fingers, or bad proportions",
    "prompt_extend": true,
    "watermark": false,
    "size": "1024*1536"
  }
}'
{
  "created": 0,
  "data": [
    {
      "url": "string",
      "b64_json": "string",
      "revised_prompt": "string"
    }
  ]
}