Apresentamos o Hue 4.5, nosso humanizador mais avançado até agora.Experimente agora →
Developer Documentation

Documentação da API

Integre o Hue Write em suas aplicações com nossa API REST

Get your API key

API access is available on the Max plan. Create and manage keys in your developer settings.

Início rápido

A API do Hue Write permite humanizar texto gerado por IA programaticamente. Este endpoint está disponível exclusivamente para assinantes do plano Max.

POSThttps://huewrite.com/api/v1/humanize
  1. 1

    Create a key

    On the Developer page. It's shown once, so store it as HUEWRITE_API_KEY.

  2. 2

    Send your text

    POST a JSON body with text and, optionally, a tone and model.

  3. 3

    Read the stream

    The humanized text streams back as text/plain.

cURL
curl -X POST https://huewrite.com/api/v1/humanize \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HUEWRITE_API_KEY" \
  -d '{
    "text": "Your AI-generated text here",
    "tone": "standard",
    "modelVersion": "v4beta"
  }'

Autenticação

Authenticate every request with your secret API key, sent as a Bearer token.

Authorization header
Authorization: Bearer hue_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • Create and revoke keys on the Developer page. The full key is shown only once, when you create it.
  • Keys begin with hue_ and expire 90 days after creation. You can hold up to 10 at a time.
  • Call the API from your server. Never ship a key in client-side code or commit it to a repository.

Corpo da Requisição

A API aceita requisições JSON e retorna respostas de texto em streaming.

ParameterTypeDescription
textRequiredstringThe text to humanize: at least 10 characters, and up to 3,000 words per request on the Max plan.
toneOptionalstringWriting style. One of standard, academic, professional, friendly, formal, casual or creative.Default: standard
modelVersionOptionalstringHumanization model: v4beta, v3.5 or v3. Newer models enabled for your account are listed, with their value, in the playground on the Developer page.Default: v4beta
ultraModeOptionalbooleanEnable Ultra Mode for a more thorough humanization pass.Default: false
rewriteLevelOptionalstringHow freely the text is rewritten: quality stays closest to the original wording, balanced is the recommended middle and max rewrites the most.Default: balanced
polishOptionalbooleanRun a final copy-edit pass over the result. Set to false to skip it.Default: true
isRehumanizationOptionalbooleanHumanize the same text again for a different result, without using credits. The text must match an earlier request exactly; the Max plan allows 3 per text.Default: false
teamIdOptionalstringRun the request in a team workspace, drawing credits from the team owner. Required when your API access comes from a team rather than your own Max plan.

Example request body

JSON
{
  "text": "Your AI-generated text here",
  "tone": "standard",
  "modelVersion": "v4beta",
  "ultraMode": false,
  "polish": true
}

Resposta

On success the humanized text streams back chunk by chunk.

200 OKtext/plain; charset=utf-8
  • Read the body incrementally to show progress, or wait for it to finish for the whole text.
  • Paragraphs are separated by a blank line.
  • Credits are charged by the word, the same as in the web app.

Erros

Errors return JSON with a stable error code and a human-readable message.

JSON
{
  "error": "rate_limit_exceeded",
  "message": "API rate limit exceeded. Please slow down.",
  "resetAt": "2026-06-20T12:00:00.000Z"
}
StatusCodeMeaning
400validation_errorThe body is invalid, e.g. the text is missing or too short.
400 / 403model_unavailableThe model is retired or isn't enabled for your account.
400rehumanization_invalidisRehumanization was set, but the text doesn't match an earlier request.
401unauthorizedThe key is missing, malformed, revoked or expired, or the account no longer has API access.
403insufficient_creditsNot enough word credits left for this text.
403rehumanization_limit_exceededThis text has used all of its rehumanizations.
403permission_deniedYour team owner has turned this option off for your account.
429rate_limit_exceededMore than 30 requests in a minute across your account. Wait for the time in the Retry-After header.
429concurrent_limit_exceededToo many requests running at once. Wait for one to finish.
429member_credit_limit_exceededYou've used your monthly word limit in this team.
500internal_errorSomething went wrong on our side. Retry with backoff.
504processing_timeoutThe request took too long to process. Retry, or send shorter text.

Rate-limited responses include Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.

Exemplos de Código

Comece rapidamente com estes exemplos de código em linguagens de programação populares.

cURL
curl -X POST https://huewrite.com/api/v1/humanize \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HUEWRITE_API_KEY" \
  -d '{
    "text": "Your AI-generated text here",
    "tone": "standard",
    "modelVersion": "v4beta"
  }'

Limites de Taxa e Uso

As requisições à API usam os mesmos créditos de palavras e limites do plano que o app web.

Rate limit

30 / min

Per account, across all keys

Concurrency

2

Requests at once

Per request

3,000

Words (Max plan)

Monthly quota

90,000

Words / month (Max plan)

Key lifetime

90 days

Create a new key before expiry

Active keys

10

Per account

Precisa de Ajuda?

Se você tiver dúvidas ou precisar de assistência com a API, nossa equipe de suporte está aqui para ajudar.

Contatar Suporte