The error every Movoa call returns as {:error, %Movoa.Error{}} (and the
bang functions raise). Branch on reason:
:auth- no API key, or the key is wrong or deleted; create one at https://movoa.ai/settings/apikeys:rejected- the content filter refused the prompt, or the account is cooling down after a refusal; reword rather than retry:quota- not enough credits left for this run:plan- this model or quality needs a plan, or the account has not bought credits yet:busy- another generation on this account is still running:failed- the run was accepted and then failed or was canceled;error_messageandfailure_kindsay why:timeout- the wait ran out; the run may still finish, look it up later withMovoa.status/2andtask_id:other- anything else: a network failure, a 5xx, a non-JSON answer
Summary
Types
@type reason() ::
:auth | :rejected | :quota | :plan | :busy | :failed | :timeout | :other