Pay as you go
From $20
Best for
- Production projects
- Fast iteration & scaling
- Startups & indie devs
What's included
- Access to all models
- No usage limits
- Access to Playground
- Pay with crypto
- Pay only for what you use
- Priority human support
Get an AI/ML API key and call Qwen4 Max and other Qwen models with the Universal AI SDK. Up to 30% off right now, no promo code. Pay as you go from one balance.
Write a Python function that removes duplicates from a list and keeps the order.
Qwen4 MaxQwen3.8 MaxQwen PlusQwen MaxQwen3 VL Plus
Here is a short version. It keeps the first copy of each item:
def dedupe(items: list) -> list:
return list(dict.fromkeys(items))A dict keeps insertion order, so the items stay where they were
Qwen is typing
Trusted by top teams
Qwen models on AI/ML API with today's discounts, priced per 1M tokens. One key calls any row.
Sign up with Google, GitHub or email. If you already have an account, log in.

Open Billing and add funds. You pay as you go and each request draws on this balance.
Open API keys and choose Create API Key. Name it, set a spending limit and store it on your server.
Open the Playground, pick a Qwen model and type a message. To call it from code, use your key with a supported SDK.
Write a haiku about the ocean.
Qwen4 MaxQwen3.8 MaxQwen PlusQwen MaxQwen3 VL Plus
Waves fold into foam,
the moon pulls a silver thread,
shells keep the old songs
Qwen is typing
- OPENAI_API_KEY- ANTHROPIC_API_KEY- GEMINI_API_KEY+ AIML_API_KEYUse GPT, Claude and other AI models with the SDK. Switch models without building a separate integration.
Start small and scale on the same API as your traffic grows
From $20
Custom
Create an AI/ML API account, add credit, then open API keys and choose Create API Key. The same key calls every Qwen model. Follow the setup guide.
No. You get an AI/ML API key and call Qwen models through api.aimlapi.com. A key from Alibaba Cloud Model Studio works only with Alibaba's own API, and one can't replace the other.
You pay per token from your AI/ML API balance. Qwen4 Max is 20% off: $1.20 for 1M input tokens instead of $1.50, and $3.60 for 1M output instead of $4.50. Qwen Plus is $0.28 and $0.84. See all Qwen prices.
Yes. Set base_url to https://api.aimlapi.com/v1 and pass your AI/ML API key; Qwen model IDs start with alibaba/. See supported SDKs.
Add https://mcp.aimlapi.com/mcp as a remote MCP server and sign in through the browser. Your agent can then run AI/ML API models and check your balance. Read the MCP guide.
Qwen4 Max for reasoning, coding and agents, Qwen Plus for fast, low-cost chat, Qwen3 VL Plus for image understanding.
Store the key in a server-side environment variable. Keep it out of browser code and public repositories, and set a spending limit in your account.