Skip to main content

1) Get an API key

Create an API key in the HandTextAI dashboard and copy the value (it starts with htext_).

2) Generate a PNG

For the most predictable production output, start with font_id: 1 or 2 and validate your final settings with /preview before you ship.

3) Preview before you generate (free)

Use /preview to iterate on margins/font sizing quickly. Previews are watermarked and free.

4) Generate a PDF

PDF responses are binary, not JSON.

5) Handle rate limits

When you hit rate limits, use the Retry-After header:

Need to generate many outputs?

Use the dashboard’s Batch Generation for CSV-based bulk processing.

Troubleshooting

See Errors & Rate Limits for complete error reference.