Docs

Errors and retries

Know what went wrong, whether money moved, and what to do next.

All docs

Example

Safe to send again: same key, same request
# Ask once and wait up to 50 seconds for the finished answer.
# max_cost_cents is the most you will pay. A failed run costs nothing.
curl -s -X POST "https://api.corent.tech/v1/open/invocations?wait=50" \
  -H "Authorization: Bearer $CORENT_API_KEY" \
  -H "Idempotency-Key: first-run-1" \
  -H "Content-Type: application/json" \
  -d '{"model":"corent/open/qwen-qwen3-4b-instruct-2507-ecefd4d6","input":{"prompt":"Say hello in five words.","max_new_tokens":64},"max_cost_cents":19}'

What success looks like

  • Retrying with the same Idempotency-Key returns the same request, never a second charge.

If it fails

Details

Open model errors

What each status means
StatusWhat happenedMoneyWhat to do
400Your limit is below the most this model can cost.Nothing was held or charged.Raise max_cost_cents to the model's ceiling_cents, or pick another model.
401The key or sign-in was not accepted.Nothing was held or charged.Send Authorization: Bearer with a live key.
402There is not enough credit to hold the most this run can cost.Nothing was held or charged.Add credit, then send the same call again.
403This key does not allow this model or action, or the model's usage rules are not accepted yet.Nothing was held or charged.Read the message. Change the key's settings or accept the rules.
404No such request for this key.Nothing changes.Read a request with the same key that made it.
409The Idempotency-Key was already used for a different request, or the model changed.Nothing new was held or charged.Use a new Idempotency-Key for new input.
422The input does not fit this model.Nothing was held or charged.Check the model's note and limits.
429Too many requests, or a limit on this key was reached.Nothing new was held or charged.Wait for the seconds in Retry-After, then send the same call with the same Idempotency-Key.
503Busy or briefly unavailable.A saved request keeps its hold only while it runs.Send the same call with the same Idempotency-Key. It is never run or charged twice.

The pictures, video, voice and text endpoints share one error shape, described in the reference.