You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

未达限额却触发OpenAI API配额超额报错的求助

问题:调用GPT-3.5-Turbo提示配额超额但未达限额的原因?

我刚创建了首个API Key,想用gpt-3.5-turbo模型做简单测试,以下是我的代码:

$url = "https://api.openai.com/v1/chat/completions";

$headers = [
    'Content-Type: application/json',
    'Authorization: Bearer ' . $apiKey,
];

// copy past from the tutorial https://platform.openai.com/docs/api-reference/making-requests , I don't know what "temperature" is for..
$data = [
    'model' => 'gpt-3.5-turbo',
    'messages' => [
        ['role' => 'user', 'content' => 'Say this is a test!']
    ],
    "temperature" => "0.7"
]; 

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}

curl_close($ch);

$decodedResponse = json_decode($response, true);

var_dump($decodedResponse);

但我反复收到报错信息:

You exceeded your current quota, please check your plan and billing details

根据我了解的OpenAI规则,gpt-3.5-turbo免费额度为3RPM(每分钟请求数)或200RPD(每天请求数),我远未达到这个限额,请问这是什么原因?


回答

  • 新账号免费政策已调整:当前OpenAI新注册账号不再自动提供免费调用额度,必须绑定有效的支付方式后才能获得基础调用配额,你之前了解的3RPM/200RPD是旧版政策,现在已经不适用。
  • API Key存在异常:检查你的API Key是否被泄露给他人使用,导致他人消耗了你的配额;或者确认这个Key是否属于当前登录的账号,有没有被误设置了自定义配额限制。
  • 账号状态问题:如果你的账号没有完成身份验证、绑定支付方式,可能处于无法调用API的状态,系统会返回配额超额的错误提示(实际是无可用配额)。
  • 统计延迟:极少数情况下,OpenAI的配额统计可能有延迟,不过这种情况一般很快会恢复,你可以隔一段时间再测试。

内容的提问来源于stack exchange,提问作者Jean François Manatane

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 20:02:34