status_code=400, Third-party apps now draw from your extra usage, not your plan ...
错误信息
status_code=400, Third-party apps now draw from your extra usage, not your plan limits. Add more at ***.ai/settings/usage and keep going. (request id: 202607201225132672055348268d9d6CJWgizqB)
AI 解决方案
1. 🌐 错误翻译
原文:status_code=400, Third-party apps now draw from your extra usage, not your plan limits. Add more at ***.ai/settings/usage and keep going. (request id: 202607201225132672055348268d9d6CJWgizqB)
译文:状态码=400,第三方应用现在使用的是额外用量配额,而非套餐内额度。请前往 ***.ai/settings/usage 添加更多用量以继续使用。(请求ID:202607201225132672055348268d9d6CJWgizqB)
2. 🎯 原因分析
3. 💡 解决方案
.ai/settings/usage 页面,根据需求添加套餐用量或购买额外的使用配额,恢复配额后再重新发起请求。// 伪代码:先查询当前可用额外用量,额度不足时提前提示
async function checkUsageBeforeRequest() {
const usageResponse = await fetch('***.ai/api/v1/usage', {
method: 'GET',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const usageData = await usageResponse.json();
if (usageData.extraUsage <= 0 && usageData.planUsage <= 0) {
console.warn('当前额度已耗尽,请前往 ***.ai/settings/usage 添加用量');
return false;
}
return true;
}
// 调用检测后再发起请求
const canRequest = await checkUsageBeforeRequest();
if (canRequest) {
// 执行原第三方应用请求
await fetch('第三方应用接口地址', { ... });
}