Onie AI API
One API, three SDKs. Compatible with OpenAI, Anthropic Claude & Alibaba DashScope. Powered by Qwen models, up to 90% cheaper. Start with just $5.
Why Onie AI API?
Works with OpenAI, Anthropic Claude & Alibaba DashScope SDKs. Switch your base URL, keep your code.
3 SDKs Compatible
Works with OpenAI SDK, Anthropic Claude SDK, and Alibaba DashScope SDK. Change one line of code, keep everything else.
Up to 90% Cheaper
Qwen Turbo at $0.045/1M tokens — far cheaper than GPT-4, Claude Opus, or direct Alibaba pricing. Same quality, fraction of the cost.
3 Key Formats
OpenAI (sk-onie-), Claude (sk-ant-onie-), and DashScope (sk-ds-onie-) formats supported.
Spending Limits
Set spending limits per API key. Auto-stop when limit reached. Never overspend.
Real-time Usage
Track tokens, costs, and requests in real-time. Per-model and per-key analytics.
Streaming Support
Full streaming support for real-time text generation. SSE protocol compatible.
Models & Pricing
Choose the right model for your workload. All prices per 1 million tokens.
Flagship Models
Best quality for complex tasks. Deep reasoning, creative writing, and advanced analysis.
qwen3-maxqwen-maxInput/1M
$0.78
Output/1M
$3.90
Context
262K
ID
qwen3-maxInput/1M
$1.04
Output/1M
$4.16
Context
252K
ID
qwen-maxComplete Pricing Overview
Compare all models at a glance. Click any category above for details.
OpenAI, Claude & Alibaba SDK Compatible
Use your existing OpenAI, Anthropic Claude, or Alibaba DashScope code. Just change the base URL and API key — everything else stays the same.
Model Aliases
Use familiar model names from OpenAI and Anthropic Claude SDKs. Auto-mapped to Alibaba Qwen models.
OpenAI SDK
gpt-4qwen-maxgpt-4oqwen-plusgpt-3.5-turboqwen-turboAnthropic Claude SDK
claude-3-opusqwen-maxclaude-3-sonnetqwen-plusclaude-3-haikuqwen-turboAlibaba DashScope SDK
qwen-maxDirectqwen-plusDirectqwen-turboDirectAPI Key Formats
All formats work with the same endpoint. Choose based on your SDK.
OpenAI
sk-onie-...Python/JS SDK, LangChain, LlamaIndex
Anthropic Claude
sk-ant-onie-...Anthropic Claude SDK (Python/JS)
Alibaba DashScope
sk-ds-onie-...Alibaba Cloud DashScope native SDK
Base URL: https://api.onie.net/ai/v1
Quick Start
Get started in minutes with your favorite language.
from openai import OpenAI
client = OpenAI(
api_key="sk-onie-xxxxxxxxxxxx",
base_url="https://api.onie.net/ai/v1"
)
response = client.chat.completions.create(
model="qwen-plus",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=100
)
print(response.choices[0].message.content)Start Building with AI
Create an API key with just $5 and start calling AI models in minutes. Compatible with OpenAI, Anthropic Claude & Alibaba DashScope SDKs. No vendor lock-in.
Powered by Alibaba Cloud Qwen models. 10% lower than official Alibaba pricing.