Submit a job
Submit text to be humanized. Returns a job you poll or track by webhook.
Request options
These notes add product context for the request body. The full schema, types, and defaults are generated below.textis the only required field: the text to rewrite, preserving its meaning and intent. It needs at least 10 words, and can be up to 50,000 characters and 2,000 words. Supported languages today are English.mode(defaultrefine) chooses how the text is humanized.refinegives polished, natural writing that keeps your meaning and voice, and stays closest to your original wording.rewritereworks the text from the ground up and stays further from the original. Both cost the same. See Modes.auto_detect_languageanduse_british_spellingsare legacy fields with no effect on Refine or Rewrite. They’re still accepted, and still part of the idempotency match, so send the same values on every retry of a request.
Authorizations
Headers
Optional key to make submissions idempotent. Trimmed and truncated to the first 256 characters. Reusing the same key with the same request body returns the original job (HTTP 200); reusing it with a different body within the 24-hour retention window returns HTTP 409. Reuse a key only to retry a request whose response you never got. To try again after a failed job, use a new key.
256Body
The text to humanize. Must have at least 10 words (separated by whitespace), be at most 50,000 characters, and resolve to at most 2,000 words.
1 - 50000"The mitochondria is the powerhouse of the cell, producing most of its energy."
How the text is humanized. refine (the default) gives polished, natural writing that keeps your meaning and voice, and stays closest to your original wording. rewrite reworks the text from the ground up: it changes much more of the wording and sentence structure than refine, so it stays further from the original. Both modes cost the same. Any other value returns 400 validation_error.
refine, rewrite "refine"
Response
Idempotent replay. The supplied Idempotency-Key matched a request with an identical body from the last 24 hours, so that request's job is returned and no new words are reserved. This response doesn't include X-Wibble-Balance-Remaining.
If the job is still queued, Wibble queues it again when it can. If that fails, the body also has "enqueue_retry_failed": true and the job stays queued: keep polling. It either runs or fails with job_expired, and an expired job is refunded.
A failed job is final, and replaying its key returns it unchanged. To try again, resubmit with a new Idempotency-Key.
The job returned by POST /humanize, on a new job (HTTP 202) or an idempotent replay (HTTP 200). Same fields as Job, plus enqueue_retry_failed in two rare cases.
Present, and true, only when Wibble couldn't confirm the job was queued: on a 200 replay of a job still queued, or on a 202 whose enqueue reported an error that didn't stop the job. Keep polling: the job runs (or has already finished), or fails with job_expired, and an expired job is refunded.
true