接入文档

roadway.site 提供 OpenAI 兼容接口;以下示例中的 API Key 与 model_ref 均为占位符。

接入四步
步骤说明端点
1注册账号并创建 API Keyhttps://roadway.site/console/login
2选择模型https://roadway.site/console/public/models
3调用 OpenAI 兼容端点https://roadway.site/v1/chat/completions
4查看用量与账单https://roadway.site/console/usage

请求示例

curl https://roadway.site/v1/chat/completions -H "Authorization: Bearer sk-REPLACE_WITH_YOUR_KEY" -H "Content-Type: application/json" -d '{"model":"your-model-ref","messages":[{"role":"user","content":"你好"}]}'

常见问题

支持哪些接口协议?
提供 OpenAI 兼容的 HTTP 接口(/v1/chat/completions 等),可直接复用官方 SDK。
如何获得 API Key?
注册账号后在用户控制台创建 API Key;Key 仅在服务端校验,请勿写入前端代码。
价格如何计算?
按 token 计费,单位为 CNY per 1M tokens;输入、输出与缓存价格见价格表页。