限制与超时
了解接入限制与超时。
首字节时间和流空闲超时与路由时间上限不同。该上限取决于端点、模型和配置,非流式调用默认为 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
| HTTP | Meaning | Resolution |
|---|---|---|
400 | Bad Request | Validate JSON payload, model ID, and request fields. |
401 | Unauthorized | Verify API key and Authorization or x-api-key header. |
402 | Payment Required | Insufficient ST balance — top up credits in Dashboard. |
403 | Forbidden | Key lacks permission for this model or is paused. |
404 | Not Found | Check base URL path (/v1 vs root) and active model ID. |
413 | Payload Too Large | Reduce prompt size or media payload. |
429 | Too Many Requests | Rate limit exceeded — apply exponential backoff and retry. |
500 / 502 / 503 / 504 | Upstream / Gateway Error | Transient upstream error — retry with backoff and keep x-request-id. |