Docs
Errors and retries
Know what went wrong, whether money moved, and what to do next.
Example
# 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
- An error that is not in the table: keep the Idempotency-Key and email support@corent.tech.
Details
Open model errors
| Status | What happened | Money | What to do |
|---|---|---|---|
| 400 | Your 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. |
| 401 | The key or sign-in was not accepted. | Nothing was held or charged. | Send Authorization: Bearer with a live key. |
| 402 | There 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. |
| 403 | This 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. |
| 404 | No such request for this key. | Nothing changes. | Read a request with the same key that made it. |
| 409 | The 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. |
| 422 | The input does not fit this model. | Nothing was held or charged. | Check the model's note and limits. |
| 429 | Too 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. |
| 503 | Busy 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.