Text to handwriting
About this tool
How to use it
- Choose this tool. You do not need to add a file.
- Type your text.
- Choose the paper, ink and pen, and how messy it should look.
- Press Generate.
- Download the page.
What you get back
Try Text to handwriting in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/handwriting" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'text=Dear Ada, thank you for the evening.' \
-F 'paper=lined' \
-F 'ink=#1d3a8a'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.handwriting({
"text": "Dear Ada, thank you for the evening.",
"paper": "lined",
"ink": "#1d3a8a"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->handwriting([
'text' => 'Dear Ada, thank you for the evening.',
'paper' => 'lined',
'ink' => '#1d3a8a',
]);
echo $result->requestId;