OpenAI 兼容接口
使用统一 Base URL 和 API Key,即可调用模型目录中的 OpenAI 兼容接口。
Chat Completions / Embeddings
# 列出模型
curl https://ai.lumorouter.com/v1/models \
-H "Authorization: Bearer 你的 API Key"
# Chat Completions
curl https://ai.lumorouter.com/v1/chat/completions \
-H "Authorization: Bearer 你的 API Key" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"你好"}]}'
# Embeddings
curl https://ai.lumorouter.com/v1/embeddings \
-H "Authorization: Bearer 你的 API Key" \
-H "Content-Type: application/json" \
-d '{"model":"text-embedding-3-small","input":"hello"}'请求参数
- 使用统一 Base URL:
https://ai.lumorouter.com/v1 - 使用在控制台创建的 API Key
- 模型 ID 以实时模型目录为准