API Documentation
OpenAI-compatible API. Drop-in replacement — just change your base URL.
PROXY
https://api.apivai.com/v1— OpenAI-compatible API endpoint (Claude + GPT)Authentication
All API requests require an API key passed as a Bearer token in the Authorization header. Get your API key from the Dashboard after logging in.
curl https://api.apivai.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Using OpenAI SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apivai.com/v1"
)
response = client.chat.completions.create(
model="claude-sonnet-4-6",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)