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...
W
Wan2.6-Image (wan2.6-image)
wan2.6-image0 models support this endpoint

Wan2.6 Image, An all-round image generation model that supports joint text–image reasoning, multi-image creative fusion, commercial-grade consistency, aesthetic style transfer, and precise control of framing and lighting, significantly enhancing consistency, controllability, and expressiveness in image generation. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.6-image?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.

Generation Mode

Choose the generation mode. Text to Image: generate from a text prompt only. Image to Image / Edit: upload 1-4 reference images for editing, style transfer or redraw. Only one mode at a time.

prompt*string

Describe the image content or editing instructions. Supports Chinese and English, max 2,000 chars.

RequiredExample Value: A majestic golden retriever wearing a sophisticated steampunk explorer outfit, sitting in a Victorian library with golden lighting. The outfit features brass-framed monocles and leather vests with intricate gear details. Highly detailed 8k cinematic studio portrait with professional lighting.Placeholder: Enter prompt...
enable_interleave?boolean

Enable for text-and-image interleaved output (multiple images); disable for standard image generation/editing. When on, the count is fixed at 1.

Example Value: false
size?string

1K ≈ 1280*1280 total pixels; 2K ≈ 2048*2048. In image modes the ratio follows the reference image. A width*height value is also accepted.

Example Value: 1280*1280
Enum/Options:
1K: 1280*12802K: 2048*2048
n?number

Standard mode supports 1-4; Interleaved mode is fixed at 1.

Example Value: 1Value Range: 1 ≤ value ≤ 4step: 1
prompt_extend?boolean

When enabled, AI intelligently rewrites the prompt to improve detail. Only affects standard image generation/editing mode. Enabled by default.

Example Value: true
negative_prompt?string

Describe what you do not want in the image. Supports Chinese and English, max 500 chars.

Example Value: low resolution, low quality, distorted limbs, malformed fingers, oversaturated, waxy feel, no detail on faces, overly smooth, AI-generated look, chaotic composition, blurry text, distorted
watermark?boolean

When enabled, adds an 'AI-generated' watermark in the lower-right corner. Disabled by default.

Example Value: false
seed?number

Controls randomness, range [0, 2147483647]. Leave empty for random.

Placeholder: Leave blank for random

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": "wan2.6-image",
  "prompt": "A majestic golden retriever wearing a sophisticated steampunk explorer outfit, sitting in a Victorian library with golden lighting. The outfit features brass-framed monocles and leather vests with intricate gear details. Highly detailed 8k cinematic studio portrait with professional lighting.",
  "parameters": {
    "size": "1280*1280",
    "n": 1,
    "enable_interleave": false,
    "prompt_extend": true,
    "negative_prompt": "low resolution, low quality, distorted limbs, malformed fingers, oversaturated, waxy feel, no detail on faces, overly smooth, AI-generated look, chaotic composition, blurry text, distorted",
    "watermark": false
  },
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "text": "A majestic golden retriever wearing a sophisticated steampunk explorer outfit, sitting in a Victorian library with golden lighting. The outfit features brass-framed monocles and leather vests with intricate gear details. Highly detailed 8k cinematic studio portrait with professional lighting."
          }
        ]
      }
    ]
  }
}'
{
  "created": 0,
  "data": [
    {
      "url": "string",
      "b64_json": "string",
      "revised_prompt": "string"
    }
  ]
}