Qwen4-Max on Together AI

Qwen4 · Alibaba

Serverless

Last refreshed 2026-11-20. Next refresh: weekly.

Why use Qwen4-Max on Together AI?

Together AI offers Qwen4-Max with pay-as-you-go pricing at $1.50/1M input tokens. Together AI is a platform for running open-source and proprietary LLMs with fast serverless and dedicated endpoints at competitive inference pricing.

Compare Qwen4-Max across 9 providers to find the best fit for your use case
Input / 1M
$1.50
Output / 1M
$4.50
Cache
read $0.075
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install together
Auth
export TOGETHER_API_KEY=...
Call
from together import Together
client = Together()  # reads TOGETHER_API_KEY from env
response = client.chat.completions.create(
    model="Qwen/Qwen4-Max",
Model ID
Qwen/Qwen4-Max

Request example

from together import Together

client = Together()  # reads TOGETHER_API_KEY from env
response = client.chat.completions.create(
    model="Qwen/Qwen4-Max",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "Qwen/Qwen4-Max", not the LLMReference slug "qwen4-max".
  • Together uses "organization/model-name" format, e.g. "meta-llama/Llama-4-Scout-17B-16E-Instruct" or "Qwen/QwQ-32B". See the Together model catalog for the exact ID.
  • The examples expect TOGETHER_API_KEY; rename it only if your application config maps the new variable.

Compare Qwen4-Max Across Providers

ProviderInput (per 1M)Output (per 1M)
Alibaba Cloud PAI-EAS$1.50$4.50
OpenRouter$1.50$4.50
Vercel AI Gateway$1.50$4.50
DeepInfra$1.41$4.24
Novita AI$1.41$4.24
View all 9 providers →

Pricing

TypePrice (per 1M)
Input tokens$1.50
Output tokens$4.50

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt CachingVideo

About Qwen4-Max

Qwen4-Max is the first production model in Alibaba's Qwen4 series and the general-availability successor to Qwen4-Max-Preview, with pay-as-you-go API access on Alibaba Cloud Model Studio. The Qwen team describes a new sparse MoE architecture with a 2.4-trillion-parameter backbone, 71B parameters activated per token and an additional 328B N-gram embedding parameters, with native vision. It takes text, image and video input and returns text, with a 1,000,000-token context window, deep thinking at low, high and xhigh effort, parallel tool calling, web search, structured output, and explicit and implicit caching, over OpenAI- and Anthropic-compatible APIs.

Get Started