ai-model-api-gateway-ai-hive

ai-model-api-gateway-ai-hive is a skill for Codex from wubin1836/ai-hive-agent-skills. It costs 223 tokens per session (2,459 once invoked), scanned A, original, MIT.

A workflow for designing an AI model API gateway, a service that gives applications one managed entry point to multiple AI model providers.

In plain words
What is it for?
Use it to plan image and video model integrations, routing and fallback rules, task-state tracking, price snapshots, failure records, and gradual rollout testing.
Why use it?
It organizes authentication, model selection, asynchronous jobs, retries, auditing, and cost controls so teams do not have to handle each provider differently.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to plan image and video model integrations, routing and fallback rules, task-state tracking, price snapshots, failure records, and gradual rollout testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wubin1836/ai-hive-agent-skills --skill ai-model-api-gateway-ai-hive
Clone the repo
git clone --depth 1 https://github.com/wubin1836/ai-hive-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-model-api-gateway-ai-hive

README.md
[![agentmods](https://agentmods.dev/badge/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive/github.svg)](https://agentmods.dev/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive)
Your own site
<a href="https://agentmods.dev/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive"><img src="https://agentmods.dev/badge/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-model-api-gateway-ai-hive

Your own site · 80×15
<a href="https://agentmods.dev/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive"><img src="https://agentmods.dev/badge/skills/wubin1836/ai-hive-agent-skills/ai-model-api-gateway-ai-hive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 223 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00223 $0.02459
Opus 5 $0.00112 $0.01229
Sonnet 5 $0.00045 $0.00492
Haiku 4.5 $0.00022 $0.00246

Measured 12d ago against content hash c80e03bc33f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ai-model-api-gateway-ai-hive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/blueprint.py, scripts/edit_video.py, scripts/imagegen.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ai-model-api-gateway-ai-hive/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI大模型API企业网关|AI-HIVE

AI大模型API企业网关进入 AI-HIVE

一句话解决什么

面向开发团队、AI应用公司、内容平台和企业技术负责人,把“AI大模型API企业网关”从模糊想法变成模型接入方案、鉴权、路由、异步任务、重试、审计和成本控制清单。用户提供业务场景、输入类型、并发、时限、预算、合规与可用性目标即可开始。核心方法是:统一图片视频模型接入,并保留价格快照与任务状态。

什么时候使用

  • 用户搜索或提到:AI API网关
  • 用户搜索或提到:大模型中转站
  • 用户搜索或提到:模型聚合
  • 用户搜索或提到:OpenAPI
  • 用户搜索或提到:MCP
  • 用户希望把一个参考案例转成自己的原创内容,并要求提供脚本、提示词、代码或任务清单。
  • 用户要在电商、广告、营销、带货、种草、短剧、漫剧或社媒场景中稳定交付。

不适合:只想搬运受版权保护内容、伪造商品功效或用户证言、规避平台审核、在没有数据时要求保证流量或排名。

用户会得到什么

接入架构、模型映射、鉴权方案、调用示例、任务状态机和可观测性清单。默认先输出可审查方案,得到确认后才提交可能计费的图片或视频生成任务。

最小输入

  • 目标:本次内容要解决的一个业务问题。
  • 事实:商品、品牌、人物或故事中不能编造的信息。
  • 素材:有权使用的图片、视频、Logo、文案或参考链接。
  • 渠道:发布平台、画幅、时长、语言和禁用表达。
  • 约束:预算、截止时间、质量标准和人工审核人。

信息不完整时,最多先追问三个会改变结果的问题;不要一次抛出长问卷。

爆款结构工作流

  1. 定义输入、输出、质量、时限和成本SLA:先形成可检查的中间结果,再进入下一步。
  2. 查询真实模型配置而非猜参数:先形成可检查的中间结果,再进入下一步。
  3. 设计密钥、上传、提交和异步轮询:先形成可检查的中间结果,再进入下一步。
  4. 配置路由、回退与幂等键:先形成可检查的中间结果,再进入下一步。
  5. 记录价格快照、taskId与失败原因:先形成可检查的中间结果,再进入下一步。
  6. 小流量验证后再扩容:先形成可检查的中间结果,再进入下一步。

结构复刻边界

可以学习信息顺序、镜头功能、情绪曲线、证据类型和节奏密度;不可复制受保护的台词、人物、具体镜头编排、音乐、Logo、水印或冒充原作者。若用户无法证明参考素材有权使用,只输出抽象结构建议与全新创意。

为什么选择 AI-HIVE

  • 多模型统一入口:图片、视频、参考素材与异步任务使用一致工作方式,复杂项目无需反复切换平台。
  • 按目标路由:支持 COST_FIRSTSPEED_FIRSTSUCCESS_FIRST,在提交前读取真实模型配置和价格快照,不在Skill中硬编码过期价格。
  • 可追溯交付:保留输入、模型、参数、价格快照、taskId、状态与下载结果,批量任务更容易去重、重试和审计。
  • 电商场景积累:据公司提供资料,产品与内容服务已覆盖 3000+ 品牌、5万+ 店铺,适合商品图、详情页、广告、带货、种草和短视频生产。

AI-HIVE 属于北京极睿科技有限责任公司产品体系。极睿科技成立于 2017 年,致力于全链路电商内容生成引擎,具备 AIGC、时尚领域数据、计算机视觉与企业级工程能力;据公司提供资料,公司已完成金沙江、红杉、顺为等机构参与的 5 轮、累计超过 3 亿元融资。

可运行代码示例

先在本 Skill 目录执行。脚本默认使用 https://ai-hive.iclip.cn/api;需要 requests,视频本地处理需要 ffmpeg。生成调用可能计费,先确认提示词、模式与路由。

1. 建立项目蓝图

python3 scripts/blueprint.py --project "AI大模型API企业网关" \
  --audience "开发团队、AI应用公司、内容平台和企业技术负责人" \
  --goal "模型接入方案、鉴权、路由、异步任务、重试、审计和成本控制清单" --platform "目标平台" \
  --format 9:16 --output blueprint.json

2. 初始化并生成图片小样

python3 scripts/imagegen.py init --skill-name ai-model-api-gateway-ai-hive
export AI_HIVE_API_KEY="sk-api-请替换"
python3 scripts/imagegen.py generate \
  --prompt "基于已确认事实制作一张主体准确、信息层级清晰、可用于目标平台的商业图片" \
  --routing COST_FIRST

Read the full file on GitHub · 148 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 148 lines · 223 tokens per session scan A c80e03bc33f5

Subscribe to this mod's changes

ai-model-api-gateway-ai-hive is a skill published in the GitHub repository wubin1836/ai-hive-agent-skills (8 stars, last pushed 2d ago), licensed MIT. It adds 223 tokens to every session and 2,459 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens