Black Friday: GLM 5.4 at 50% off, DeepSeek V4.1 Flash at 70% off, and 50% off your first month of Base or Plus.See pricing  ↗

model apis · chat / llm

Qwen4 Max API●

Qwen4 Max is a chat model from Qwen. deeprelay serves it through an OpenAI-compatible API at https://api.deeprelay.ai/v1 under the model id deeprelay/qwen4-max, with a 1,000,000-token context window. It costs $1.50 per 1M input tokens and $4.50 per 1M output tokens, billed pay as you go against your deeprelay balance.

Available now

Qwen4 Max API pricing

Live catalog rates, billed per use against your deeprelay balance, no minimums. Qwen4 Max is priced per use rather than included in the $0.99-a-month flat plan.

TierRate
Serverless
Input tokens: $1.50 / 1MCached input tokens: $0.075 / 1MOutput tokens: $4.50 / 1M

rates are read every few minutes from the live model catalog and metered per request

Measured speed

Time to first token (p50)
3.4 s
Output speed (p50)
106 tokens/s

Last 7 days · as of UTC

Call Qwen4 Max in one request

Any OpenAI SDK works: set the base URL to https://api.deeprelay.ai/v1 and use your deeprelay API key.

curl
curl https://api.deeprelay.ai/v1/chat/completions \
  -H "Authorization: Bearer $DEEPRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deeprelay/qwen4-max",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deeprelay.ai/v1",
    api_key="YOUR_DEEPRELAY_API_KEY",
)

response = client.chat.completions.create(
    model="deeprelay/qwen4-max",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript (OpenAI SDK)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deeprelay.ai/v1",
  apiKey: process.env.DEEPRELAY_API_KEY,
});

const response = await client.chat.completions.create({
  model: "deeprelay/qwen4-max",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Qwen4 Max on deeprelay

Model iddeeprelay/qwen4-max
ModalityChat / LLM
AuthorQwen
Context window1,000,000 tokens
StreamingSupported
Aliases–
Flat planNot included: pay as you go

faq

Qwen4 Max API questions●

How much does the Qwen4 Max API cost?

Qwen4 Max on deeprelay currently costs $1.50 / 1M (input tokens), $0.075 / 1M (cached input tokens), $4.50 / 1M (output tokens), billed against your deeprelay balance as you go. There are no minimums. It is priced per use rather than included in the $0.99-a-month flat plan, which covers a named set of models.

Is the Qwen4 Max API OpenAI-compatible?

Yes. Point any OpenAI SDK at https://api.deeprelay.ai/v1 with a deeprelay API key and request model "deeprelay/qwen4-max". No proprietary client needed.

What is the context window of Qwen4 Max?

Qwen4 Max supports a 1,000,000-token context window on deeprelay.

How does billing work?

Chat models bill per input and output token at the listed per-million-token rates, metered per request against your deeprelay balance. Where a cached-input rate is listed, the part of a prompt the serving partner answers from its prompt cache (reported as prompt_tokens_details.cached_tokens) bills at that lower rate instead of the input rate.