Limits and timeouts

Understand admission limits and timeouts.

Time to first byte and the idle-stream timeout are different from the route time cap. That cap depends on the endpoint, the model and configuration, and defaults to 600,000ms for non-streaming calls. A client, proxy or provider may end the call sooner; this is not a duration guarantee.

HTTP 429 can mean local admission pressure, a full queue or upstream throttling. Read the error and Retry-After; it does not imply unlimited RPM or TPM.

Honor Retry-After and use bounded exponential backoff with jitter. Cap attempts and total time. For video jobs that may already exist, look up the job ID before submitting again.

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.