succeeded, failed, or cancelled.
The font generation API is available through HTTP or Mixfont’s language specific SDKs.
View the packages on npm and PyPI.
Install a client
Generate from an image
Reference image URLs must use HTTPS, be publicly reachable, point to a JPEG, PNG, or WebP image, and be no larger than 20 MB.id and polling URL. Poll until status is succeeded, then download the generated TTF from the response. A generated font from this reference image can look like this:
| Input | Output |
|---|---|
![]() | Gossamer-Editorial-Serif.ttf |
Generate from a prompt
id and polling URL. Poll until status is succeeded, then download the generated TTF from the response. A generated font from this prompt can look like this:
| Input | Output |
|---|---|
a cute and bubbly font | Iridescent-Bubble-Tone.ttf |
Request structure
The REST API uses snake case. The JavaScript client maps request fields to camel case. The Python client uses snake case.| REST field | JavaScript | Python | Used by | Description |
|---|---|---|---|---|
image_url | imageUrl | image_url | Image generation | Public HTTPS URL for a JPEG, PNG, or WebP reference image up to 20 MB. |
prompt | prompt | prompt | Text generation | Text prompt describing the font to generate. |
glyph_set | glyphSet | glyph_set | Both | Optional glyph set. standard generates 72 glyphs for English with basic letters, numbers, and punctuation. extended generates 319 glyphs for all Latin languages, including special characters. Defaults to standard. |
standard costs 20 API credits and takes on average around 25 seconds. extended costs 50 API credits and may take 2-3 minutes to complete.
Response structure
Create endpoints return201 Created with the generation object and a polling URL.
poll_url. When the job succeeds, ttf_url contains the generated TTF download URL.
| REST and Python field | JavaScript field |
|---|---|
input_type | inputType |
glyph_set | glyphSet |
progress_percent | progressPercent |
ttf_url | ttfUrl |
created_at | createdAt |
poll_url | pollUrl |
Generated TTF URLs are temporary and will be deleted after 24 hours. Download
each generated TTF file and save it separately if you need to preserve it.
Generate from Image
Review the image generation endpoint.
Generate from Prompt
Review the prompt generation endpoint.
Generation Status
Review the polling endpoint.


