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-T2I (wan2.6-t2i)
wan2.6-t2i0 models support this endpoint

Wan2.6 text to image, Upgraded visual quality, aesthetics, and instruction-following deliver precise style control, realistic portraits, long-text understanding, and broad historical/cultural IP coverage, enabling high-quality, highly expressive visual generation. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.6-t2i?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.

prompt*string

Describe the desired content, style, and composition of the generated image. Supports Chinese and English, max 2,100 chars.

RequiredExample Value: A cozy flower shop storefront with large, exquisite glass windows reflecting the soft morning sunlight. A beautiful rustic wooden door is slightly ajar, and colorful seasonal flowers like peonies and hydrangeas are elegantly displayed in vintage buckets. High resolution, photorealistic, cinematic atmosphere.Placeholder: e.g., A flower shop with exquisite windows, a beautiful wooden door, and flowers on display
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, blurry details, warped textures, watermarks, text overlay.
size?string

Output aspect ratio / size (width*height). Common ratios: 1280*1280 (1:1), 1104*1472 (3:4), 1472*1104 (4:3), 960*1696 (9:16), 1696*960 (16:9).

Example Value: 1280*1280
Enum/Options:
1:1: 1280*12803:4: 1104*14724:3: 1472*11049:16: 960*169616:9: 1696*960
n?number

Number of images to generate, 1-4. Billing is based on this value; set to 1 for testing.

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

When enabled, an LLM intelligently rewrites and refines your prompt for better results (adds 3-5s). Enabled by default.

Example Value: true
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-t2i",
  "prompt": "A cozy flower shop storefront with large, exquisite glass windows reflecting the soft morning sunlight. A beautiful rustic wooden door is slightly ajar, and colorful seasonal flowers like peonies and hydrangeas are elegantly displayed in vintage buckets. High resolution, photorealistic, cinematic atmosphere.",
  "parameters": {
    "negative_prompt": "Low resolution, low quality, distorted limbs, blurry details, warped textures, watermarks, text overlay.",
    "size": "1280*1280",
    "n": 1,
    "prompt_extend": true,
    "watermark": false,
    "seed": 12345
  }
}'
{
  "created": 0,
  "data": [
    {
      "url": "string",
      "b64_json": "string",
      "revised_prompt": "string"
    }
  ]
}