星海词元星海词元
Ready to build?Get an API key — all models at 50% of the official price →
Home › Models › qwen4-max-preview

qwen4-max-preview API

Call qwen4-max-preview through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.

Alibaba QwenChatVisionReasoningCoding工具调用Long context

Pricing

Input$0.92 / 1M tokens  (¥6.00)
Output$2.77 / 1M tokens  (¥18.00)
Output multiplier×3.00
Context window1M tokens

Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY

Alibaba Qwen

Qwen models cover multilingual chat, long-context reasoning and the Qwen-Image generation series, which is exposed through the same unified endpoint.

When to use it

At $0.92 per 1M input tokens it sits above the catalogue median of $0.50 — a capability-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.

Code

from openai import OpenAI
client = OpenAI(
  base_url="https://starseaapi.com/v1",
  api_key="sk-your-key"
)
r = client.chat.completions.create(
  model="qwen4-max-preview",
  messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)

Integrations · Quickstart

Other models from this provider

ModelsInput $/MOutput $/MIntelligence indexCoding index
qwen3.8-flash$0.06$0.2139.873.1
qwen3.8-max$0.92$2.7745.476.2

Capabilities