Plus plan

Identify a font

Find out which font was used in the lettering of a picture
POST
/v1/ai/images/font

About this tool

This tool looks at the letters in a picture and suggests the fonts (styles of lettering) that look most like them. It also tells you what matches and suggests a free alternative. The answers are good guesses, never a certain match. You can choose how many suggestions to show and prefer free fonts or a type such as serif.
For example, you like the lettering on a poster and want to find a similar font that you can use for free.

How to use it

  1. Choose this tool.
  2. Add a picture with clear lettering using Upload, or drag and drop it.
  3. Choose how many suggestions you want, and whether you prefer free fonts or a certain kind.
  4. Press Generate.
  5. Read the list of suggested fonts.

What you get back

You get a list of the closest fonts with notes on why they match and a free option. You can copy the names to look them up.
TEST IT LIVE

Try Identify a font in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/images/font
Tool ID
ai.images.font
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/images/font" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'on_unsupported=error' \
  -F 'quality=standard' \
  -F 'max_candidates=1'

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.ai.images.font({
    "files": 'document.pdf',
    "on_unsupported": "error",
    "quality": "standard",
    "max_candidates": 1
  });
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->ai()->images()->font([
    'files' => 'document.pdf',
    'on_unsupported' => 'error',
    'quality' => 'standard',
    'max_candidates' => 1,
]);
echo $result->requestId;
FAQ

Frequently asked questions

The closest known fonts for the lettering in a picture, with what matches and a free alternative; these are estimates, never a certain match. Readiness: unbenchmarked (see GET /v1/ai/capabilities/images.font).

Classification: ai. Deterministic stages: file type detection from content, native PDF text extraction / OCR for documents, image normalisation (Sharp).

Identify a font works from text and settings, so no file is needed. Every input is optional.

Not on the Free plan: Identify a font is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/images/font with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.