Documentation / Get started
Quickstart
Start building with a single, OpenAI-compatible API.
1. Create an account
Sign up to manage your API keys, credits, and usage in one place.
Create an account2. Add credits
Review your account pricing and add credits before making paid requests.
Add credits3. Create an API key
Create an account key for your application. Keep it on your server and pass it in the Authorization header.
Create a key4. Send your first request
Replace YOUR_AVAILABLE_MODEL with a model returned by the Models API. Set THREESROUTER_API_KEY in your server environment to the key you created.
cURL
curl https://3srouter.top/api/v1/chat/completions \
-H "Authorization: Bearer $THREESROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_AVAILABLE_MODEL",
"messages": [{"role": "user", "content": "Hello!"}]
}'