omni-inference
它能做什么
这项技能介绍 AI 应用和智能体向 OmniRoute 发送请求的主要方式。适合想通过同一个兼容接口调用对话、嵌入、图像或语音功能的开发者。
适用场景
- ✓当用户想通过 OmniRoute 发送对话请求的时候。
- ✓当用户想通过网关调用嵌入、图像、语音或内容审核功能的时候。
- ✓当用户想使用 Responses API 或重排序调用的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-inference/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请通过 OmniRoute 发送一个对话请求,并把回答返回给我。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出推理端点,例如 chat completions、嵌入、图像、音频、内容审核和重排序。请求使用 OpenAI 风格的格式和 bearer 令牌。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
The core OpenAI-compatible inference endpoints: chat completions, embeddings, images, audio (TTS/STT), moderations, rerank, and the Responses API. The primary integration surface for AI agents.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
POST /api/v1/session-leasesGET /api/v1/searchPOST /api/v1/searchPOST /api/v1/chat/completionsGET /api/v1/wsPOST /api/v1/providers/{provider}/chat/completionsPOST /api/v1/api/chatPOST /api/v1/messagesPOST /api/v1/messages/count_tokensPOST /api/v1/responsesPOST /api/v1/embeddingsGET /api/v1/multimodal-embeddingsPOST /api/v1/multimodal-embeddingsPOST /api/v1/providers/{provider}/embeddingsPOST /api/v1/images/generationsPOST /api/v1/providers/{provider}/images/generationsPOST /api/v1/audio/speechPOST /api/v1/audio/transcriptionsPOST /api/v1/moderationsPOST /api/v1/rerankGET /api/v1GET /api/v1/providers/{provider}/modelsGET /api/v1/management/proxy-subscriptionsPOST /api/v1/management/proxy-subscriptionsGET /api/v1/management/proxy-subscriptions/{id}PATCH /api/v1/management/proxy-subscriptions/{id}DELETE /api/v1/management/proxy-subscriptions/{id}GET /api/v1/management/proxy-subscriptions/{id}/nodesPOST /api/v1/management/proxy-subscriptions/{id}/refreshPOST /api/v1/ocrPOST /api/v1/audio/translationsGET /api/v1/voicesPOST /api/v1/speech-to-textPOST /api/v1/text-to-speech/{voiceId}POST /api/v1/sound-generationPOST /api/v1/musicPOST /api/v1/music/streamPOST /api/v1/music/detailedPOST /api/v1/music/detailed/streamPOST /api/v1/music/planGET /api/v1/explain/routingGET /api/v1/providers/suggested-modelsGET /api/v1/provider-plugin-manifest- [
GET /api/v1/{omnirouteCatchAll}](references/endpoints.md#get-apiv1omnir
常见问题
它兼容 OpenAI 吗?
这项技能把这些端点描述为兼容 OpenAI 的端点。
它需要什么身份验证?
请求需要有效的 bearer 令牌或会话 cookie。
完整的请求细节在哪里?
这项技能指向 OpenAPI 规范和一份单独的端点参考文件。
详情
作者的原始描述
The core OpenAI-compatible inference endpoints: chat completions, embeddings, images, audio (TTS/STT), moderations, rerank, and the Responses API. The primary integration surface for AI agents.
热度
- GitHub 星标
- 84k
- 排名
- #1429
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …