Quick Start
Follow these 3 steps to quickly connect to RouteAPI and send your first request.
Step 1: Register an account
Section titled “Step 1: Register an account”Visit the RouteAPI Console. Two registration methods are supported:
- Email registration: enter your email and password to register
- Google sign-in: click “Sign in with Google” and use your Google account without setting an additional password
After logging in, you will enter the console dashboard, where you can view account balance, usage, and other overview information.
Step 2: Create an API key
Section titled “Step 2: Create an API key”In the left menu of the console, open Token Management, click Create Key, and configure the following fields as needed:
| Parameter | Description | Required |
|---|---|---|
| Name | Custom key identifier | Required |
| Expiration time | Set the key validity period | Required |
| Quota limit | Set the maximum usage quota for this key | Optional |
| Model limit | Limit the models this key can call | Optional |
💡 Suggestion: Create separate keys for different environments (development/testing/production), and set reasonable quota and model limits to make cost control and permission isolation easier.
Step 3: Send your first request
Section titled “Step 3: Send your first request”Replace your-api-key below with the api_key you just created, then run it in the console to view the result.
OpenAI protocol example:
curl -X POST https://www.routeapi.ai/v1/chat/completions \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}] }'