relay.fast
RU Sign in

Qwen models and API prices

This page lists all Alibaba models you can call with one relay.fast key. The tables are built from the live catalog, so the prices and the model list are current.

Qwen API prices

Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.

ModelModel IDOfficial input / output per 1M tokensrelay.fast from, input / outputCache read fromContext
Qwen3.8 27bqwen3.8-27b$0.5 / $3$0.1 / $0.6 (−80%)$0.021M
Qwen3.8 Flashqwen3.8-flash$0.15 / $0.47$0.027 / $0.0846 (−82%)$0.002881M
Qwen3.8 Maxqwen3.8-max$2 / $6$0.0667 / $0.2 (−96%)$0.008331M
Qwen4 Maxqwen4-max$1.5 / $4.5$0.3 / $0.9 (−80%)$0.0151M

Specifications

Release month, limits and features are as published by Alibaba.

ModelReleasedContextMax outputInputFeatures
Qwen3.8 27bAugust 20261M—text, images, videotool calling, reasoning, structured output, image input, prompt caching
Qwen3.8 FlashAugust 20261M131Ktext, images, videotool calling, reasoning, structured output, image input, prompt caching
Qwen4 MaxNovember 20261M131Ktext, images, videotool calling, reasoning, structured output, image input, prompt caching

Image, video and speech models

ModelModel IDList pricePrice from
Wan 3.0wan-3.0$0.125 per second of video$0.125 per second of video

Example request

Keep the key in the RELAY_FAST_API_KEY environment variable. Any model ID from the table works in the same request.

curl https://relay.fast/v1/chat/completions \
  -H "Authorization: Bearer $RELAY_FAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Hello"}]}'

How to connect

Create a relay.fast account, add funds and generate an API key. OpenAI-compatible clients use the base URL https://relay.fast/v1. Anthropic-compatible clients use https://relay.fast with the Messages API. Requests are charged to your balance for the tokens or units they use.

There are setup guides for the coding tools Claude Code, Codex, Cursor, Cline and OpenCode. Each model name in the tables links to its own page with prices, limits and an example request.

How pricing works

The official price is the list price published by Alibaba. The relay.fast price depends on the source a request uses, and the tables show the lowest current price. Prices and the model list can change at any time, so check the pricing page before you plan a budget.

Frequently asked questions

Do I need an account with Alibaba to use Qwen models here?

No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Alibaba.

Can I keep my existing SDK or coding tool?

Yes, if it lets you set a custom base URL and key. Point it at relay.fast and pick a model ID from the tables.

Where is the full list of models and prices?

The pricing page at https://relay.fast/pricing lists every model. The same data is available as JSON at https://relay.fast/pricing.json.

Start with relay.fast