Docs / API reference

Error codes

Every status code, what caused it, and the fix.

StatuserrorCauseFix
400bad_textText missing, empty or over 8,000 characters.Send a text string between 1 and 8,000 characters. Split long articles by section.
400bad_jsonThe body is not valid JSON.Check quotes and commas. Send Content-Type: application/json.
401invalid_api_keyKey missing, mistyped, revoked, or sent in the wrong header.Use Authorization: Bearer pij_live_.... Check for spaces. Create a new key if unsure.
402free_limit_reachedYou have used the free allowance this month.Wait for the 1st of the month, or buy a token pack on the Pricing page. The body shows used and limit.
402creditsThe workspace has reached its 5-hour or weekly limit (10% of the allowance or pack in any 5 hours, 35% in any week).Wait: the 5-hour limit frees up as the hours pass and the weekly limit renews on Monday, Nigerian time. The body says roughly how long. Or buy a token pack on the Pricing page. See Trials, premium and credits.
402upgradeA free workspace has used the 5 free uses of a tool this month.Wait for the 1st of the month, or upgrade.
403account_suspendedThe account is suspended.Contact us through the community or pijalance.com.
404no_such_jobWrong job ID, or the job belongs to another account.Use the ID returned by the same account's key.
502check_failedThe check did not complete. It is not counted.Try again. If it repeats, send a shorter text and quote the request_id.
504check_failedThe API could not be reached in time. Not counted.Retry. Use async mode.

Error body

{ "ok": false, "error": "invalid_api_key", "message": "That API key is not valid or has been revoked." }

Always show your users the message, not the raw error.

Retry advice

Privacy · Cookies ·