# Routeway Docs ## Docs - [Introduction](https://docs.routeway.ai/getting-started/introduction.md): Routeway is a unified, OpenAI-compatible API gateway providing access to 200+ LLMs and image models. - [Quickstart](https://docs.routeway.ai/getting-started/quickstart.md): Get started with Routeway. Learn how to make your first API call in a few minutes. - [Authentication](https://docs.routeway.ai/getting-started/authentication.md): Learn how to authenticate with the Routeway API using your API key. - [Available Models](https://docs.routeway.ai/getting-started/models.md): Browse, filter, and query the full catalog of models available through the Routeway API. - [How Billing Works](https://docs.routeway.ai/getting-started/billing.md): Understand Routeway subscriptions, pay-as-you-go pricing, and payment methods. - [Rate Limits](https://docs.routeway.ai/getting-started/rate-limits.md): Understand Routeway rate limits and learn how to handle them in production. - [Error Handling](https://docs.routeway.ai/getting-started/errors.md): Learn how to handle and troubleshoot errors returned by the Routeway API. - [Migration Guide](https://docs.routeway.ai/getting-started/migration.md): Learn how to migrate your existing AI applications to Routeway in a few minutes. - [Frequently Asked Questions](https://docs.routeway.ai/getting-started/faq.md): Answers to common questions about Routeway — billing, models, APIs, and more. - [Overview](https://docs.routeway.ai/core-concepts/overview.md): The fundamental building blocks behind every Routeway API call. - [Messages & Roles](https://docs.routeway.ai/core-concepts/chat-completions/messages-and-roles.md): Understand how the message array and roles shape every model response. - [Tokens & Context](https://docs.routeway.ai/core-concepts/chat-completions/tokens-and-context.md): How tokenization works, what context windows mean, and how to manage both. - [Models & Providers](https://docs.routeway.ai/core-concepts/chat-completions/models-and-providers.md): How Routeway routes requests across providers and how to pick the right model. - [Request & Response](https://docs.routeway.ai/core-concepts/chat-completions/request-and-response.md): Anatomy of a chat completion request and response object. - [Responses API](https://docs.routeway.ai/core-concepts/responses/overview.md): A higher-level API for text generation with built-in tools and multi-turn state. - [Request & Response](https://docs.routeway.ai/core-concepts/responses/request-and-response.md): Anatomy of a Responses API request and response object. - [Multi-turn Conversations](https://docs.routeway.ai/core-concepts/responses/multi-turn.md): Build stateful conversations using previous_response_id without resending message history. - [Built-in Tools](https://docs.routeway.ai/core-concepts/responses/built-in-tools.md): Use web search, file search, and code interpreter without defining custom schemas. - [Image Generation](https://docs.routeway.ai/core-concepts/image-generation/overview.md): Generate and edit images from text prompts using Routeway's image models. - [Generating Images](https://docs.routeway.ai/core-concepts/image-generation/generating-images.md): Turn a text prompt into an image using the /v1/images/generations endpoint. - [Editing Images](https://docs.routeway.ai/core-concepts/image-generation/editing-images.md): Modify an existing image with a text prompt and optional inpainting mask. - [Overview](https://docs.routeway.ai/account-management/overview.md): Monitor usage, check balances, and manage API keys programmatically. - [Balance & Usage](https://docs.routeway.ai/account-management/balance-and-usage.md): Monitor your credit balance, review request history, and query usage analytics. - [API Key Management](https://docs.routeway.ai/account-management/api-key-management.md): Create, list, update, and delete API keys programmatically. - [Chat Completions](https://docs.routeway.ai/guides/chat-completions/overview.md): Generate responses using the OpenAI-compatible chat completions endpoint. - [Streaming](https://docs.routeway.ai/guides/chat-completions/streaming.md): Receive tokens as they are generated instead of waiting for the full response. - [Tool Calling](https://docs.routeway.ai/guides/chat-completions/tool-calling.md): Let models invoke your functions to fetch live data and take actions. - [Server Tools](https://docs.routeway.ai/guides/chat-completions/server-tools.md): Extend model capabilities directly in chat using @-tag syntax for Image Generation and Online Search. - [Web Search BYOK](https://docs.routeway.ai/guides/chat-completions/web-search-byok.md): Use your own Tavily, Exa, or Valyu API key for online search in chat completions. - [Structured Outputs](https://docs.routeway.ai/guides/chat-completions/structured-outputs.md): Force models to return valid JSON matching an exact schema. - [Reasoning](https://docs.routeway.ai/guides/chat-completions/reasoning.md): Use extended thinking models for hard problems that require deeper deliberation. - [Multimodal Inputs](https://docs.routeway.ai/guides/chat-completions/multimodal-inputs.md): Send images, PDFs, and audio alongside text in a single request. - [Caching](https://docs.routeway.ai/guides/chat-completions/caching.md): Reduce costs and latency with prompt caching and gateway-level response caching. - [Service Tiers](https://docs.routeway.ai/guides/chat-completions/service-tiers.md): Choose between default, flex, and priority processing to balance cost and latency. - [Presets](https://docs.routeway.ai/guides/chat-completions/presets.md): Save a model, system prompt, and parameters as a reusable preset — then call it like a model ID. - [Image Generation](https://docs.routeway.ai/guides/image-generation/overview.md): Generate and edit images from text prompts using DALL-E and other models. - [Generating Images](https://docs.routeway.ai/guides/image-generation/generating-images.md): Turn text prompts into images with full control over size, quality, and format. - [Editing Images](https://docs.routeway.ai/guides/image-generation/editing-images.md): Modify existing images using text prompts and optional masks. - [Overview](https://docs.routeway.ai/api-reference/overview.md): A quick map of every endpoint in the Routeway API. - [Chat Completions](https://docs.routeway.ai/api-reference/ChatCompletions/completions.md): Generate a model response for a given chat conversation. Supports streaming and non-streaming responses. - [Responses](https://docs.routeway.ai/api-reference/Responses/responses.md): Generate a unified response block from various input configurations. - [Anthropic Messages](https://docs.routeway.ai/api-reference/Messages/messages.md): Send a message to the Anthropic models. Supports streaming and non-streaming responses. - [Image Generations](https://docs.routeway.ai/api-reference/ImageGenerations/generations.md): Generate one or more images from a text prompt. Supports both synchronous and asynchronous modes. - [Image Edits](https://docs.routeway.ai/api-reference/ImageEdits/edits.md) - [Get Balance](https://docs.routeway.ai/api-reference/Account/balance.md): Check account balance. Requires scope: account:balance - [Get Activity](https://docs.routeway.ai/api-reference/Account/activity.md): Fetch account activity logs. Requires scope: account:activity - [Get Analytics](https://docs.routeway.ai/api-reference/Account/analytics.md): Fetch analytics dashboard. Requires scope: account:read - [List Keys](https://docs.routeway.ai/api-reference/Account/keys-list.md): List all general API keys for the account. Requires scope: keys:read - [Create Key](https://docs.routeway.ai/api-reference/Account/keys-create.md): Create a new general API key. Requires scope: keys:create - [Get Key](https://docs.routeway.ai/api-reference/Account/keys-get.md): Get details of a specific API key. Requires scope: keys:read - [Update Key](https://docs.routeway.ai/api-reference/Account/keys-update.md): Update an existing API key. Requires scope: keys:update - [Delete Key](https://docs.routeway.ai/api-reference/Account/keys-delete.md): Delete an API key. Requires scope: keys:delete - [Integrations Overview](https://docs.routeway.ai/integrations/overview.md): Connect Routeway to coding agents, chat UIs, and any OpenAI-compatible tool. - [Claude Code](https://docs.routeway.ai/integrations/agents/claude-code.md): Use Claude Code with Routeway to access multiple models through a single Anthropic-compatible endpoint. - [Codex](https://docs.routeway.ai/integrations/agents/codex.md): Use OpenAI's Codex with Routeway by adding a custom provider that points to Routeway's OpenAI-compatible API. - [Cursor](https://docs.routeway.ai/integrations/agents/cursor.md): Use Cursor AI code editor with Routeway by overriding the OpenAI base URL. - [Roo Code](https://docs.routeway.ai/integrations/agents/roo-code.md): Use the Roo Code VS Code extension with Routeway via the OpenAI-compatible API. - [OpenCode](https://docs.routeway.ai/integrations/agents/opencode.md): Use OpenCode with Routeway by adding a custom provider to the OpenCode config file. - [OpenClaw](https://docs.routeway.ai/integrations/agents/openclaw.md): Connect OpenClaw to Routeway through the OpenAI-compatible API. - [OpenHands](https://docs.routeway.ai/integrations/agents/openhands.md): Use OpenHands autonomous agent with Routeway's OpenAI-compatible API. - [Droid](https://docs.routeway.ai/integrations/agents/droid.md): Use the Droid CLI agent with Routeway by adding a custom model to your config. - [Kilo Code](https://docs.routeway.ai/integrations/agents/kilo-code.md): Use the Kilo Code VS Code extension with Routeway via the OpenAI-compatible API. - [Gemini CLI](https://docs.routeway.ai/integrations/agents/gemini-cli.md): Use Gemini CLI with Routeway through a community fork that supports OpenAI-compatible providers. - [Grok CLI](https://docs.routeway.ai/integrations/agents/grok-cli.md): Use Grok CLI with Routeway to access Grok models and 50+ other models through a single API key. - [OpenClaude](https://docs.routeway.ai/integrations/agents/openclaude.md): Use OpenClaude terminal chat client with Routeway by adding a custom provider. - [Open WebUI](https://docs.routeway.ai/integrations/chat-uis/openwebui.md): Connect Open WebUI to Routeway for a self-hosted ChatGPT-like interface with 200+ models. - [TypingMind](https://docs.routeway.ai/integrations/chat-uis/typingmind.md): Connect TypingMind to Routeway for an enhanced chat experience with any model. - [LibreChat](https://docs.routeway.ai/integrations/chat-uis/librechat.md): Connect LibreChat to Routeway for a self-hosted ChatGPT-like interface. - [Saucepan](https://docs.routeway.ai/integrations/roleplay/saucepan.md): Connect Saucepan to Routeway as a built-in provider for character-based chat. - [SillyTavern](https://docs.routeway.ai/integrations/roleplay/sillytavern.md): Connect SillyTavern to Routeway for character-based chat with 200+ models, including inline image generation via Server Tools. - [RisuAI](https://docs.routeway.ai/integrations/roleplay/risuai.md): Connect RisuAI to Routeway for character-based chat and roleplay. - [JanitorAI](https://docs.routeway.ai/integrations/roleplay/janitorai.md): Connect JanitorAI to Routeway using the proxy configuration. - [ChubAI](https://docs.routeway.ai/integrations/roleplay/chubai.md): Connect ChubAI to Routeway for character-based roleplay with any model. - [Other Integrations](https://docs.routeway.ai/integrations/other.md): Connect any OpenAI-compatible tool or framework to Routeway. ## OpenAPI Specs - [openapi](https://docs.routeway.ai/api-reference/openapi.json)