{
"error": "image_url must be a string and top_k must be an integer between 1 and 10."
}
{
"error": "Unauthorized."
}
{
"error": "Current team does not have enough API credits remaining."
}
{
"error": "Team associated with this API key could not be resolved."
}
{
"error": "The font recognition service failed to process the request."
}
{
"error": "Inference request timed out after 90 seconds."
}
Analyze a public image URL and return ranked open-source font matches for the largest readable word in the image.
Font recognition guide
Learn when to use font recognition and see a complete example response.
Authorizations
x-api-key
string
header
required
Body
application/json
image_url
string<uri>
required
Public http:// or https:// image URL to analyze. The image response must be no larger than 10 MB.
top_k
integer
default:3
Number of font matches to return.
Required range: 1 <= x <= 10
Response
Successful response
word
string | null
required
Largest detected word in the image. This can be null if no confident word is found.
word_box
object | null
required
Location of the detected word in the original image. This can be null if detection falls back to the full image.
Hide child attributes
word_box.left
integer
required
Left offset of the detected word in pixels.
word_box.top
integer
required
Top offset of the detected word in pixels.
word_box.width
integer
required
Width of the detected word box in pixels.
word_box.height
integer
required
Height of the detected word box in pixels.
input_image
object
required
Hide child attributes
input_image.width
integer
required
Original image width in pixels.
input_image.height
integer
required
Original image height in pixels.
input_image.image_url
string<uri>
required
Image URL sent to the API.
font_matches
object[]
required
Ranked font matches, sorted best first.
Hide child attributes
font_matches.name
string
required
Name of the matched font family.
font_matches.score
number
required
Similarity score for the match.
font_matches.fonts
object[]
required
Downloadable font files for that family when available.
Hide child attributes
font_matches.fonts.full_name
string
required
Full font file name.
font_matches.fonts.style
string
required
Font style such as normal or italic.
font_matches.fonts.weight
integer
required
Numeric font weight.
font_matches.fonts.url
string
required
Download URL for the font file, or an empty string when metadata is unavailable.
requestId
string
Request identifier to share with support.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mixfont API Documentation","colors":{"primary":"#111111","light":"#111111","dark":"#E5E7EB"},"logo":{"light":"https://mintcdn.com/mixfont/T5-QH6-wjBwKo1qg/images/download_3_V2.png?fit=max\u0026auto=format\u0026n=T5-QH6-wjBwKo1qg\u0026q=85\u0026s=108e6f565f57a574a1820280b472509e","dark":"https://mintcdn.com/mixfont/T5-QH6-wjBwKo1qg/images/download_3_V3.png?fit=max\u0026auto=format\u0026n=T5-QH6-wjBwKo1qg\u0026q=85\u0026s=db4c399f0f8db30edb171118095596a8","href":"https://www.mixfont.com"},"favicon":"https://mintcdn.com/mixfont/cmD8xHSs9RaslxeT/favicons/favicon-20260531.ico?fit=max\u0026auto=format\u0026n=cmD8xHSs9RaslxeT\u0026q=85\u0026s=ffac39c5cc5913d8aa3e8c1b7c28439a","api":{"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["javascript","python","bash"],"prefill":true}},"appearance":{"default":"light","strict":true},"navbar":{"primary":{"type":"button","label":"Mixfont Home","href":"https://www.mixfont.com"}},"footer":{"socials":{"x":"https://www.x.com/mixfont"},"links":[{"header":"Products","items":[{"label":"Font Generator","href":"https://www.mixfont.com/font-generator"},{"label":"Font Tester","href":"https://www.mixfont.com/font-tester"},{"label":"Font Finder","href":"https://www.mixfont.com/font-finder"}]},{"header":"Platform","items":[{"label":"Fonts","href":"https://www.mixfont.com/fonts"},{"label":"License","href":"https://www.mixfont.com/license"},{"label":"API Docs","href":"https://www.mixfont.com/docs"},{"label":"Pricing","href":"https://www.mixfont.com/pricing"},{"label":"Sign In","href":"https://www.mixfont.com/signin"}]},{"header":"Company","items":[{"label":"About","href":"https://www.mixfont.com/about"},{"label":"Blog","href":"https://www.mixfont.com/blog"},{"label":"Contact Us","href":"https://www.mixfont.com/contact-us"},{"label":"Privacy","href":"https://www.mixfont.com/legal/privacy"},{"label":"Terms of Service","href":"https://www.mixfont.com/legal/terms-of-service"}]}]},"seo":{"metatags":{"canonical":"https://www.mixfont.com/docs","og:image":"https://static.mixfont.com/assets/20260531-004837-mixfont-og-image-j7ne48xk.webp","og:image:width":"1200","og:image:height":"630","twitter:image":"https://static.mixfont.com/assets/20260531-004837-mixfont-og-image-j7ne48xk.webp","twitter:image:width":"1200","twitter:image:height":"630"}},"fonts":{"family":"Inter","weight":400},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-7ZSQQXTZJS"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mixfont","hasAudioNarration":false,"actualSubdomain":"mixfont","customDomains":["www.mixfont.com"],"gitSource":{"type":"github","owner":"mixfont","repo":"mixfont","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0aede65f1d1d769dc95e11","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"API reference","count":4},{"language":"default","tag":"Client libraries","count":2},{"language":"default","tag":"Guides","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer a[href*=\"mintlify.com\"]{display:none!important}[aria-label=\"Open search\"],[aria-label=\"Toggle assistant panel\"],[aria-label=\"Ask AI\"],[cmdk-root],[cmdk-dialog],[cmdk-overlay],#chat-assistant-sheet,header [role=\"search\"],header form:has(input[type=\"search\"]),header input[type=\"search\"]{display:none!important}@font-face{font-family:\"Canyon Blob Display\";src:url(\"https://static.mixfont.com/assets/20260603-205822-canyon-blob-display-font-w26h2u2u.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Astral Groove Display\";src:url(\"https://static.mixfont.com/assets/20260603-205743-astral-groove-display-mjyqo2fb.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Gossamer Editorial Serif\";src:url(\"https://static.mixfont.com/assets/20260603-212006-font-001-gossamereditorialserif-regular-1-weyynop8.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Borealis Soft Italic Glow\";src:url(\"https://static.mixfont.com/assets/20260603-213122-font-001-borealissoftitalicglow-regular-jmq36p07.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Iridescent Bubble Tone\";src:url(\"https://static.mixfont.com/assets/20260603-215639-font-001-iridescentbubbletone-regular-y1pt732y.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Cipher Striker Ultra\";src:url(\"https://static.mixfont.com/assets/20260603-224831-font-001-cipherstrikerultra-regular-1uj742pz.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Dystopian Brush Stroke Display\";src:url(\"https://static.mixfont.com/assets/20260603-225219-font-001-dystopianbrushstrokedisplay-regular-chnivcf8.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Wuthering Heights Display\";src:url(\"https://static.mixfont.com/assets/20260603-230122-font-001-generatedfont-regular-1-yrpido7g.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Dissonant Wave Sans\";src:url(\"https://static.mixfont.com/assets/20260603-230230-font-001-dissonantwavesans-regular-z9d7o2ui.ttf\") format(\"truetype\");font-display:swap}@font-face{font-family:\"Zephyr Ink Script\";src:url(\"https://static.mixfont.com/assets/20260603-230724-font-001-zephyrinkscript-regular-81hj01mq.ttf\") format(\"truetype\");font-display:swap}#topbar-cta-button a[href=\"https://www.mixfont.com\"]{background-color:transparent!important;color:#ffffff!important}#topbar-cta-button a[href=\"https://www.mixfont.com\"]>span.absolute.inset-0{background-color:#111111!important}#topbar-cta-button a[href=\"https://www.mixfont.com\"] .z-10,#topbar-cta-button a[href=\"https://www.mixfont.com\"] svg{color:#ffffff!important}.dark #topbar-cta-button a[href=\"https://www.mixfont.com\"]{background-color:transparent!important;color:#111111!important}.dark #topbar-cta-button a[href=\"https://www.mixfont.com\"]>span.absolute.inset-0{background-color:#ffffff!important}.dark #topbar-cta-button a[href=\"https://www.mixfont.com\"] .z-10,.dark #topbar-cta-button a[href=\"https://www.mixfont.com\"] svg{color:#111111!important}.font-download-button{display:inline-flex;align-items:center;justify-content:center;gap:0.375rem;margin-top:0.75rem;padding:0.5rem 0.75rem;border:0;border-radius:0.375rem;background-color:#f3f4f6;color:#111111;font-weight:600;text-decoration:none;transition:background-color 120ms ease}.font-download-button:hover{background-color:#f9fafb;color:#111111;text-decoration:none}.font-use-cases-table tbody tr+tr td{padding-top:1.5rem}.font-prompt-preview-table{display:table!important}.font-prompt-preview-table th:first-child,.font-prompt-preview-table td:first-child{width:30%!important}.font-prompt-preview-table th:last-child,.font-prompt-preview-table td:last-child{width:70%!important}.font-table-heading{display:block;color:#111111!important;font-size:1rem;font-weight:700!important}.dark .font-table-heading{color:#f9fafb!important}.font-prompt-input{box-sizing:border-box;width:100%;max-width:100%;padding:0.625rem 0.75rem;border-radius:0.375rem;background-color:#f9fafb;color:#374151;font-size:0.875rem;line-height:1.4;overflow-wrap:anywhere}.dark .font-prompt-input{background-color:#111827;color:#d1d5db}.font-preview-editor{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:9rem;padding:1rem;border:1px solid #f3f4f6;border-radius:0.5rem;background-color:#ffffff;color:#111111;cursor:text;font-size:2.75rem;line-height:1.1;overflow-x:hidden;overflow-wrap:anywhere;word-break:break-word;transition:border-color 120ms ease,\n box-shadow 120ms ease}.font-preview-editor:focus{border-color:#d1d5db;box-shadow:none;outline:none}.dark .font-preview-editor{border-color:#374151;background-color:#111827;color:#f9fafb}.dark .font-preview-editor:focus{border-color:#6b7280;box-shadow:none}@media (max-width: 640px){.font-preview-editor{min-height:8rem;font-size:2rem}}"}]}
{"page":{"pagePath":"api-reference/font-recognition","slug":"/api-reference/font-recognition","pageMetadata":{"title":"Font recognition","description":"Identify the closest matching open-source font from an image","sidebarTitle":"Font recognition","openapi":"api-reference/font-recognition-openapi.json POST /v1/lens","href":"/api-reference/font-recognition"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Identify the closest matching open-source font from an image\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Card}=_components;if(!Card)_missingMdxReference(`Card`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Analyze a public image URL and return ranked open-source font matches for the largest readable word in the image.`}),`\n`,_jsx(Card,{title:`Font recognition guide`,icon:`scan-search`,href:`/guides/font-recognition`,horizontal:true,children:_jsx(_components.p,{children:`Learn when to use font recognition and see a complete example response.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Font recognition","description":"Identify the closest matching open-source font from an image","sidebarTitle":"Font recognition","openapi":"api-reference/font-recognition-openapi.json POST /v1/lens","href":"/api-reference/font-recognition"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Font recognition","description":"Identify the closest matching open-source font from an image","operationId":"postFontRecognition","security":["45fb70c9-05b2-48c4-8834-ac742ac6be53"],"requestBody":"3f4ae3f0-f2c1-43e0-aa7f-9556204b03ca","responses":{"200":"996a67ec-5305-4c8c-a5d2-7a64ec233260","400":"f0c690db-d18e-4d24-b01e-59e1ffa64cb5","401":"a6de814f-e38f-4c32-9657-1351f034754f","402":"90668c72-5535-44b8-b259-38aefa311e95","403":"52e394bc-a035-46b2-a273-687d45d7e0c3","502":"b2982aa2-443f-45e2-9579-bb36a0955809","504":"a090b813-d228-4c42-8f8d-7c0e52725e3d"},"method":"post","type":"path","servers":["246a7db2-a70a-4af6-8989-18a2dee4618d"],"path":"/v1/lens","baseUrlOptions":["https://api.mixfont.com"],"title":"Font recognition","codeSamples":[],"requestExampleLanguages":["javascript","python","bash"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.image_url":"https://images.example.com/wordmark.png","body.top_k":3}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["image_url"],"properties":{"image_url":{"type":"string","format":"uri","description":"Public `http://` or `https://` image URL to analyze. The image response must be no larger than 10 MB.","isRequired":true,"uniqueKey":"image_url","typeLabel":"string\u003curi>"},"top_k":{"type":"integer","minimum":1,"maximum":10,"default":3,"description":"Number of font matches to return.","uniqueKey":"top_k","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"image_url":"https://images.example.com/wordmark.png","top_k":3},"examples":{"Example":{"title":"Example","value":{"image_url":"https://images.example.com/wordmark.png","top_k":3}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"996a67ec-5305-4c8c-a5d2-7a64ec233260":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["word","word_box","input_image","font_matches"],"properties":{"word":{"oneOf":[{"type":"string","description":"Largest detected word in the image. This can be `null` if no confident word is found.","isRequired":true,"uniqueKey":"word.oneOf.0","typeLabel":"string"},{"type":"null","description":"Largest detected word in the image. This can be `null` if no confident word is found.","isRequired":true,"uniqueKey":"word.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"word","typeLabel":"string | null"},"word_box":{"oneOf":[{"type":"object","description":"Location of the detected word in the original image. This can be `null` if detection falls back to the full image.","required":["left","top","width","height"],"properties":{"left":{"type":"integer","description":"Left offset of the detected word in pixels.","isRequired":true,"uniqueKey":"word_box.oneOf.0.left","typeLabel":"integer"},"top":{"type":"integer","description":"Top offset of the detected word in pixels.","isRequired":true,"uniqueKey":"word_box.oneOf.0.top","typeLabel":"integer"},"width":{"type":"integer","description":"Width of the detected word box in pixels.","isRequired":true,"uniqueKey":"word_box.oneOf.0.width","typeLabel":"integer"},"height":{"type":"integer","description":"Height of the detected word box in pixels.","isRequired":true,"uniqueKey":"word_box.oneOf.0.height","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"word_box.oneOf.0","typeLabel":"object"},{"type":"null","description":"Location of the detected word in the original image. This can be `null` if detection falls back to the full image.","isRequired":true,"uniqueKey":"word_box.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"word_box","typeLabel":"object | null"},"input_image":{"type":"object","required":["width","height","image_url"],"properties":{"width":{"type":"integer","description":"Original image width in pixels.","isRequired":true,"uniqueKey":"input_image.width","typeLabel":"integer"},"height":{"type":"integer","description":"Original image height in pixels.","isRequired":true,"uniqueKey":"input_image.height","typeLabel":"integer"},"image_url":{"type":"string","format":"uri","description":"Image URL sent to the API.","isRequired":true,"uniqueKey":"input_image.image_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"input_image","typeLabel":"object"},"font_matches":{"type":"array","description":"Ranked font matches, sorted best first.","items":{"type":"object","required":["name","score","fonts"],"properties":{"name":{"type":"string","description":"Name of the matched font family.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].name","typeLabel":"string"},"score":{"type":"number","description":"Similarity score for the match.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].score","typeLabel":"number"},"fonts":{"type":"array","description":"Downloadable font files for that family when available.","items":{"type":"object","required":["full_name","style","weight","url"],"properties":{"full_name":{"type":"string","description":"Full font file name.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].fonts.items.[INDEX].full_name","typeLabel":"string"},"style":{"type":"string","description":"Font style such as `normal` or `italic`.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].fonts.items.[INDEX].style","typeLabel":"string"},"weight":{"type":"integer","description":"Numeric font weight.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].fonts.items.[INDEX].weight","typeLabel":"integer"},"url":{"type":"string","description":"Download URL for the font file, or an empty string when metadata is unavailable.","isRequired":true,"uniqueKey":"font_matches.items.[INDEX].fonts.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"font_matches.items.[INDEX].fonts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"font_matches.items.[INDEX].fonts","typeLabel":"object[]"}},"uniqueKey":"font_matches.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"font_matches","typeLabel":"object[]"},"requestId":{"type":"string","description":"Request identifier to share with support.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"word":"Mixfont","word_box":{"left":140,"top":96,"width":412,"height":104},"input_image":{"width":1600,"height":900,"image_url":"https://images.example.com/wordmark.png"},"font_matches":[{"name":"Inter","score":0.83,"fonts":[{"full_name":"Inter Regular","style":"normal","weight":400,"url":"https://static.mixfont.com/fonts/inter/Inter-Regular.ttf"},{"full_name":"Inter Italic","style":"italic","weight":400,"url":"https://static.mixfont.com/fonts/inter/Inter-Italic.ttf"}]},{"name":"Public Sans","score":0.11,"fonts":[{"full_name":"Public Sans Regular","style":"normal","weight":400,"url":"https://static.mixfont.com/fonts/public-sans/PublicSans-Regular.ttf"}]}],"requestId":"7d58a66d-f129-4f9a-bf9a-4f2c6d0c3e4d"},"examples":{"Example":{"title":"Example","value":{"word":"Mixfont","word_box":{"left":140,"top":96,"width":412,"height":104},"input_image":{"width":1600,"height":900,"image_url":"https://images.example.com/wordmark.png"},"font_matches":[{"name":"Inter","score":0.83,"fonts":[{"full_name":"Inter Regular","style":"normal","weight":400,"url":"https://static.mixfont.com/fonts/inter/Inter-Regular.ttf"},{"full_name":"Inter Italic","style":"italic","weight":400,"url":"https://static.mixfont.com/fonts/inter/Inter-Italic.ttf"}]},{"name":"Public Sans","score":0.11,"fonts":[{"full_name":"Public Sans Regular","style":"normal","weight":400,"url":"https://static.mixfont.com/fonts/public-sans/PublicSans-Regular.ttf"}]}],"requestId":"7d58a66d-f129-4f9a-bf9a-4f2c6d0c3e4d"}}},"exampleType":"examples"}},"exampleType":"examples"},"f0c690db-d18e-4d24-b01e-59e1ffa64cb5":{"description":"Invalid request body","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"image_url must be a string and top_k must be an integer between 1 and 10."},"examples":{"Example":{"title":"Example","value":{"error":"image_url must be a string and top_k must be an integer between 1 and 10."}}},"exampleType":"examples"}},"exampleType":"examples"},"a6de814f-e38f-4c32-9657-1351f034754f":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Unauthorized."},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized."}}},"exampleType":"examples"}},"exampleType":"examples"},"90668c72-5535-44b8-b259-38aefa311e95":{"description":"Not enough credits remaining","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Current team does not have enough API credits remaining."},"examples":{"Example":{"title":"Example","value":{"error":"Current team does not have enough API credits remaining."}}},"exampleType":"examples"}},"exampleType":"examples"},"52e394bc-a035-46b2-a273-687d45d7e0c3":{"description":"The API key cannot resolve a valid team","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Team associated with this API key could not be resolved."},"examples":{"Example":{"title":"Example","value":{"error":"Team associated with this API key could not be resolved."}}},"exampleType":"examples"}},"exampleType":"examples"},"b2982aa2-443f-45e2-9579-bb36a0955809":{"description":"Upstream font recognition service failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"The font recognition service failed to process the request."},"examples":{"Example":{"title":"Example","value":{"error":"The font recognition service failed to process the request."}}},"exampleType":"examples"}},"exampleType":"examples"},"a090b813-d228-4c42-8f8d-7c0e52725e3d":{"description":"Request timed out","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing what went wrong.","uniqueKey":"error","typeLabel":"string"},"requestId":{"type":"string","description":"Request identifier to share with support when available.","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Inference request timed out after 90 seconds."},"examples":{"Example":{"title":"Example","value":{"error":"Inference request timed out after 90 seconds."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"45fb70c9-05b2-48c4-8834-ac742ac6be53":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"246a7db2-a70a-4af6-8989-18a2dee4618d":{"url":"https://api.mixfont.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/font-recognition-openapi.json"},"subdomain":"mixfont","siteName":"Mixfont API Documentation","title":"Font recognition - Mixfont API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-03T23:12:17.282Z","originalFileLocation":"api-reference/font-recognition.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Identify the closest matching open-source font from an image\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mixfont API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Font recognition - Mixfont API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Identify the closest matching open-source font from an image\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mixfont API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.mixfont.com/docs/api-reference/font-recognition\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://static.mixfont.com/assets/20260531-004837-mixfont-og-image-j7ne48xk.webp\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Font recognition - Mixfont API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Identify the closest matching open-source font from an image\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://static.mixfont.com/assets/20260531-004837-mixfont-og-image-j7ne48xk.webp\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/mixfont/fdMSZOqyursOTcYR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mixfont API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111111\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.mixfont.com/docs/api-reference/font-recognition\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/font-recognition.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.mixfont.com/#organization\",\"name\":\"Mixfont API Documentation\",\"url\":\"https://www.mixfont.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mixfont/T5-QH6-wjBwKo1qg/images/download_3_V2.png?fit=max\u0026auto=format\u0026n=T5-QH6-wjBwKo1qg\u0026q=85\u0026s=108e6f565f57a574a1820280b472509e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.mixfont.com/docs#website\",\"name\":\"Mixfont API Documentation\",\"url\":\"https://www.mixfont.com/docs\",\"publisher\":{\"@id\":\"https://www.mixfont.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.mixfont.com/docs/api-reference/font-recognition#webpage\",\"url\":\"https://www.mixfont.com/docs/api-reference/font-recognition\",\"name\":\"Font recognition\",\"description\":\"Identify the closest matching open-source font from an image\",\"dateModified\":\"2026-06-03T23:12:17.282Z\",\"isPartOf\":{\"@id\":\"https://www.mixfont.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.mixfont.com/docs/api-reference/font-recognition#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.mixfont.com/docs/api-reference/font-recognition#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://www.mixfont.com/docs/api-reference/font-generations/create-from-image\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Font recognition\",\"item\":\"https://www.mixfont.com/docs/api-reference/font-recognition\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.mixfont.com/docs/api-reference/font-recognition#apireference\",\"headline\":\"Font recognition\",\"name\":\"Font recognition\",\"description\":\"Identify the closest matching open-source font from an image\",\"url\":\"https://www.mixfont.com/docs/api-reference/font-recognition\",\"mainEntityOfPage\":{\"@id\":\"https://www.mixfont.com/docs/api-reference/font-recognition#webpage\"},\"image\":\"https://static.mixfont.com/assets/20260531-004837-mixfont-og-image-j7ne48xk.webp\",\"dateModified\":\"2026-06-03T23:12:17.282Z\",\"publisher\":{\"@id\":\"https://www.mixfont.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.mixfont.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mixfont API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mixfont API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/font-recognition.md","siteName":"Mixfont API Documentation","nav":{"global":null,"groups":[{"group":"Getting started","pages":[{"title":"Mixfont API Documentation","sidebarTitle":"Home","icon":"house","href":"/index"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Use cases","icon":"lightbulb","href":"/use-cases"},{"title":"Best Practices","icon":"list-check","href":"/best-practices"},{"title":"API Pricing","sidebarTitle":"Pricing","icon":"credit-card","href":"/pricing"}]},{"group":"Guides","pages":[{"title":"Font generation","icon":"signature","href":"/guides/font-generation"},{"title":"Font recognition","icon":"scan-search","href":"/guides/font-recognition"}]},{"group":"Client libraries","pages":[{"title":"JavaScript","icon":"braces","href":"/client-libraries/javascript"},{"title":"Python","icon":"file-code","href":"/client-libraries/python"}]},{"group":"API reference","pages":[{"title":"Generate Font from Image","sidebarTitle":"Generate from Image","openapi":"api-reference/font-generation-openapi.json POST /v1/font-generations/image","href":"/api-reference/font-generations/create-from-image"},{"title":"Generate Font from Prompt","sidebarTitle":"Generate from Prompt","openapi":"api-reference/font-generation-openapi.json POST /v1/font-generations/text","href":"/api-reference/font-generations/create-from-text"},{"title":"Generation Status","description":"Poll a font generation job and retrieve the generated TTF file","sidebarTitle":"Generation Status","openapi":"api-reference/font-generation-openapi.json GET /v1/font-generations/{jobId}","href":"/api-reference/font-generations/get-status"},{"title":"Font recognition","sidebarTitle":"Font recognition","openapi":"api-reference/font-recognition-openapi.json POST /v1/lens","href":"/api-reference/font-recognition"}]}]},"basePath":"","title":"Font recognition - Mixfont API Documentation","deploymentId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","buildId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Cn6jN7s-.js","snippetPresets-DjcjTu_l.js","utils-CgDfAybK.js","style-to-object-BY3JEAdk.js","utils-BRh9RHH1.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ekgQXnrs.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DQ8efB5G.js","_Uint8Array-DxysT0ia.js","isObject-FP1Yky1u.js","ApiExamples-B4Dcm0cf.js","usePlaygroundInputsStore-CDeMD38v.js","shallow-BG_m8ALL.js","isEqual-DPm32SJd.js","CodeSnippets-DQz1R-UZ.js","CodeSnippet-NZAMx71T.js","use-playground-group-access-BeZ_TnTl.js","Page-tKmt1iGP.js","api-description-markdown-KtPg6U4T.js","DynamicMarkdown-Ch7bkVSN.js","SectionHeading-Cj70Qp9A.js","MethodPill-BAy1jSVY.js","getPastedJson-BX84PZ05.js","Check2Icon-B6AWYcHm.js","axios-CsQoIw0U.js","Markdown-CfiTBZoc.js","AssistantPageLink-SRAvT1Bg.js","dist-CnoXsf9u.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}