Skip to content

API Reference

https://api.tokenrouter.io

All requests require a TokenRouter API key in the Authorization header:

Authorization: Bearer tr_your_api_key

Create a new AI model response.

View full documentation →

Replay a previous response.

View full documentation →

Rate limits vary by plan. See your dashboard for current limits.

All errors follow this format:

{
"error": {
"type": "error_type",
"message": "Human-readable message",
"http_status": 400
}
}