# RedRouter > A low-refusal inference API for authorized security work, with explicit model selection, prepaid credits, and Chat Completions, Messages, and Responses APIs. ## Start here - [FAQ](https://redrouter.org/faq): Answers on abliterated models, API compatibility, prices, request logs and opt-in Zero Data Retention. - [Agent signup and API key](https://redrouter.org/auth.md) - [Agent integration instructions](https://docs.redrouter.org/agent-quickstart.md) ## Get started - [Introduction](https://docs.redrouter.org/): Find the right API, model, and setup guide for your application. - [Quickstart](https://docs.redrouter.org/quickstart): Fund your account, create a key, and make your first request. - [Signup for agent-assisted setup](https://docs.redrouter.org/agent-signup): Create an account and save a project key. - [Coding agent quickstart](https://docs.redrouter.org/agent-quickstart): Integrate RedRouter into your application with a coding agent. - [Authentication & API keys](https://docs.redrouter.org/authentication): Create, restrict, rotate, and inspect your API keys. - [Migrate to RedRouter](https://docs.redrouter.org/migration): Move OpenAI and Anthropic clients without assuming full API parity. - [OpenAI and Anthropic API compatibility](https://docs.redrouter.org/compatibility): Compare supported, ignored, model-dependent, and unavailable features. ## Models & capabilities - [Models & pricing](https://docs.redrouter.org/models): Live model prices, capabilities, context, and output limits. - [Choose a model](https://docs.redrouter.org/model-selection): Select and evaluate models against your workload and budget. - [Structured output](https://docs.redrouter.org/structured-output): Request JSON and schemas, validate results, and handle truncation. - [Reasoning controls](https://docs.redrouter.org/reasoning): Understand effective controls, reasoning output, and token budgets. - [Prompt caching](https://docs.redrouter.org/prompt-caching): Read cache usage, organize reusable prefixes, and understand pricing. - [Image inputs](https://docs.redrouter.org/images): Send supported image formats and recognize omitted image content. - [Estimate tokens](https://docs.redrouter.org/token-counting): Estimate input size without confusing a bound with billable usage. ## Use the API - [Chat Completions](https://docs.redrouter.org/chat-completions): Send messages and understand request fields, output, and usage. - [Responses API](https://docs.redrouter.org/responses): Build stateless Responses conversations with client-executed tools. - [Anthropic Messages](https://docs.redrouter.org/messages): Use Messages content blocks, tools, and compatibility controls. - [Streaming](https://docs.redrouter.org/streaming): Consume SSE events through terminal usage and handle interruption. - [Tool calling](https://docs.redrouter.org/tool-calling): Complete tool loops across all three API formats. - [Web tools & retrieval](https://docs.redrouter.org/web-tools): Connect application-owned retrieval tools and distinguish Chat search. ## Agents & integrations - [Integration overview](https://docs.redrouter.org/integrations): Choose a supported SDK, agent configuration, or framework recipe. - [Python SDKs](https://docs.redrouter.org/python): Use OpenAI and Anthropic Python clients with RedRouter. - [Node & TypeScript](https://docs.redrouter.org/node): Use JavaScript SDKs for requests, streaming, and error handling. - [Use Claude Code with RedRouter's Messages API](https://docs.redrouter.org/claude-code): Set up Claude Code with RedRouter and fix authentication, base URL and tool errors. - [Codex custom provider setup](https://docs.redrouter.org/codex): Set up Codex with RedRouter and fix legacy profiles, authentication and Responses errors. - [OpenCode setup](https://docs.redrouter.org/opencode): Configure RedRouter in OpenCode 1.x and fix provider, plugin and API key errors. - [Pi coding agent setup](https://docs.redrouter.org/pi): Connect Pi to RedRouter with the CLI or extension and fix provider and key errors. - [Security agents](https://docs.redrouter.org/security-agents): Read tested versions, configurations, outcomes, and known limits. - [LiteLLM](https://docs.redrouter.org/litellm): Connect through an OpenAI-compatible LiteLLM configuration. - [LangChain](https://docs.redrouter.org/langchain): Use ChatOpenAI for chains, streams, and tools. - [Vercel AI SDK](https://docs.redrouter.org/vercel-ai-sdk): Build server-side text and streaming workflows with the compatible provider. - [LlamaIndex](https://docs.redrouter.org/llamaindex): Configure an OpenAILike client for retrieval applications. - [Cloudflare Workers](https://docs.redrouter.org/cloudflare-workers): Keep keys in Worker secrets and forward bounded requests. ## Security tools - [Strix with RedRouter](https://docs.redrouter.org/strix): Use the recorded Strix configuration and distinguish tested results from recipes. - [PentAGI with RedRouter](https://docs.redrouter.org/pentagi): Configure PentAGI's custom endpoint and review untested integration limits. - [r2ai with RedRouter](https://docs.redrouter.org/r2ai): Configure radare2's model plugin for an authorized lab binary. - [Cline with RedRouter](https://docs.redrouter.org/cline): Configure Cline's custom endpoint. - [MCP security servers with RedRouter](https://docs.redrouter.org/mcp-security-servers): Attach HexStrike and GhidraMCP to a client configured for RedRouter. ## Workflows - [Generate a dataset](https://docs.redrouter.org/dataset-generation): Generate, validate, deduplicate, and save labeled JSONL records. - [Evaluate a workflow](https://docs.redrouter.org/evaluation): Measure task success, tool validity, latency, and cost reproducibly. ## Production - [Production checklist](https://docs.redrouter.org/production): Bound concurrency, handle cancellation, and record safe diagnostics. - [Errors & retries](https://docs.redrouter.org/errors): Interpret endpoint-specific errors and decide when to retry. - [Troubleshooting](https://docs.redrouter.org/troubleshooting): Diagnose setup, model, streaming, tool, and billing problems. - [Rate limits & usage tiers](https://docs.redrouter.org/rate-limits): Understand account tiers and manage request and spend limits. ## Account & privacy - [Credits & billing](https://docs.redrouter.org/billing): Understand token charges, credit holds, plans, and payments. - [Data handling](https://docs.redrouter.org/data-handling): Control content storage and understand retention boundaries. - [Referrals](https://docs.redrouter.org/referrals): Understand qualifying purchases, rewards, and reversals. - [Versioning and deprecation](https://docs.redrouter.org/#versioning-and-deprecation): Stable API versions and removal notices. ## Models - [red-cyber-1](https://redrouter.org/models/red-cyber-1): `red-cyber-1`. - [GLM 5.3 Flash Red](https://redrouter.org/models/glm-5.3-flash-red): `glm-5.3-flash-red`. - [GLM 5.3 Red (experimental)](https://redrouter.org/models/glm-5.3-red): `glm-5.3-red`. - [Qwen 3.8 27B Red](https://redrouter.org/models/qwen3.8-27b-red): `qwen3.8-27b-red`. - [DeepSeek V4.1 Flash Red](https://redrouter.org/models/deepseek-v4.1-flash-red): `deepseek-v4.1-flash-red`. - [DeepSeek V4.1 Flash (1017)](https://redrouter.org/models/deepseek-v4.1-flash-1017): `deepseek-v4.1-flash-1017`. - [DeepSeek V4.1 Flash (0910)](https://redrouter.org/models/deepseek-v4.1-flash-0910): `deepseek-v4.1-flash-0910`. - [GLM 5.3 Flash](https://redrouter.org/models/glm-5.3-flash): `glm-5.3-flash`. - [GLM 5.3](https://redrouter.org/models/glm-5.3): `glm-5.3`. - [Qwen 3.8 27B](https://redrouter.org/models/qwen3.8-27b): `qwen3.8-27b`. - [DeepSeek V4 Flash (0731)](https://redrouter.org/models/deepseek-v4-flash-0731): `deepseek-v4-flash-0731`. - [DeepSeek V4 Flash (0423)](https://redrouter.org/models/deepseek-v4-flash-0423): `deepseek-v4-flash-0423`. - [MiMo V2.6 Flash](https://redrouter.org/models/mimo-v2.6-flash): `mimo-v2.6-flash`. - [Step 5 Preview](https://redrouter.org/models/step-5-preview): `step-5-preview`. - [Hy4 Preview](https://redrouter.org/models/hy4-preview): `hy4-preview`. - [Nemotron 3 Ultra](https://redrouter.org/models/nemotron-3-ultra): `nemotron-3-ultra`. - [MiniMax M3.1 Flash](https://redrouter.org/models/minimax-m3.1-flash): `minimax-m3.1-flash`. - [Hy4](https://redrouter.org/models/hy4): `hy4`. - [MiMo V2.6 Pro](https://redrouter.org/models/mimo-v2.6-pro): `mimo-v2.6-pro`. - [Kimi K3.1 Pro](https://redrouter.org/models/kimi-k3.1-pro): `kimi-k3.1-pro`. - [DeepSeek V4.1 Flash (1017) Red](https://redrouter.org/models/deepseek-v4.1-flash-1017-red): `deepseek-v4.1-flash-1017-red`. ## API reference - [List public plans](https://docs.redrouter.org/api-reference/list-plans): GET /api/plans. - [Get the account subscription](https://docs.redrouter.org/api-reference/get-subscription): GET /api/subscription. - [Subscription change](https://docs.redrouter.org/api-reference/subscription-change): POST /api/subscription/change. - [Subscription checkout](https://docs.redrouter.org/api-reference/subscription-checkout): POST /api/subscription/checkout. - [List models](https://docs.redrouter.org/api-reference/list-models): GET /v1/models. - [Create a chat completion](https://docs.redrouter.org/api-reference/chat-completions): POST /v1/chat/completions. - [Create a response](https://docs.redrouter.org/api-reference/create-response): POST /v1/responses. - [Create a message](https://docs.redrouter.org/api-reference/create-message): POST /v1/messages. - [Estimate input tokens](https://docs.redrouter.org/api-reference/count-tokens): POST /v1/messages/count_tokens. - [Get key usage](https://docs.redrouter.org/api-reference/current-key): GET /v1/key. - [Get model catalog](https://docs.redrouter.org/api-reference/get-catalog): GET /api/catalog. ## Machine-readable documentation - [Full documentation](https://docs.redrouter.org/llms-full.txt): Guides and supported API operations, with schemas and examples. - [OpenAPI 3.1](https://docs.redrouter.org/openapi.json): The customer API specification. ## Refusal archive - [Refusal archive](https://redrouter.org/refusals/): Dated public reports of interruptions during security work, maintained by RedRouter. - [Archive methodology](https://redrouter.org/refusals/methodology/): Evidence, authorization, confidence, and editorial rules.