Quickstart
This page is for first-time AkaRouter users. After completing these steps, you can call the AkaRouter API from your server-side code.
1. Open the Console
Section titled “1. Open the Console”Go to the AkaRouter console and sign up or sign in with your email address.
If you forgot your password, use the password reset option on the login page and follow the link sent to your email.
2. Top Up Your Wallet
Section titled “2. Top Up Your Wallet”Open the Wallet page in the console and choose WeChat Pay, Alipay, or crypto payment. Your balance updates after the payment provider confirms the payment.
Use the wallet balance, top-up order status, and balance records in the console as the source of truth.
3. Create an API Key
Section titled “3. Create an API Key”Open the API Keys page and create a new key. Store the key only in server-side environment variables. Do not place it in browser code, client apps, public repositories, or screenshots.
4. Choose a Model
Section titled “4. Choose a Model”Open the Model Status page and copy the model name you want to use. The model value in your request must match the model name shown in the console.
5. Send Your First Request
Section titled “5. Send Your First Request”Replace the two environment variables below with your real API key and model name:
export AKAROUTER_API_KEY="YOUR_AKAROUTER_API_KEY"export AKAROUTER_MODEL="MODEL_FROM_CONSOLE"
curl https://api.akarouter.com/v1/chat/completions \ -H "Authorization: Bearer $AKAROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "'"$AKAROUTER_MODEL"'", "messages": [ { "role": "user", "content": "Say hello in one short sentence." } ] }'If the request succeeds, the response includes a choices field. You can then check balance records in the wallet to see the related usage.
If the request fails, start with Common Errors. Before using AkaRouter in a real workflow, go through the Integration Checklist.