Create an account and an API key in the console. Copy an actual model ID from the model catalog and replace YOUR_MODEL_ID in the example. Store your key in the RAINFLOW_API_KEY environment variable, never in public code or a browser page.
Wallet billing base URL: https://api.rainflowtb.com/v1. Coding Plan: https://api.rainflowtb.com/coding/v1, requiring an active subscription and an allowed model.
curl 'https://api.rainflowtb.com/v1/chat/completions' \
+ -H "Authorization: Bearer $RAINFLOW_API_KEY" \
+ -H 'Content-Type: application/json' \
+ -d '{"model":"YOUR_MODEL_ID","messages":[{"role":"user","content":"Hello"}]}'Inspect usage and charges in the console after a successful request. Add stream: true for SSE streaming. Consume the stream incrementally and avoid automatically resending an interrupted generation.