For developers who already have an AiLink account. It provides self-service capabilities such as token management, model queries, and consumption logs, so you can manage your API keys and usage automatically from scripts or backend services.
Base URL:
Data format:JSON, UTF-8
https://ailink.nativex.comData format:JSON, UTF-8
Error code reference
| Status code | Meaning |
|---|---|
| 200 | Success / business failure (check the success field) |
| 401 | Authentication failed (invalid token) |
| 403 | Access denied |
| 429 | Too many requests; rate limit triggered |
| 500 | Internal server error |
Common business errors
•
Token name is too long — exceeds 50 characters
•
Maximum number of tokens reached — the creation limit has been reached
•
Token quota cannot be negative — remain_quota was set to a negative number
•
Token quota exceeds the maximum — exceeds about 5×10¹⁴
•
Token does not exist — the id is invalid or does not belong to you
•
Invalid parameter — a parameter is missing or invalid
•
Time span cannot exceed 1 month — the range is too large for the daily consumption API
Recommendations
1
429: retry with exponential backoff; do not resend immediately
2
401: generate a new token; retrying will not help