Skip to content

Quickstart

This page is for first-time AkaRouter users. After completing these steps, you can call the AkaRouter API from your server-side code.

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.

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.

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.

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.

Replace the two environment variables below with your real API key and model name:

Terminal window
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.