LinkLens AI Gateway - Quick API Reference Card
https://skyboomcoin.comAll API requests require a Bearer Token in the Authorization header:
Authorization: Bearer YOUR_JWT_TOKEN
Get your token by signing in at /signin
/api/ai/providersGet available AI models and providers list
/api/ai/chatSend a chat completion request
// Request Body
{
"messages": [
{ "role": "user", "content": "Hello!" }
],
"provider": "auto", // auto, deepseek, baidu, alibaba, zhipu, moonshot
"model": "default", // model ID or "default"
"temperature": 0.7, // 0.0 - 2.0
"max_tokens": 1000 // max response length
}/api/user/balanceGet current SkyCoin balance and usage stats
/api/user/usage/recentGet recent API usage history
curl -X POST https://skyboomcoin.com/api/ai/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"messages": [{"role": "user", "content": "Hello!"}],
"provider": "auto"
}'{
"success": true,
"content": "Hello! How can I assist you today?",
"provider": "deepseek",
"model": "deepseek-chat",
"tokensUsed": 12,
"costSC": 0.006,
"responseTime": 850,
"balance": {
"remaining": 99.994,
"spent": 0.006
}
}| Status | Meaning | Solution |
|---|---|---|
401 | Unauthorized | Check your token |
403 | Forbidden | Insufficient permissions |
429 | Rate Limited | Wait and retry |
insufficient_balance | No SkyCoins | Purchase more SkyCoins |