Simple, unified, powerful AI integration guide.
Start using top AI models in just a few steps.
Create account and log in
Add funds to your balance
Create an API Key
Use standard OpenAI SDK
https://yourdomain.com/apiAuthorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://yourdomain.com/api"
)
response = client.chat.completions.create(
model="anthropic/claude-3.5-sonnet",
messages=[
{"role": "user", "content": "你好!请介绍一下你自己。"}
]
)
print(response.choices[0].message.content)curl https://yourdomain.com/api/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello world!"
}
]
}'