与 OpenAI 官方 API 的差异对照。集成前请对照本表与各 API 参考页。

兼容良好的部分

领域说明
Chat Completionsmessagesstreamtools / tool_calls 主流程
Embeddingsmodel + input
Files上传、列表、删除、下载
Audio speechmodelinputvoice、格式
错误体{ error: { message, type, param, code } } 结构

目录与模型 ID

连连智枢OpenAI 官方
列表 APIGET /models,OpenRouter 式 data[]OpenAI 自有目录
model目录 id(如 vendor/modelgpt-4o
列表是否需 Key不需要通常需要

定价字段为目录展示;详细计费见控制台。

网关扩展(官方无)

字段说明
pdf_preprocessPDF 预处理
extra_body并入上游 JSON
stream_options.include_usage流式强制带用量

用户 content parts

支持不支持(返回 400)
textimage_urlinput_audioinput_file旧版 filevideo_url

input_file 须三选一:file_id / file_url / file_data+filename

SDK

向量等能力请直接调 HTTP;SDK 封装范围见 SDK 限制

迁移检查

从 OpenAI 迁移 · 从 OpenRouter 迁移