限制与超时

了解接入限制与超时。

首字节时间和流空闲超时与路由时间上限不同。该上限取决于端点、模型和配置,非流式调用默认为 600,000 毫秒。客户端、代理或供应商可能更早结束调用;这并非时长承诺。

HTTP 429 可能来自本地接入压力、队列已满或上游限流。请阅读错误及 Retry-After;这不表示 RPM 或 TPM 无限制。

遵守 Retry-After,使用带随机抖动的指数退避,并限制次数与总时长。视频任务可能已创建时,先查询任务 ID,避免重复提交。

curl https://api.giacatgroup.vn/v1/models \
  -H "Authorization: Bearer sk-gcg-your_key"

HTTP Status Codes & Troubleshooting

HTTPMeaningResolution
400Bad RequestValidate JSON payload, model ID, and request fields.
401UnauthorizedVerify API key and Authorization or x-api-key header.
402Payment RequiredInsufficient ST balance — top up credits in Dashboard.
403ForbiddenKey lacks permission for this model or is paused.
404Not FoundCheck base URL path (/v1 vs root) and active model ID.
413Payload Too LargeReduce prompt size or media payload.
429Too Many RequestsRate limit exceeded — apply exponential backoff and retry.
500 / 502 / 503 / 504Upstream / Gateway ErrorTransient upstream error — retry with backoff and keep x-request-id.