Qwen via the Gatelum gateway
Qwen API: models, an API key and sample code
Gatelum serves the Qwen family, developed by Alibaba, through its own gateway. Requests use the OpenAI API format, so the standard OpenAI SDK reaches Qwen once the base URL and key change, and the same Gatelum key also covers the rest of the catalog.
You won't need an Alibaba Cloud account: sign up with Gatelum, top up in rubles with a code and create a key. Below are the Qwen models enabled right now — the Max, Plus and Flash lines — with prices and ready-to-run code.
The Gatelum gateway is how Qwen models reach you. This is not an official Qwen page — Gatelum is an independent OpenAI-compatible gateway, with its own key, balance and prices.
Qwen models on Gatelum and their prices
Each model in the table carries a Model ID that starts with qwen/. Prices follow the catalog's units, and text models are priced per million input and output tokens. The model parameter takes the Model ID.
| Model and Model ID | Type | Input, per 1M tokens | Output, per 1M tokens |
|---|---|---|---|
Qwen 3.8 Maxqwen/qwen3.8-max | Conversation | $0.3720 | $1.20 |
Qwen 3.8 Omni Flashqwen/qwen3.8-omni-flash | Conversation | $0.0900 | $0.2400 |
Qwen 3.7 Maxqwen/qwen3.7-max | Conversation | $0.2100 | $0.4500 |
Qwen 3.8 Flashqwen/qwen3.8-flash | Conversation | $0.0400 | $0.1230 |
Qwen 3.7 Plusqwen/qwen3.7-plus | Conversation | $0.1200 | $0.3000 |
Qwen3 Embedding 8Bqwen/qwen3-embedding-8b | Vectors | $0.0230 | — |
Qwen3 Embedding 4Bqwen/qwen3-embedding-4b | Vectors | $0.0430 | — |
Qwen Image 3.0 Proqwen/qwen-image-3.0-pro | Picture | $0.0940 per unit | |
Qwen Image 3.0qwen/qwen-image-3.0 | Picture | $0.0780 per unit | |
Qwen Image 2.1qwen/qwen-image-2.1 | Picture | $0.0590 per unit | |
Qwen Image 2.0qwen/qwen-image-2.0 | Picture | $0.0820 per unit | |
All prices and the balance are in US dollars. There are no ruble prices in the interface.
How to get a Qwen API key
Sign up
Create an Gatelum account with your email — it takes about a minute.
Top up with a code
Once you redeem a top-up code from the store in your dashboard, the amount appears on your prepaid balance immediately.
Create a key
Create an glt_… API key in your dashboard. It works with Qwen models and the rest of the catalog straight away, and you can put a spending cap on it.
Qwen API request example
Because the gateway speaks the OpenAI API, three steps are enough: put https://gatelum.com/v1 in the base URL, attach your Gatelum key and take a Model ID from the table. qwen/qwen3.8-max is used in the example.
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/chat/completions' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "qwen/qwen3.8-max",
"messages": [
{
"role": "user",
"content": "Hi! Tell me about yourself in two sentences."
}
]
}
JSONQwen API pricing and payment
Budgets of all sizes are covered by Qwen: bulk text processing and chatbots fit Flash and Plus, while the senior Max line is there for harder tasks. Only actual usage is billed, at the rates in the table, with no subscription.
- The balance is prepaid: you add funds before sending requests, with no subscription or monthly fee.
- Top-ups are made in rubles using a code, which you redeem in your dashboard.
- Charges cover actual usage only, at the rates listed in the table; each request is visible in your history.
To see what your workload would cost, try the cost calculator.
Qwen API FAQ
How do I get a Qwen API key?
Open a Gatelum account, top up with a code in the dashboard and issue a key. That glt_… key supports qwen/ Model IDs as well as every other catalog model.
Is this Alibaba's official Qwen API?
No. Gatelum is a standalone gateway: Qwen requests are served through Gatelum, and the key, balance and pricing are ours. Alibaba is named only so it's clear which models are meant.
Which Qwen models does Gatelum offer?
The ones listed in the table: the Gatelum catalog offers text models from the Qwen Max, Plus and Flash lines. The catalog changes and the table follows it, so check the table for the current lineup.
How much does the Qwen API cost?
Prices for every Qwen model on Gatelum appear in the table and the catalog, with input and output tokens counted separately. Charges cover actual usage only; the cost calculator helps work out a monthly budget.
How do I pay for Qwen?
Top up your prepaid Gatelum balance: buy a code with rubles and redeem it in the dashboard. Requests to Qwen and every other model draw on that balance.
What is the difference between Qwen Max, Plus and Flash?
Max, Plus and Flash are lines of a single family: Max is the senior model, while Plus and Flash are the usual pick for high-volume traffic. Rates differ between versions, so compare them in the table; moving between models is a Model ID change.
Start using Qwen through Gatelum
In a few minutes you can sign up, redeem a top-up code and send your first request to Qwen. The same key also unlocks every other model in the catalog.