限制和等待期

了解接收限制和逾時。

API Store Hub technical reference diagram for limits
Architecture diagram for limits with API Store Hub Base URLs (https://apistorehub.com and https://apistorehub.com/v1).

第一個位元組逾時和流靜默時的逾時與路由的時間上限不同。此上限取決於端點、型號和配置,非串流的預設值為 600,000 毫秒。客戶、代理商或提供者可以提前終止;這不是時間承諾。

HTTP 429 可能是由本機接收、佇列已滿或供應商限制所引起的。讀取錯誤內容和Retry-After;不要解釋為無限制的 RPM/TPM。

尊重之後重試;使用有抖動的指數退避,限制重試次數和總重試時間。影片任務建立完成後,先找ID,避免重複要求。

curl https://apistorehub.com/v1/models \
  -H "Authorization: Bearer sk-ash-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.