API Documentation

Welcome to the TypeGPT Router API documentation. This API provides access to various AI models through a unified interface.


Base URL

https://router.typegpt.net/v1

Authentication

All API requests require a Bearer Token in the header. You can use any public key.

Authorization: Bearer any-public-key

Endpoints

GET /models

List available models.

POST /chat/completions

Create a chat completion.

Real-time Stats

Connect to our SSE endpoint for live usage statistics.

GET /api/stream-stats