API Documentation
OdinClaw is OpenAI-compatible. If you already use the OpenAI SDK, you only need to change 2 lines.
Authentication
Authenticate all API requests by including your API key in the Authorization header.
Authorization: Bearer oc_live_your_key_hereYour API key can be found and managed in the API Keys section. Never share your key or commit it to version control.
Base URL
https://api.odinclaw.ai/v1Quick Start
Choose your language. All examples use the same OpenAI SDK — just point it at OdinClaw.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.odinclaw.ai/v1",
api_key="oc_live_your_key_here"
)
response = client.chat.completions.create(
model="minimax-2.5",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"}
],
max_tokens=200
)
print(response.choices[0].message.content)Node.js
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.odinclaw.ai/v1',
apiKey: 'oc_live_your_key_here',
});
const response = await client.chat.completions.create({
model: 'minimax-2.5',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What is the capital of France?' },
],
max_tokens: 200,
});
console.log(response.choices[0].message.content);cURL
curl https://api.odinclaw.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer oc_live_your_key_here" \
-d '{
"model": "minimax-2.5",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
],
"max_tokens": 200
}'Endpoint Reference
/v1/chat/completionsCreate a chat completion. Fully compatible with OpenAI's chat completions API.
modelstringYesmessagesarrayYesmax_tokensintegerNotemperaturefloatNostreambooleanNo/v1/modelsList all available models.
curl https://api.odinclaw.ai/v1/models \
-H "Authorization: Bearer oc_live_your_key_here"/v1/keysList all API keys for your account.
curl https://api.odinclaw.ai/v1/keys \
-H "Authorization: Bearer oc_live_your_key_here"/v1/keysCreate a new API key.
curl https://api.odinclaw.ai/v1/keys \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer oc_live_your_key_here" \
-d '{"name": "Production Key"}'/v1/usageGet token usage statistics. Query params: period (this_month | last_month | last_7_days)
curl "https://api.odinclaw.ai/v1/usage?period=this_month" \
-H "Authorization: Bearer oc_live_your_key_here"Available Models
minimax-2.5MiniMax 2.5 · 128K ctx
deepseek-v3DeepSeek V3 · 64K ctx
llama-3.3-70bLlama 3.3 70B · 128K ctx
qwen-3-80bQwen 3 80B · 32K ctx