LRLumorouter
API INTEGRATION

使用 OpenAI 兼容接口

只需替换 Base URL,并使用你的 API Key,即可调用 AI Gateway 支持的模型。

Python 示例

from openai import OpenAI

client = OpenAI(
    base_url="https://ai.lumorouter.com/v1",
    api_key="你的 API Key",
)

client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[{"role": "user", "content": "你好"}],
)

请求参数

  • 使用统一 Base URL:https://ai.lumorouter.com/v1
  • 使用在控制台创建的 API Key
  • 模型 ID 以实时模型目录为准