ai-models-gateway

ai-models-gateway is a skill for Claude Code from iofold/ainative-claude-plugins. It costs 77 tokens per session (1,699 once invoked), scanned A, original, MIT.

A guide for choosing AI models and connecting OpenAI, Google, and Anthropic models through Cloudflare AI Gateway. An AI gateway is a shared endpoint that can route requests to different model providers.

In plain words
What is it for?
Use it to compare current model options and prices, choose a model, configure a shared OpenAI-compatible endpoint, or set up multi-provider routing and fallbacks.
Why use it?
It helps match a model to needs such as price, speed, context length, coding, or reasoning without handling every provider separately. The guide also documents provider-specific settings and limits.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bun scripts/lib/openai-helper.ts "Your prompt".

Part of the ai-development plugin — 3 skills shipped together

Good fit Use it to compare current model options and prices, choose a model, configure a shared OpenAI-compatible endpoint, or set up multi-provider routing and fallbacks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins
agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/ai-models-gateway

Made for: Claude Code.

Or install ai-development, the plugin that ships this one along with the rest of its 3 skills.

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-models-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/ai-models-gateway/github.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/ai-models-gateway)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/ai-models-gateway"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/ai-models-gateway/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-models-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/ai-models-gateway"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/ai-models-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,699 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.00077 $0.01699
Opus 5.5 $0.00031 $0.00680
Sonnet 5.5 $0.00015 $0.00340
Haiku 4.5 $0.00008 $0.00170

Measured 1mo ago against content hash 167fa128a8af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-models-gateway 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/models.ts), 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.

ai-development/skills/ai-models-gateway/SKILL.md · 150 lines

How it starts

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

AI Models & Cloudflare AI Gateway

Overview

This skill provides current (2025-2026) AI model information, pricing comparisons, and guidance on using Cloudflare AI Gateway as a unified endpoint for OpenAI, Google, and Anthropic.

Helper script: scripts/lib/openai-helper.ts - Lightweight OpenAI-compatible client for hooks/scripts

Reference Files

For detailed information, consult:

  • references/models.ts - TypeScript definitions with all model IDs, gateway strings, pricing, and helper functions
  • references/api-parameters.md - Detailed API parameters, constraints, and provider-specific nuances

Quick Model Selection

Use Case Recommended Model Price (Input/MTok) Context
Cheapest gpt-5-nano $0.05 400K
Budget + 1M context gemini-2.5-flash-lite $0.10 1M
Balanced gpt-5-mini, gemini-2.5-flash $0.25-0.30 400K-1M
Flagship gpt-5.4, gemini-3.1-pro-preview $2.00-2.50 1M+
Code/agentic gpt-5, claude-sonnet-4-6 $1.25-3.00 200K-400K
Maximum intelligence gpt-5.4-pro, claude-opus-4-6 $5.00-30.00 200K-1M
Long context (1M+) gemini-2.5-flash, gpt-5.4 $0.30-2.50 1M+
Image generation gemini-3.1-flash-image-preview (Nano Banana 2) $0.50 1M
Image gen (max quality) gemini-3-pro-image-preview (Nano Banana Pro) $2.00 1M

Model Selection Decision Tree

Is cost the primary concern?
├── Yes → gpt-5-nano ($0.05) or gemini-2.5-flash-lite ($0.10, 1M context)
│
├── Need long context (>400K)?
│   ├── Budget → gemini-2.5-flash (1M, $0.30)
│   └── Quality → gpt-5.4 (1.05M, $2.50)
│
├── Need maximum intelligence?
│   ├── OpenAI → gpt-5.4-pro ($30, xhigh reasoning)
│   └── Anthropic → claude-opus-4-6 ($5)
│
├── Code/agentic tasks?
│   └── gpt-5 ($1.25) or claude-sonnet-4-6 ($3)
│
└── Balanced quality/cost?
    └── gpt-5-mini ($0.25) or gemini-3-flash-preview ($0.50)

Read the full file on GitHub · 150 lines

Files

What ships with it

2 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. 1mo ago Changed · -1 lines · -54 tokens per session 167fa128a8af
  2. 3mo ago First seen · 151 lines · 131 tokens per session scan A a3c6700a1710

Subscribe to this mod's changes

ai-models-gateway is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,699 once invoked, about $0.0003 per session on Opus 5.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

ai-models-gateway compared with skills from other repositories

ai-models-gateway next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-models-gatewayiofold/ainative-claude-pluginsSkill31mo agoMITA77Claude Code
open-sourcebrowser-use/browser-useSkill122kyesterdayMITA101Claude Code
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
prowler-mcpprowler-cloud/prowlerSkill15kyesterdayApache-2.0A67Claude Code
deepstream-sopNVIDIA/skillsSkill4.2ktodayApache-2.0A219Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
gemini-api-devgoogle-gemini/gemini-skillsSkill5.0k11d agoApache-2.0A96Claude Code