70% off Wan3.0 Standard and 50% off Wan3.0 Prime. Try Wan3.0

Qwen4-Max API

Flagship multimodal Qwen4 model for coding, office work, front-end design, and complex agent tasks

Get an API key
Input per 1M
$1.50
Cached input per 1M
$0.075
Output per 1M
$4.50
Context window
1M

Call Qwen4-Max in one request

Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID. Qwen4-Max is also available through the OpenAI Responses API.

Model ID:alibaba:qwen@4-max
Qwen4-Max API docs
Request
import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RUNWARE_API_KEY"],
    base_url="https://api.runware.ai/v1",
)

stream = client.chat.completions.create(
    model="alibaba:qwen@4-max",
    messages=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
    stream_options={"include_usage": True},
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print("\n", chunk.usage)

Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.

About Qwen4-Max

Qwen4-Max is the flagship multimodal model in Alibaba's Qwen4 family, built for coding, office productivity, front-end design, and complex agent tasks. It builds on Qwen3.8-Max with stronger world knowledge, perception, and professional tool use, and it accepts text, images, and video with a 1M-token context window, configurable reasoning effort, function calling, and JSON Schema output. It is well suited to coding agents, screenshot and document analysis, and agents that operate graphical interfaces.

Developer
Alibaba
Released
16 Nov, 2026
Input
Text, Image, Video
Context window
1M tokens
Max output
131K tokens
API
OpenAI Chat Completions, OpenAI Responses

Already on another provider?

Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.

Read the docs

Qwen4-Max pricing

Pay per token with prepaid credits, on the same key and billing as every other model on Runware. No subscription.

Input
$1.50/1M tokens
Cached input
$0.075/1M tokens
Cache write
$1.875/1M tokens
Output
$4.50/1M tokens

Start on demand. Scale on dedicated.

Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.

Get an API key