How to Use
Learn how to make your first API calls and integrate Routstr Client 402 gateway into your applications.
Basic Usage
Getting started with Routstr-CLient gateway is simple. Replace your OpenAI endpoint and add your e-cash header.
bash
curl -X POST http://localhost:3333/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-Cashu: your-ecash-token" \
-d @request.jsonPayment Flow
1
Get E-Cash
Obtain tokens from a mint
2
Make Request
Send API call with token
3
Auto Payment
System deducts cost
4
Get Response
Receive AI response
Troubleshooting
Common Issues
- • Invalid e-cash token format
- • Insufficient balance
- • Network connectivity issues
- • Incorrect API endpoint