OpenAI 格式接口 → Claude Code API 转发服务
POST /v1/chat/completions - 聊天补全接口
通过 Authorization 请求头传递 API Key:
Authorization: Bearer sk-ant-xxx
API_URL|MODEL_NAME
示例:https://cc.api|claude-opus-4-8
curl https://cc2openai.fvv.lol/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-fvv-xxx" \
-d '{
"model": "https://cc.api|claude-opus-4-8",
"messages": [{"role": "user", "content": "你好"}],
"stream": true
}'
model - 模型名称(含URL)messages - 消息数组stream - 是否流式响应max_tokens - 最大 token 数temperature - 温度参数