Font Generation API
Generate complete TTF fonts from text prompts or reference images, then bring original type creation into your app, backend, or automated workflow.

Generate fonts with a few lines of code
Use the Mixfont clients or direct HTTP requests to create original TTF files from prompts and public reference images.
1import { Mixfont } from "mixfont";23const mixfont = new Mixfont({4 apiKey: process.env.MIXFONT_API_KEY,5});67const generation = await mixfont.generations.create({8 prompt: "a cute and bubbly font",9 glyphSet: "standard",10});1112const result = await mixfont.generations.wait(generation.id);13console.log(result.ttfUrl);Use cases
Bring font creation into products and workflows that need original, reusable typography on demand.
Build custom font features
Let users describe a typeface inside your product and return a complete TTF they can preview, download, and use.
Read generation docsGenerate from reference images
Turn lettering, logos, and other public image references into reusable typefaces through an automated workflow.
View image endpoint
Automate type exploration
Generate concepts from briefs, campaign data, or user inputs without moving each request through a manual design tool.
Start integratingHow It Works
Start with a prompt or reference image
Send a text description to the prompt endpoint, or provide a public image URL to generate a font from an existing visual direction.
Choose the standard glyph set for English letters, numbers, and punctuation, or the extended set for broader Latin-language coverage.
Track generation asynchronously
Each request returns immediately with a generation ID and polling URL, so your application can keep working while the font is created.
Poll the status endpoint until the job succeeds, fails, or is cancelled, and use progress data to keep your interface up to date.
Download and use the generated TTF
When generation succeeds, the response includes a temporary URL for the finished TTF file. Download it into your own storage and connect it to the rest of your product workflow.
Use generated fonts in design tools, websites, applications, brand systems, games, campaigns, and other commercial projects.
Frequently asked questions
What does the font generation API create?
The API creates a complete, downloadable TTF font from either a text prompt or a public reference image. The result contains reusable glyphs rather than a single image of stylized text.
How does a font generation request work?
Font generation is asynchronous. Create a generation, save the returned ID or polling URL, and check its status until the response includes a completed TTF URL.
Can I generate a font from an image through the API?
Yes. The image endpoint accepts a public HTTPS URL for a JPEG, PNG, or WebP reference image and generates a complete font in that visual direction. See the Image to Font workflow for a hands-on preview.
Which glyph sets are available?
The standard set generates 72 glyphs for English letters, numbers, and basic punctuation. The extended set generates 319 glyphs with support for Latin languages and additional special characters.
Can I use JavaScript, Python, or direct HTTP requests?
Yes. Mixfont provides JavaScript and Python clients, and every generation endpoint can also be called directly with REST or cURL. See the font generation documentation for installation and request examples.
Can generated fonts be used commercially?
Yes. Fonts generated with Mixfont can be used commercially. Review the Mixfont license for the complete terms.
Can I try font generation before integrating the API?
Yes. Use the Mixfont Font Generator to test prompts and reference images, then bring the same workflow into your product with the API.
Build font generation into your product
Create an API key, test a prompt or reference image, and start returning complete TTF fonts through your own product experience.



