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
import type { RegistryEntry } from "../../shared.ts";
import { CHAT_OPENAI_COMPAT_MODELS } from "../../shared.ts";
export const bytezProvider: RegistryEntry = {
id: "bytez",
alias: "bytez",
format: "openai",
executor: "default",
// #5422: full OpenAI-compat chat URL. The bare `…/models/v2` base made the validation
// probe hit `…/models/v2/chat/completions` → 404 ("endpoint not supported"). Bytez is
// OpenAI-compatible at `…/models/v2/openai/v1`; store the full chat path (like
// friendliai/novita) so chat resolves once an account has catalog models.
baseUrl: "https://api.bytez.com/models/v2/openai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: CHAT_OPENAI_COMPAT_MODELS.bytez,
};