from openai import OpenAI
client = OpenAI(
base_url="https://api.kuaiapi.xyz/v1",
api_key="sk-..."
)
resp = client.chat.completions.create(
model="claude-opus-4-7",
messages=[{"role": "user", "content": "Hello!"}]
)Model Pricing
Access all popular AI models across multiple providers with transparent pricing.
| Model | Input $/M | Output $/M |
|---|---|---|
| claude-opus-4-7Anthropic | $5.00 | $25.00 |
| claude-sonnet-4-6Anthropic | $3.00 | $15.00 |
| claude-haiku-4-5Anthropic | $1.00 | $5.00 |
| gpt-5.5OpenAI | $2.50 | $15.00 |
| gpt-5.4OpenAI | $2.50 | $15.00 |
Showing 5 of 5 models. Prices are per million tokens.
Why KuaiAPI?
Everything you need to integrate AI into your applications.
Unified API
One OpenAI-compatible endpoint for Anthropic, OpenAI, Google, and DeepSeek models. No SDK changes needed.
Low Latency
Deployed in Singapore with optimized routing to provider APIs. Sub-100ms overhead on most requests.
Pay-as-you-go
No subscriptions or minimums. Pay only for the tokens you use. Transparent pricing per model.
All Models
From GPT to Claude to Gemini. Access the full spectrum of AI models through one key.
Get Started in Minutes
Three steps to your first AI API call.
Get API Key
Sign up at api.kuaiapi.xyz and create your free API key. No credit card required to start.
Install SDK
Use the official OpenAI SDK in your preferred language. No custom SDK needed.
pip install openaiMake First Request
Point the base_url to KuaiAPI and start using any model.
from openai import OpenAI
client = OpenAI(
base_url="https://api.kuaiapi.xyz/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)