Pro API: limits, error codes and good practice

Caps

Every key carries three: renders at once (2 by default), submissions per minute (60 by default) and, if you set one, a daily credit cap.

Past a cap the answer is 429 with a Retry-After header in seconds. A refused call costs nothing. The day used for the caps is the UTC day.

Our own card is shared with the app's users. When it is busy your renders go to rented GPUs, at the same price and through the same API, with a few tens of seconds more at startup.

Error codes

CodeerrorWhat it means, and what to do
400champ prompt requisAdd a prompt.
400contenu_interditThe content filter refused the prompt.
400image_requise, inpaint_images_requisesThe mode needs image_b64, and mask_b64 for inpaint.
401cle_requise, cle_invalideHeader missing, or unknown key.
402credits_insuffisantsNot enough balance for this render (cost is given). Top up on the site.
403cle_desactivee, cle_revoquee, cle_expireeKey switched off, revoked or expired: create a new one in the app.
403licence_revoquee, licence_non_proLicence revoked, or an account that is not Pro.
403portee_manquanteThe key lacks the permission asked for, named in portee.
403lora_inconnuA character that does not belong to the account.
404media_indisponibleThe file is gone: submit again.
413image_trop_lourdeSource image or mask past 12 MB decoded.
429trop_de_rendus_simultanes, cadence_minute, plafond_jourA cap is reached, see Retry-After.
429plafond_credits_jourThe key's daily credit cap is reached (plafond, depense, cout).
502soumission_echouee, statut_echoueAn incident on the render side: retry in a few seconds.
503licence_inverifiableThe account cannot be checked right now: retry in a minute.

The error names are the exact strings the API returns. Match on them rather than on the message, which may be reworded.

Good practice

  • Poll every 3 seconds, not faster. The queue is shared, and hammering it helps nobody.
  • Download as soon as the status is completed. The file is not archived.
  • Write prompts in English, and for videos describe the movement rather than the still.
  • One key per use, and a daily credit cap on every key that lives on a server. A leaked key with a cap costs you a day, not a balance.
  • Treat a 429 as normal, not as a failure: wait for Retry-After and carry on.

Prompts are logged on our side, as they are for the app, for safety purposes.

Windows · Cloud or NVIDIA

Generate privately. Tonight.

Download tendre.AI, activate once, and run it forever, fully offline, on your own GPU.

Download for WindowsDownload for Android (.apk)
Download for MacMac version coming soon!
OS Windows 10/11GPU NVIDIA 8GB+VRAM 12GB recommendedDisk 20GB

No NVIDIA GPU? Start 100% in the cloud: 10 free images every day, then 1 credit per image. An NVIDIA card (8GB+) unlocks unlimited local generation.