Endpoints
Streaming
Add `stream: true` to get Server-Sent Events. Tokens arrive as they're generated — great for chat UIs.
Base URL & authentication
Base URL: https://api.openadapter.in
All requests need an Authorization: Bearer sk-cv-... header. Generate or copy your API key from the Dashboard → API Keys page.
Add stream: true to get Server-Sent Events. Tokens arrive as they're generated — great for chat UIs.
curl https://api.openadapter.in/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-N \
-d '{
"model": "DeepSeek-V3",
"messages": [{"role": "user", "content": "Explain quantum computing simply."}],
"stream": true
}'
# Each line: data: {"choices":[{"delta":{"content":"..."}}]}
# Stream ends with: data: [DONE]stream = client.chat.completions.create(
model="DeepSeek-V3",
messages=[{"role": "user", "content": "Explain quantum computing simply."}],
stream=True
)
for chunk in stream:
delta = chunk.choices[0].delta
if delta.content:
print(delta.content, end="", flush=True)const stream = await client.chat.completions.create({
model: 'DeepSeek-V3',
messages: [{ role: 'user', content: 'Explain quantum computing simply.' }],
stream: true,
});
for await (const chunk of stream) {
const content = chunk.choices[0]?.delta?.content;
if (content) process.stdout.write(content);
}Chat Completions
The primary endpoint. Accepts OpenAI-format requests and routes to the best available provider automatically. Supports all standard parameters.
Messages API (Anthropic)
OpenAdapter also supports the native Anthropic Messages format on `/v1/messages`. This is what Claude Code, Claude Desktop, and the Anthropic SDK use. Your same