API 参考/OpenAI 兼容 API

通过 UniGateway 使用 OpenAI 兼容端点,调用 Chat Completions、Responses、Embeddings、Models 与 Audio。

OpenAI 兼容 API

通过 UniGateway 使用 OpenAI 兼容端点,可直接接入 OpenAI SDK 或发送 HTTP 请求。

Base URL

https://api.unigateway.ai/v1

API 参考

API端点文档
Chat CompletionsPOST /chat/completionsChat Completions
ResponsesPOST /responsesResponses
EmbeddingsPOST /embeddingsEmbeddings
ModelsGET /modelsModels
AudioPOST /audio/transcriptionsPOST /audio/translationsAudio

Authentication

将 UniGateway API Key 作为 Bearer token 发送:

Authorization: Bearer <YOUR_UNIGATEWAY_API_KEY>

模型 ID 必须使用 GET /v1/models 返回的准确值。