公开接口全表
下游端点注册在 chi 的 v1 子路由上,挂载点是 /v1,所以表中的路径都要加上该前缀。 鉴权:Authorization: Bearer <下游令牌>(OpenAI 风格)或 x-api-key(Anthropic 风格客户端)。每个端点要求对应的 scope,缺少时返回 403 insufficient scope。 未登记的 /v1 路径由兜底路由原样透传(路径需通过闭集白名单),它不在这张表里。
共 17 条注册、17 个路径、Get、Post 方法。
| 方法 | 路径 | handler |
|---|---|---|
Post | /v1/* | customPath |
Post | /v1/audio/speech | audioSpeech |
Post | /v1/audio/transcriptions | audioTranscriptions |
Post | /v1/audio/translations | audioTranslations |
Post | /v1/chat/completions | chatCompletions |
Post | /v1/completions | completions |
Get | /v1/dashboard/billing/credit_summary | creditSummary |
Post | /v1/embeddings | embeddings |
Post | /v1/images/edits | imagesEdits |
Post | /v1/images/generations | imagesGenerations |
Post | /v1/images/variations | imagesVariations |
Post | /v1/messages | messages |
Post | /v1/messages/count_tokens | countTokens |
Get | /v1/models | getModels |
Post | /v1/moderations | moderations |
Post | /v1/redemption/redeem | redeemCode |
Post | /v1/responses | responses |