Documentation Index
Fetch the complete documentation index at: https://docs.omniakey.com/llms.txt
Use this file to discover all available pages before exploring further.
Anthropic 原生 base URL 是裸域名:
Messages
POST /v1/messages 是 Claude Code 和 Anthropic SDK 使用的协议。这个入口推荐使用
Claude 模型 ID;GPT 和 Gemini 默认走 OpenAI 兼容或 Gemini 原生入口。
curl https://api.omniakey.com/v1/messages \
-H "Authorization: Bearer your-omniakey-api-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-8",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Explain what a race condition is."}]
}'
Claude Code
export ANTHROPIC_BASE_URL="https://api.omniakey.com"
export ANTHROPIC_AUTH_TOKEN="your-omniakey-api-key"
claude
完整配置见 Claude Code API Key 配置。