Install
Generate a font
Create from an image
Methods
Create arguments
Provide exactly one ofprompt or image_url.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Use the Mixfont Python client
pip install mixfont
import os
from mixfont import Mixfont
mixfont = Mixfont(api_key=os.environ["MIXFONT_API_KEY"])
generation = mixfont.generations.create(
prompt="a cute and bubbly font",
glyph_set="standard",
)
result = mixfont.generations.wait(generation["id"])
print(result["ttf_url"])
generation = mixfont.generations.create(
image_url="https://images.example.com/reference-wordmark.png",
glyph_set="standard",
)
| Method | Description |
|---|---|
mixfont.generations.create(...) | Starts a new generation and returns immediately. |
mixfont.generations.get(generation_id) | Fetches the current generation status. |
mixfont.generations.wait(generation_id, ...) | Polls until the generation succeeds, fails, is cancelled, or times out. |
prompt or image_url.
| Argument | Type | Description |
|---|---|---|
prompt | str | Text prompt for the generated font. |
image_url | str | Public HTTPS URL for a reference image. |
glyph_set | "standard" or "extended" | Optional glyph set. Defaults to standard. standard generates 72 glyphs for English with basic letters, numbers, and punctuation. extended generates 319 glyphs for all Latin languages, including special characters. |
| Key | Type | Description |
|---|---|---|
id | str | Generation id. |
name | str | Generated font display name. |
ttf_url | str or None | Generated TTF download URL. None until the generation succeeds. |
status | str | preparing, queued, running, succeeded, cancelled, or failed. |
input_type | str | text or image. |
glyph_set | str | Selected glyph set: standard or extended. |
progress_percent | float | Approximate progress from 0 to 100. |
poll_url | str | Present on create responses. |
error | str | Present only when a generation fails and an error message is available. |
created_at | str | ISO timestamp for when the generation was created. |
| Argument | Type | Description |
|---|---|---|
interval_seconds | float | Polling interval. Defaults to 5.0. |
timeout_seconds | float | Maximum wait time. Defaults to 600.0. |
