Onie AI API
One API for GPT-6, Claude, Gemini, DeepSeek, GLM, Kimi & Qwen. Compatible with OpenAI & Anthropic Claude SDKs. Up to 40% below list price. Free keys — pay per 1M-token block.
Why Onie AI API?
Works with OpenAI & Anthropic Claude SDKs. Switch your base URL, keep your code.
2 SDKs Compatible
Works with OpenAI SDK and Anthropic Claude SDK. Change one line of code, keep everything else.
Up to 40% Cheaper
GPT-6 Astra at $6.00/1M input and Claude Sonnet 4.6 at $1.80/1M — up to 40% below list price. GLM-5.3 Flash from just $0.0104/1M tokens.
2 Key Formats
OpenAI (sk-onie-) and Claude (sk-ant-onie-) key 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.
Input/1M
$6.00
Output/1M
$30.00
Context
1M
ID
gpt-6-astraInput/1M
$3.00
Output/1M
$15.00
Context
200K
ID
claude-opus-4-6-thinkingInput/1M
$3.00
Output/1M
$18.00
Context
1M
ID
gpt-5.6-solComplete Pricing Overview
Compare all models at a glance. Click any category above for details.
OpenAI & Claude SDK Compatible
Use your existing OpenAI or Anthropic Claude code. Just change the base URL and API key — everything else stays the same.
Model IDs
Call every model directly by its ID — the same ID works across both SDKs. No aliases needed.
OpenAI SDK
claude-sonnet-4-6Directgpt-6-astraDirectgemini-3-flashDirectAnthropic Claude SDK
claude-opus-4-6-thinkingDirectclaude-sonnet-4-6DirectAPI 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)
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="claude-sonnet-4-6",
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 SDKs. No vendor lock-in.
Claude, Gemini & GPT-OSS models. Up to 40% below list price.