# KeyGate > KeyGate sells prepaid API tokens for GLM and DeepSeek models. There are no rate limits. One key works with every model and with any tool that accepts an OpenAI-compatible or Anthropic-compatible endpoint. Website: https://keygate.tech/ Contact: WhatsApp, from the website ## Models Use the exact ID. Coming soon: GLM 5.4, DeepSeek V4 Pro, GLM 5.3 Flash. | Model | ID | Context tokens | Max output tokens | Input | | --- | --- | --- | --- | --- | | DeepSeek V4.1 Flash | `deepseek-v4.1-flash-1017` | 1048576 | 393216 | text, image | | GLM 5.3 | `glm-5.3` | 1000000 | 131072 | text | ## Token packs One-time prices, sold over WhatsApp from https://keygate.tech/. Tokens and keys never expire. Pay with JazzCash, Easypaisa or bank transfer, or with Wise or Payoneer outside Pakistan. Keys arrive on WhatsApp within 5 minutes of payment. A key that fails is replaced or refunded, and unused keys are refundable. Bulk and custom orders are available. - 500 million tokens: 1,999 PKR - 1 billion tokens: 3,499 PKR - 2 billion tokens: 5,999 PKR - 5 billion tokens: 9,999 PKR ## Test before paying Anyone can ask for a test key with 50M tokens at no charge, over WhatsApp from https://keygate.tech/. ## API No limit on requests or tokens per minute. One key works on any number of devices. Prompts and responses are not stored. Streaming, tool calls and images work wherever the model supports them. - Base URL: `https://api.keygate.tech/v1` - Base URL for Claude Code: `https://api.keygate.tech` - Header: `Authorization: Bearer YOUR_KEY` - List models: `GET https://api.keygate.tech/v1/models` Test a key: ``` curl https://api.keygate.tech/v1/models -H "Authorization: Bearer YOUR_KEY" ``` ## Setup Replace YOUR_KEY with the user's key. If you are setting this up for someone, find which of these tools are installed, ask for the key if you don't have it, and do not print it back. Restart each tool afterwards. One command finds the installed tools, backs up each settings file and adds every model. It asks for the key. To run it without prompts, set KEYGATE_KEY and KEYGATE_YES=1. - Any system with Node 18 or newer: `npx -y https://keygate.tech/cli.tgz` - Windows PowerShell: `irm https://keygate.tech/setup.ps1 | iex` - macOS and Linux: `curl -fsSL https://keygate.tech/setup.sh | bash` Or edit the files yourself. Back up each file first, merge rather than overwrite, and keep every model with its limits. ### Claude Code Merge into `~/.claude/settings.json`: ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.keygate.tech", "ANTHROPIC_AUTH_TOKEN": "YOUR_KEY", "ANTHROPIC_MODEL": "deepseek-v4.1-flash-1017", "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3", "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash-1017", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash-1017", "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "1000000", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "128000" }, "modelPicker": { "replaceBuiltInOptions": true, "options": [ { "model": "deepseek-v4.1-flash-1017", "label": "DeepSeek V4.1 Flash", "description": "1M context, 384K output, text and images" }, { "model": "glm-5.3", "label": "GLM 5.3", "description": "1M context, 128K output, text" } ] } } ``` ### Codex Merge into `~/.codex/config.toml`: ```toml model = "deepseek-v4.1-flash-1017" model_provider = "keygate" model_reasoning_effort = "high" model_catalog_json = "keygate-models.json" web_search = "disabled" [model_providers.keygate] name = "KeyGate" base_url = "https://api.keygate.tech/v1" experimental_bearer_token = "YOUR_KEY" wire_api = "responses" ``` Write `~/.codex/keygate-models.json`: ```json { "models": [ { "slug": "deepseek-v4.1-flash-1017", "display_name": "DeepSeek V4.1 Flash", "description": "1M context, 384K output, text and images", "context_window": 1048576, "max_context_window": 1048576, "input_modalities": [ "text", "image" ], "default_reasoning_level": "high", "supported_reasoning_levels": [ { "effort": "low", "description": "low" }, { "effort": "high", "description": "high" }, { "effort": "max", "description": "max" } ], "supports_reasoning_summary_parameter": false, "shell_type": "shell_command", "truncation_policy": { "mode": "tokens", "limit": 10000 }, "experimental_supported_tools": [], "support_verbosity": false, "visibility": "list", "supported_in_api": true, "priority": 1, "base_instructions": "You are a coding agent working in the user's terminal. Read the relevant files before you change them, and follow the conventions and instructions you find in the project. Make the smallest change that solves the task. Run the project's own checks when you can, and fix what you broke. Never run destructive commands, commit or push unless the user asked. Finish the task before you stop, then say briefly what you changed and what you could not verify." }, { "slug": "glm-5.3", "display_name": "GLM 5.3", "description": "1M context, 128K output, text", "context_window": 1000000, "max_context_window": 1000000, "input_modalities": [ "text" ], "default_reasoning_level": "high", "supported_reasoning_levels": [ { "effort": "low", "description": "low" }, { "effort": "high", "description": "high" }, { "effort": "max", "description": "max" } ], "supports_reasoning_summary_parameter": false, "shell_type": "shell_command", "truncation_policy": { "mode": "tokens", "limit": 10000 }, "experimental_supported_tools": [], "support_verbosity": false, "visibility": "list", "supported_in_api": true, "priority": 2, "base_instructions": "You are a coding agent working in the user's terminal. Read the relevant files before you change them, and follow the conventions and instructions you find in the project. Make the smallest change that solves the task. Run the project's own checks when you can, and fix what you broke. Never run destructive commands, commit or push unless the user asked. Finish the task before you stop, then say briefly what you changed and what you could not verify." } ] } ``` ### OpenCode Merge into `~/.config/opencode/opencode.json` or `~/.config/opencode/opencode.jsonc`, whichever exists: ```json { "$schema": "https://opencode.ai/config.json", "model": "keygate/deepseek-v4.1-flash-1017", "providers": { "keygate": { "name": "KeyGate", "package": "@opencode/ai/providers/openai-compatible", "settings": { "baseURL": "https://api.keygate.tech/v1", "apiKey": "YOUR_KEY" }, "models": { "deepseek-v4.1-flash-1017": { "name": "DeepSeek V4.1 Flash", "capabilities": { "tools": true, "input": [ "text", "image" ], "output": [ "text" ], "reasoning": { "supported": true, "effort": [ "low", "high", "max" ] } }, "limit": { "context": 1048576, "output": 393216 } }, "glm-5.3": { "name": "GLM 5.3", "capabilities": { "tools": true, "input": [ "text" ], "output": [ "text" ], "reasoning": { "supported": true, "effort": [ "low", "high", "max" ] } }, "limit": { "context": 1000000, "output": 131072 } } } } } } ``` ### Cursor Open Cursor Settings, then Models, then API Keys. - OpenAI API Key: `YOUR_KEY` - Override OpenAI Base URL: `https://api.keygate.tech/v1` - Add model (1M context, 384K output, text and images): `deepseek-v4.1-flash-1017` - Add model (1M context, 128K output, text): `glm-5.3` ### VS Code Merge into Windows `%APPDATA%/Code/User/chatLanguageModels.json`, macOS `~/Library/Application Support/Code/User/chatLanguageModels.json`, Linux `~/.config/Code/User/chatLanguageModels.json`: ```json [ { "name": "KeyGate", "vendor": "customendpoint", "apiKey": "YOUR_KEY", "apiType": "chat-completions", "models": [ { "id": "deepseek-v4.1-flash-1017", "name": "DeepSeek V4.1 Flash", "url": "https://api.keygate.tech/v1/chat/completions", "toolCalling": true, "vision": true, "thinking": true, "contextWindow": 1048576, "maxInputTokens": 655360, "maxOutputTokens": 393216, "supportsReasoningEffort": [ "low", "high", "max" ] }, { "id": "glm-5.3", "name": "GLM 5.3", "url": "https://api.keygate.tech/v1/chat/completions", "toolCalling": true, "vision": false, "thinking": true, "contextWindow": 1000000, "maxInputTokens": 868928, "maxOutputTokens": 131072, "supportsReasoningEffort": [ "low", "high", "max" ] } ] } ] ``` ### Cline Open Cline settings and choose OpenAI Compatible. - Base URL: `https://api.keygate.tech/v1` - API Key: `YOUR_KEY` - Model ID (1M context, 384K output, text and images): `deepseek-v4.1-flash-1017` - Model ID (1M context, 128K output, text): `glm-5.3` ### Kilo Code Merge into `~/.config/kilo/kilo.jsonc` or `~/.config/kilo/kilo.json`, whichever exists: ```json { "$schema": "https://app.kilo.ai/config.json", "model": "keygate/deepseek-v4.1-flash-1017", "provider": { "keygate": { "npm": "@ai-sdk/openai-compatible", "name": "KeyGate", "options": { "baseURL": "https://api.keygate.tech/v1", "apiKey": "YOUR_KEY" }, "models": { "deepseek-v4.1-flash-1017": { "name": "DeepSeek V4.1 Flash", "tool_call": true, "reasoning": true, "attachment": true, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 393216 } }, "glm-5.3": { "name": "GLM 5.3", "tool_call": true, "reasoning": true, "attachment": false, "modalities": { "input": [ "text" ], "output": [ "text" ] }, "limit": { "context": 1000000, "output": 131072 } } } } } } ``` ### Zed Merge into Windows `%APPDATA%/Zed/settings.json`, macOS `~/.config/zed/settings.json`, Linux `~/.config/zed/settings.json`: ```json { "language_models": { "openai_compatible": { "keygate": { "api_url": "https://api.keygate.tech/v1", "available_models": [ { "name": "deepseek-v4.1-flash-1017", "display_name": "DeepSeek V4.1 Flash", "max_tokens": 1048576, "max_output_tokens": 393216, "capabilities": { "tools": true, "images": true, "parallel_tool_calls": true, "prompt_cache_key": false, "chat_completions": true, "interleaved_reasoning": false, "max_tokens_parameter": true } }, { "name": "glm-5.3", "display_name": "GLM 5.3", "max_tokens": 1000000, "max_output_tokens": 131072, "capabilities": { "tools": true, "images": false, "parallel_tool_calls": true, "prompt_cache_key": false, "chat_completions": true, "interleaved_reasoning": false, "max_tokens_parameter": true } } ] } } } } ``` - Then paste this key in Zed, under LLM Providers: `YOUR_KEY` Open Zed and paste your key under LLM Providers. ### Other app Open the custom or OpenAI-compatible provider settings in your app. - OpenAI base URL: `https://api.keygate.tech/v1` - Anthropic base URL: `https://api.keygate.tech` - API key: `YOUR_KEY` - Model (1M context, 384K output, text and images): `deepseek-v4.1-flash-1017` - Model (1M context, 128K output, text): `glm-5.3` ## Troubleshooting - Key rejected: copy the whole key with no spaces, then check it at https://keygate.tech/#balance - Model not found: use the exact ID from the table above. - Nothing changed: fully close and reopen the tool. - Can't connect: Claude Code uses `https://api.keygate.tech`. Every other tool uses `https://api.keygate.tech/v1`. - Cursor lost its own models: turn off Override OpenAI Base URL. - Out of tokens: buy more on WhatsApp from https://keygate.tech/