Endpoints
Models API
API endpoints for querying available models
Models API
The Models API allows you to discover and get information about the models available through Routstr’s proxy to OpenRouter.ai.
Base URL
Authentication
All API requests require authentication with your Cashu token.
Endpoints
List Models
Returns a list of models available through the Routstr platform.
Example Request
Example Response
Since Routstr proxies to OpenRouter.ai, the available models depend on what OpenRouter.ai offers. The models listed above are examples and may not represent the current available models.
Pricing
Each model has different pricing for input tokens (prompt) and output tokens (completion). The pricing is shown in dollars per 1,000 tokens. For example, GPT-4 costs 0.06 per 1,000 output tokens.
Error Handling
Status Code | Description |
---|---|
400 | Bad Request - Check your request parameters |
401 | Unauthorized - Invalid Cashu token |
404 | Not Found - Model not found |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error - Something went wrong |