Prerequisites
Before you begin, you need:- A Wibble account with API access enabled (email support@wibbleai.com to request API access).
- API words in your balance ($25 USD per 100,000 API words). Each request reserves words equal to its input word count. To add words, email support@wibbleai.com. Learn how billing works in Words and billing.
- An API key with the
humanizescope. Keys look likewib_live_.... Create one at https://www.wibbleai.com/dashboard/api.
Keep your API key on the server. Anyone with the key can spend your account’s API words.
Get started
1
Submit a job
Send your text to The response includes the job The
POST /humanize, with an optional mode: refine (the default) or rewrite. The text needs at least 10 words. Wibble reserves the required API words and responds with HTTP 202 and a job in status queued. See Modes for how the two differ.id and a status_url to poll:Response
X-Wibble-Balance-Remaining response header shows your API word balance after this job’s reservation.2
Wait for the result
Poll In practice, loop until the job reaches a terminal status. Poll every 10 seconds or slower, with some random jitter, and stop on
GET /humanize/{id} until status is succeeded or failed. A single lookup looks like this:curl
succeeded or failed. Lookups are limited to 120 requests per minute per key, so keep the interval at or above the recommended value.A job that never finishes is marked
failed with the error code job_expired (about an hour after submission if it never starts, or after about 45 minutes without progress), and its reserved words are refunded. Treat a failed status as terminal and stop polling.3
Read the output
A succeeded job returns the humanized text in If a job
output:Response
failed, read the error object for the reason. The reserved words are refunded automatically. A failed job is final: to try again, submit the text as a new job, with a new Idempotency-Key if you use one.Skip polling with a webhook
Instead of polling, pass awebhook_url when you submit. Wibble sends a signed POST to that URL when the job finishes.
curl
You submitted text, waited for the job to reach
succeeded, and read the humanized output. You now have the full request-and-poll loop working.Next steps
Humanization
What the humanizer does, the two modes, the request options, supported languages, and responsible use.
API reference
The full job lifecycle, limits, error codes, and webhooks.