The Qwen API, for less — pay only for what you use
Drop-in OpenAI-compatible endpoint. No subscriptions, no hidden fees, no commitments — just prepaid credits starting at $5.
No credit card required to sign up.
OpenAI-compatible
Switch one line — set your base URL and use the OpenAI SDK you already know.
Prepaid credits
Top up from $5 via Stripe. No monthly fees, no surprise invoices.
Usage dashboard
Recent token counts, request status, and cost breakdown by model.
Model pricing highlights
qwen3.8-27b
Only $0.493 per 1M input tokens
$2.15 per 1M output tokens · 1M context
qwen3.8-flash
Only $0.14 per 1M input tokens
$0.45 per 1M output tokens · 1M context
New accounts get 10,000 free tokens to try any model. Create your account
Quick start
from openai import OpenAI
client = OpenAI(api_key="qgw_sk_live_xxx",# replace with your API key
base_url="https://qwenapigateway.com/v1",)
response = client.chat.completions.create(
model="qwen3.8-flash",# replace with your desired model
messages=[{"role": "user", "content": "Hello"}],)
print(response.choices[0].message.content)