Errors and limits
What each error means, and the limits that apply to your plan.
Errors
Every error has the same shape, so you can handle them in one place:
{
"error": "Your credits do not cover this run.",
"code": "insufficient_credits",
"details": { "needed": 1200, "available": 800, "short_by": 400 },
"request_id": "req_8f2c..."
}
code is stable and error is a sentence you can show. Quote request_id when you contact support.
| Status | Codes |
|---|---|
| 400 | validation_failed (details.fields lists each problem), idempotency_key_required, unknown_mode |
| 401 | missing_api_key, invalid_api_key |
| 402 | insufficient_credits (details.needed, available, short_by), key_cap_reached |
| 403 | plan_required, insufficient_scope, account_frozen, api_not_available, forbidden (a key made by a member tried to start a plan or open billing) |
| 404 | not_found |
| 409 | idempotency_conflict (the same Idempotency-Key with a different text), idempotency_key_reused (a bulk run: the same key with a different body), batch_limit, endpoint_limit (details.limit), plan_active, no_customer |
| 422 | text_too_short, text_too_long, too_many_characters, batch_invalid (details.problems by position) |
| 429 | rate_limited, concurrency_limit (both with Retry-After) |
| 503 | auth_unavailable, detector_unavailable, submissions_paused, billing_unavailable (try again shortly) |
An account with no plan
You need a plan to make an API key, so this mostly happens when a plan has ended. A key on an account with no plan can still call GET /account, POST /estimate, GET /plans, POST /checkout and POST /billing/portal. Every other route answers 403 plan_required, and details tells your integration what to show:
{
"error": "The API comes with every plan. Choose a plan to use it.",
"code": "plan_required",
"details": {
"plans_url": "https://app.humanblended.com/app/usage#plans",
"trial": { "days": 3, "credits": 3000 }
}
}
plans_url opens the plan choice in the app. trial carries days and credits when the account can start the card trial, and is null when it cannot (the trial is off, the account had a subscription, or the key was made by a member). See Plans and billing.
Limits
Your plan's limits apply to every run: words per run and how many runs go at once. GET /account returns them for the key you use.
Rate limits apply per account, across all keys:
| Plan | Requests a minute | Runs started a minute |
|---|---|---|
| Entry, Starter, free trial | 60 | 10 |
| Pro | 120 | 20 |
| Agency | 300 | 40 |
| Scale, Enterprise | 600 | 60 |
Every answer carries RateLimit and RateLimit-Policy headers. When you get a 429, wait the Retry-After seconds and try again.
A key can also have a monthly credit cap, set on the Developers page. Past it, the key's runs answer 402 key_cap_reached while your other keys keep working.
Credits
A run costs 1 credit per word. An AI check costs credits per word too: GET /account shows the rate in limits.detect.credits_per_word. POST /estimate tells you the cost of a text before you run it, and charges nothing.
Credits for a run are held when it starts and settled when it ends. A cancelled or failed run gives its credits back.
Your text
HumanBlend keeps the text of a run for the same period as in the app, then purges it. You can delete a run's text sooner with DELETE /jobs/{id}/content. Webhooks and callbacks never carry text. See the privacy policy.