Getting Started
Start using Routstr as a model consumer
Getting Started with Routstr
Welcome to Routstr! This guide will help you get started using the Routstr platform to access AI models from various providers through our OpenAI-compatible API.
What is Routstr?
Routstr is a decentralized marketplace for AI model inference. It connects you to a network of model providers who host and serve various AI models. Key benefits include:
- Access to diverse models: Find the right model for your specific use case
- Pay-as-you-go pricing: Only pay for what you use with Cashu tokens or Lightning payments
- No accounts needed: No signup or registration required
- Privacy-focused: Your data stays secure with options like Tor routing
Purchasing Cashu Tokens
To use the Routstr API, you’ll need to purchase Cashu tokens:
- Visit Routstr.com
- Make a Lightning payment to receive your Cashu token
- Use the token as your API key for authorization
No account creation or personal information is required.
Making Your First API Request
You can start making requests to the Routstr API using standard HTTP requests. The API is compatible with the OpenAI API format:
The response will include the model’s output:
Using Different Models
You can specify different models in your requests:
If you don’t specify a model, Routstr will automatically select an appropriate model based on your request.
Managing Costs
Routstr offers a transparent pay-as-you-go pricing model:
- Pay per token: Different models have different pricing per input/output token
- No subscription required: Only pay for what you use
- Token balance: Your Cashu token contains pre-paid credits
- Usage tracking: The API response includes token usage information
Privacy Features
If privacy is important to you, Routstr offers several options:
See our Privacy Features page for more details.
Using with OpenAI Libraries
Since Routstr’s API is compatible with the OpenAI format, you can use it with existing OpenAI client libraries:
Next Steps
Now that you’re set up, explore these resources:
- API Reference: Detailed API documentation
- Model Selection: Guide to choosing the right model
- Privacy Features: Learn about privacy options
- Applications: Examples of what you can build