Overview

KushRouter API Documentation

Welcome to the KushRouter API docs.

  • Main unified endpoint: POST /api/v1/messages
  • OpenAI-compatible streaming: POST /api/openai/v1/chat/completions
  • Anthropic-compatible streaming: POST /api/anthropic/v1/messages

Quick start

Try it now

Base URLs

  • Production base URL: https://api.kushrouter.com
  • Unified: https://api.kushrouter.com/api/v1/messages
  • OpenAI: https://api.kushrouter.com/api/openai/v1/
  • Anthropic: https://api.kushrouter.com/api/anthropic/v1/

What’s covered here

  • Endpoints for streaming chat across providers
  • Request schemas and validation behaviors
  • CLI integration for OpenAI Codex and Anthropic Claude Code
  • Pricing, model aliases, and credit consumption rules
  • Usage analytics exports and dashboards
  • File uploads, batch processing, tokenize helper, and MCP server integrations
  • Troubleshooting guidance for common issues

If you encounter an error response, the message will be descriptive and aligned with the request validators described in the Schemas section.