Fix errors

Find an error by its exact text to get its cause and fix. For one not listed, GET /errors/{slug} returns its steps; an AI Gateway answer carries the slug as error.code.

Sign-in and keys

You seeCauseFix
Not logged in. Set VERYFRONT_API_KEY or run in interactive mode.The CLI has no credential.Run npx veryfront login, or set VERYFRONT_API_KEY to an API key.
authentication-required, "Invalid or expired API key"The key was revoked, has expired, or is mistyped.Create a new key.
authentication-required, "Missing or invalid Authorization header"No credential reached the API.Send Authorization: Bearer <key>.
authentication-required, "Invalid authentication token"The token or key is malformed or has expired.Sign in again, or send a valid API key.
invalid-tokenOn the MCP endpoint, the token has expired or is malformed.Sign in again.
authorization-denied, "Account billing requires an authenticated user, not a machine credential"Billing and budgets need a signed-in person, not an API key.Do it in Studio.
authorization-deniedThe key lacks the scope, or you lack the role.Use a key with the scope, or ask the project owner for access.
key-rate-limitedThe API key used all its model requests for this minute.Wait for Retry-After, or have a project admin raise the key's requests_per_minute under /api-keys/{id}/limits.
rate-limit-exceededRequests came too quickly.Wait for Retry-After, then retry with fewer requests.

No model

No model credentials configured. Run veryfront login or set VERYFRONT_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_API_KEY. means a project run locally has no way to call a model. Run npx veryfront login to use Veryfront's models, or set your provider's key.

An app is not connected

You seeFix
provider-not-connectedOpen the connect_url in the response to connect your own account, then retry. Another member's connection doesn't count.
project-credentials-requiredSet the variables named in missing_env_vars as project environment variables, or replace the values the app rejected.

Out of credits

You seeFix
insufficient-creditsBuy credits or upgrade the plan.
ai-budget-exceededA monthly budget on an API key or a member is used up, though the account still has credits. Raise it. Buying credits doesn't clear it.

A model is blocked

You seeFix
key-model-deniedCall a model on the API key's list, or have a project admin add it under /api-keys/{id}/limits.
policy-model-deniedThe project's inference policy doesn't allow the model. Call one that GET /ai/v1/models lists for the project, or have a project owner or admin turn it on under Building blocks > Models.
account-model-deniedThe account's policy doesn't allow it. GET /ai/models lists the models it does.

Look up any error

GET /errors lists every error with its slug, status and a one-line fix. GET /errors/{slug} adds the steps and the errors it is often mistaken for.

Shell
curl https://api.veryfront.com/errors/model-retired

You should now see the error's status (422), its solution.steps and solution.related_errors.

Next steps