AI integration resources

Build an application using the OpenAI-compatible Chat Completions API and a TheRouter API key. Model and parameter support varies; check the model catalog.

Reference files

The files below describe possible API requests or function signatures. They are static reference material, not running services, and may not cover every current API behavior. Verify an operation and its authentication requirements before relying on it.

The MCP-style JSON is a static description, not an MCP server endpoint. Function definitions do not execute tools: your application must implement, authorize, and validate each tool handler. A balance operation requires appropriate management credentials, which should not be exposed to a model.

For working request examples, start with TypeScript, Python, or the tool-calling example.

Help & contact