Billing Related
Billing Overview
smai.ai Billing Instructions
Billing Model
smai.ai adopts a pay-as-you-go model, charging based on the actual number of Tokens used.
Token Description
Tokens are the basic units for AI models to process text:
- 1 English word ≈ 1-2 Tokens
- 1 Chinese character ≈ 1-2 Tokens
- Code and special characters may consume more Tokens
Cost Calculation
The cost of each API call = Input Token cost + Output Token cost
Total cost = (Input Token count × Input price) + (Output Token count × Output price)Reasoning Model
The reasoning model (e.g., o3-pro) will also generate reasoning_tokens, which will be included in the cost.
Viewing Costs
The API response includes Token usage:
{
"usage": {
"prompt_tokens": 100, // Input Tokens
"completion_tokens": 50, // Output Tokens
"total_tokens": 150 // Total Tokens
}
}Account Balance
- Log in to api.smai.ai to check your account balance
- If the balance is insufficient, the API will return an error
- It is recommended to set up balance alerts for timely recharges
