Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
// Shared Antigravity model catalog — single source of truth for both surfaces.
//
// `agy` (CLI) and `antigravity` (IDE) share the same backend. Adding a model
// to both surfaces = one edit here. Each surface can still diverge via an
// explicit add/remove delta in its own file (currently both deltas are empty).
export const ANTIGRAVITY_SHARED_MODELS = Object.freeze([
// liveCatalogIds (#15659): a tiered-only account's live catalog lists `gemini-<ver>-flash-tiered`
// and none of the -high/-medium/-low ids, so without this the authoritative live-catalog check
// refuses every tier display id. The tier ids stay routable through the `-tiered` upstream id.
// Gemini 3.8 Flash tiers. Served directly at these ids by the live upstream — no
// shared "-tiered" endpoint exists for 3.8 (unlike 3.7).
{
id: "gemini-3.8-flash-high",
name: "Gemini 3.8 Flash (High)",
liveCatalogIds: ["gemini-3.8-flash-tiered"],
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-3.8-flash-medium",
name: "Gemini 3.8 Flash (Medium)",
liveCatalogIds: ["gemini-3.8-flash-tiered"],
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-3.8-flash-low",
name: "Gemini 3.8 Flash (Low)",
liveCatalogIds: ["gemini-3.8-flash-tiered"],
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
// Gemini 3.7 Flash shared tier. Still served live (discussion #15568 roster); the per-tier
// 3.7 display ids alias onto it (ANTIGRAVITY_MODEL_ALIASES), so only this id is public.
{
id: "gemini-3.7-flash-tiered",
name: "Gemini 3.7 Flash (Tiered)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
// Gemini 3.1 Pro budget tiers. Live streamGenerateContent validation uses
// `gemini-pro-agent` for High; the separately advertised `gemini-3.1-pro-high`
// discovery slot currently returns HTTP 400 and is intentionally not public.
{
id: "gemini-pro-agent",
name: "Gemini 3.1 Pro (High)",
contextLength: 1048576,
maxOutputTokens: 65535,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-3.1-pro-low",
name: "Gemini 3.1 Pro (Low)",
contextLength: 1048576,
maxOutputTokens: 65535,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-3.1-flash-lite",
name: "Gemini 3.1 Flash Lite",
contextLength: 1048576,
maxOutputTokens: 65535,
toolCalling: true,
},
// Claude (Antigravity backend). Discussion #3184 confirmed these are
// user-callable through both the agy and antigravity OAuth providers.
{
id: "claude-opus-4-6-thinking",
name: "Claude Opus 4.6 (Thinking)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6 (Thinking)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
// GPT-OSS
{
id: "gpt-oss-120b-medium",
name: "GPT-OSS 120B (Medium)",
contextLength: 131072,
maxOutputTokens: 32768,
supportsReasoning: true,
toolCalling: true,
},
// Gemini 4 Argon tiers (advertised by live `:fetchAvailableModels` on CLI 1.3.4+)
{
id: "gemini-4-argon-high",
name: "Gemini 4 Argon (High)",
contextLength: 1048576,
maxOutputTokens: 65535,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-4-argon-medium",
name: "Gemini 4 Argon (Medium)",
contextLength: 1048576,
maxOutputTokens: 65535,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "gemini-4-argon-low",
name: "Gemini 4 Argon (Low)",
contextLength: 1048576,
maxOutputTokens: 65535,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
// Claude 5.5 tiers (advertised by live `:fetchAvailableModels` on CLI 1.3.4+)
{
id: "claude-opus-5-5-high",
name: "Claude Opus 5.5 (High)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-opus-5-5-medium",
name: "Claude Opus 5.5 (Medium)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-opus-5-5-low",
name: "Claude Opus 5.5 (Low)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-sonnet-5-5-high",
name: "Claude Sonnet 5.5 (High)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-sonnet-5-5-medium",
name: "Claude Sonnet 5.5 (Medium)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
{
id: "claude-sonnet-5-5-low",
name: "Claude Sonnet 5.5 (Low)",
contextLength: 1048576,
maxOutputTokens: 65536,
supportsReasoning: true,
supportsVision: true,
toolCalling: true,
},
]);
/**
* Build a surface-specific catalog from the shared base plus an explicit delta.
* This preserves the ability for agy/antigravity to diverge in the future while
* keeping today's single-edit maintenance path.
*/
export function buildSurfaceCatalog<T extends { id: string }>(
base: readonly T[],
delta: { add?: readonly T[]; remove?: readonly string[] } = {}
): readonly T[] {
const removed = new Set(delta.remove ?? []);
const added = delta.add ?? [];
const filtered = base.filter((m) => !removed.has(m.id));
return Object.freeze([...filtered, ...added]);
}