Enhanced model
Premium plans can select the enhanced model for any humanize request. The enhanced model applies a more extensive rewrite, intended for the strictest AI detectors, at the same per-word rate.
Usage#
Set enhanced: true in the request. No other changes are required.
curl https://api.writehuman.ai/v1/humanize \ -H "Authorization: Bearer $WRITEHUMAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "The company reported strong quarterly earnings driven by increased demand.", "enhanced": true }'The model field of the response is enhanced for these requests and standard for all others. enhanced must be a JSON boolean. The string "true" is rejected with a 422.
Choosing a model#
Standard is the default and the flagship model. The enhanced model rewrites text more extensively. Both are charged at the same per-word rate. To choose between them, process representative samples of your own text with each model and compare the results and their scores.
Errors#
Neither response is charged. Because neither condition resolves on its own, do not retry the request unchanged. To continue processing while the enhanced model is disabled, fall back to the standard model:
import { FeatureUnavailableError } from "@writehuman/sdk"; async function humanize(text: string) { try { return await wh.humanize(text, { enhanced: true }); } catch (e) { if (e instanceof FeatureUnavailableError) return wh.humanize(text); throw e; }}