Quickstart
Follow three steps to make a first request: set a key, point the base_url and send a chat completion.
On this page
1. Get an API key
Create a key on the console's “API Keys” page. The full value is shown once — store it in a secret manager or environment variable immediately. See Get an API key.
export APIONE_API_KEY="YOUR_APIONE_KEY"2. Point at the APIONE base_url
If your project already uses the OpenAI SDK, two lines of configuration change — the SDK, request body and response shape stay the same.
| Field | Value |
|---|---|
| Base URL | https://api.apione.ai/v1 |
| API key | YOUR_APIONE_KEY |
| Model name | A model ID, e.g. claude-sonnet-4-6 |
3. Send your first request
curl https://api.apione.ai/v1/chat/completions \
-H "Authorization: Bearer $APIONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"messages": [
{ "role": "user", "content": "Explain what an API gateway is in one sentence." }
]
}'# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.apione.ai/v1",
api_key="YOUR_APIONE_KEY",
)
resp = client.chat.completions.create(
model="claude-sonnet-4-6",
messages=[{"role": "user", "content": "Explain what an API gateway is in one sentence."}],
)
print(resp.choices[0].message.content)// npm i openai
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.apione.ai/v1",
apiKey: process.env.APIONE_API_KEY,
});
const resp = await client.chat.completions.create({
model: "claude-sonnet-4-6",
messages: [{ role: "user", content: "Explain what an API gateway is in one sentence." }],
});
console.log(resp.choices[0].message.content);Swap model for gpt-5.6-sol, gemini-2.5-pro or deepseek-v4-flash — nothing else changes. Full names are in the model list.
Check that it worked
The response contains choices[0].message.content and a usage object. On a 4xx, check the error codes — the two most common causes are stray whitespace around the key and a base_url missing /v1.
Next
- Your first API call — request and response field by field.
- Streaming — get the first token sooner.
- Use it in Claude Code — wire the gateway into an existing toolchain.
Contact us
Something unclear, or need a human? Pick the channel that fits your question.
Supportsupport@apione.ai
WeCom
Telegram
Communityhttps://t.me/apione
Support tickets
Billing & accountConsole › Feedback