Skip to content

v0.0.1 (Early Release)

Choose a tag to compare

@abaliy abaliy released this 24 Apr 04:57
· 3 commits to main since this release

First public release of the official HumanTone Node.js SDK.

Included

  • humanize() rewrites AI-generated text to sound human
  • detect() returns an AI likelihood score from 0 to 100
  • account.get() returns plan, credit balance, and subscription status
  • HumanToneError class with statusCode, requestId, errorCode, retryable
  • Full TypeScript type definitions
  • AbortSignal cancellation support
  • Environment variable support: HUMANTONE_API_KEY, HUMANTONE_BASE_URL
  • Zero runtime dependencies (native fetch)

Requirements

Node.js 18 or later.

Install

npm install humantone

Quickstart

import HumanTone from 'humantone';

const client = new HumanTone({ apiKey: process.env.HUMANTONE_API_KEY });

const result = await client.humanize({
  text: 'Your AI-generated text goes here. Must be at least 30 words.',
  level: 'standard',
  outputFormat: 'text',
});

console.log(result.text);

Links