{
"type": "https://docs.img-processing.com/errors/forbidden",
"error": "Forbidden",
"status": 403,
"message": "You are not allowed to access this image."
}
{
"type": "https://docs.img-processing.com/errors/forbidden",
"error": "Forbidden",
"status": 403,
"message": "You are not allowed to access this image."
}
The classify endpoint allows you to classify an image using a pre-trained model. At the moment,
the only supported model is the ResNet50 model,
a deep learning model that excels at image classification tasks.The endpoint will return a list of labels and their probabilities for the image.
Test images may return accurate results due the test watermarks applied to them. If you want to get
better results, please use live images. If you just want to test this feature, contact support to temporarily
upgrade your account.
An array of secondary labels with their respective scores. These are the labels with lower probabilities than the main label.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"IMG Processing","colors":{"primary":"#f97316","light":"#fba56a","dark":"#f97316"},"logo":{"light":"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/light.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=dcc40ace66acd5d67790c9dea2e2281c","dark":"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/dark.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=7e639ac8a542ac2eada5070735902b8a","href":"https://img-processing.com"},"favicon":"/favicon.png","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.img-processing.com"}},"navbar":{"links":[{"label":"Feedback","href":"https://imgprocessing.featurebase.app"},{"label":"Support","href":"mailto:support@img-processing.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.img-processing.com"}},"seo":{"metatags":{"og:image":"https://storage.img-processing.com/og-image.jpg"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"imgprocessing","hasAudioNarration":false,"actualSubdomain":"imgprocessing","customDomains":["docs.img-processing.com"],"gitSource":{"type":"github","owner":"rolandoandrade","repo":"img-processing","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e64a4c43fec466d797c3","collectionId":"8584536b-2a6b-415e-a0c3-2898817c907e","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e64a4c43fec466d797c3:success","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"API Endpoints","count":22},{"language":"default","tag":"SDK Reference","count":9},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Access Endpoints","count":6},{"language":"default","tag":"Transformation Endpoints","count":6},{"language":"default","tag":"Methods","count":6},{"language":"default","tag":"AI Toolkit","count":4},{"language":"default","tag":"Edition Endpoints","count":4},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{},"basePath":"","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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoints/analysis/classify","slug":"/api-reference/endpoints/analysis/classify","pageMetadata":{"title":"Image Classification","api":"POST /v1/images/{imageId}/classify","description":"Classifies the image giving a list of labels and their probabilities","openapi":"openapi.json post /v1/images/{image_id}/classify","href":"/api-reference/endpoints/analysis/classify"},"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: \"Classifies the image giving a list of labels and their probabilities\"\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={a:`a`,code:`code`,hr:`hr`,p:`p`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`description`,children:`Description`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`classify`}),` endpoint allows you to classify an image using a pre-trained model. At the moment,\nthe only supported model is the `,_jsx(_components.a,{href:`https://keras.io/api/applications/resnet/#resnet50-function`,children:`ResNet50`}),` model,\na deep learning model that excels at image classification tasks.`]}),`\n`,_jsx(_components.p,{children:`The endpoint will return a list of labels and their probabilities for the image.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Test images may return accurate results due the `,_jsx(_components.code,{children:`test`}),` watermarks applied to them. If you want to get\nbetter results, please use live images. If you just want to test this feature, contact support to temporarily\nupgrade your account.`]})}),`\n`,_jsx(_components.hr,{})]})}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":"Image Classification","api":"POST /v1/images/{imageId}/classify","description":"Classifies the image giving a list of labels and their probabilities","openapi":"openapi.json post /v1/images/{image_id}/classify","href":"/api-reference/endpoints/analysis/classify"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Description","slug":"description","depth":3,"children":[]}],"codeExamples":{},"endpoint":{"title":"Image Classification","path":"/v1/images/{imageId}/classify","servers":[{"url":"https://api.img-processing.com"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"x-api-key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"openApiReferenceData":{"operation":{"responses":{"201":"153d311f-6efc-4be6-9fdc-9a7533b1b689","401":"faf4add7-5503-42e7-bacc-78303318716b","403":"e07690ce-e59e-4ddd-b11f-1bc2cfb76f61","422":"9d02cebf-691f-4569-b010-b31b411cdb28","429":"ca9fdd6b-26df-4926-8d45-ed6e81dd1972","5XX":"931e0d16-d43b-48f4-9ba4-c01c4ad29056"},"operationId":"classify","tags":["Analysis Endpoints"],"parameters":["4683c026-54cf-4a8a-a486-85a8640188e8"],"summary":"Image Classification","description":"Classifies the image giving a list of labels and their probabilities","method":"post","type":"path","servers":["66ec3d2a-1ce0-409c-90b2-e056eb556e64"],"security":["68709746-aa87-455b-81fb-0dd260285c29"],"path":"/v1/images/{image_id}/classify","baseUrlOptions":["https://api.img-processing.com"],"title":"Image Classification","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"4683c026-54cf-4a8a-a486-85a8640188e8":{"in":"path","name":"image_id","schema":{"type":"string","description":"The unique identifier of the image. This identifier is used to reference the image in subsequent requests.","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"responses":{"153d311f-6efc-4be6-9fdc-9a7533b1b689":{"description":"The API will return the Image object in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"main_label":{"type":"string","description":"The main label of the image. This is the label with the highest probability.","isRequired":true,"uniqueKey":"main_label","typeLabel":"string"},"main_score":{"type":"number","description":"The probability score of the main label. This is a number between 0 and 1.","isRequired":true,"uniqueKey":"main_score","typeLabel":"number"},"secondary_labels":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The label of the secondary label. This is the label with a lower probability than the main label.","isRequired":true,"uniqueKey":"secondary_labels.items.[INDEX].label","typeLabel":"string"},"score":{"type":"number","description":"The probability score of the secondary label. This is a number between 0 and 1.","isRequired":true,"uniqueKey":"secondary_labels.items.[INDEX].score","typeLabel":"number"}},"required":["label","score"],"uniqueKey":"secondary_labels.items.[INDEX]","typeLabel":"object"},"description":"An array of secondary labels with their respective scores. These are the labels with lower probabilities than the main label.","isRequired":true,"uniqueKey":"secondary_labels","typeLabel":"object[]"}},"required":["main_label","main_score","secondary_labels"],"title":"Identify Response","description":"Response object for image identification. Contains the main label and secondary labels with their scores.","examples":[{"main_label":"Tabby","main_score":0.4316079616546631,"secondary_labels":[{"label":"Tiger Cat","score":0.37503865361213684},{"label":"Egyptian Cat","score":0.124073326587677},{"label":"Plastic Bag","score":0.007065261714160442},{"label":"Lynx","score":0.003809159155935049}]}],"uniqueKey":"","typeLabel":"Identify Response · object"},"examples":{"Example":{"title":"Example","value":{"main_label":"Tabby","main_score":0.4316079616546631,"secondary_labels":[{"label":"Tiger Cat","score":0.37503865361213684},{"label":"Egyptian Cat","score":0.124073326587677},{"label":"Plastic Bag","score":0.007065261714160442},{"label":"Lynx","score":0.003809159155935049}]}}},"exampleType":"generated"}},"exampleType":"generated"},"faf4add7-5503-42e7-bacc-78303318716b":{"description":"Error object for unauthorized access. Probably due to missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of error","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"error":{"type":"string","description":"The title of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"type":"number","const":401,"description":"The status of the error","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"message":{"type":"string","description":"The error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["type","error","status","message"],"title":"Unauthorized Error","description":"Error object for unauthorized access. Probably due to missing or invalid API key","examples":[{"type":"https://docs.img-processing.com/errors/unauthorized","error":"Unauthorized","status":401,"message":"API key is required."}],"uniqueKey":"","typeLabel":"Unauthorized Error · object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.img-processing.com/errors/unauthorized","error":"Unauthorized","status":401,"message":"API key is required."}}},"exampleType":"generated"}},"exampleType":"generated"},"e07690ce-e59e-4ddd-b11f-1bc2cfb76f61":{"description":"Error object for forbidden access. Probably due to insufficient permissions.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of error","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"error":{"type":"string","description":"The title of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"type":"number","const":403,"description":"The status of the error","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"message":{"type":"string","description":"The error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["type","error","status","message"],"title":"Forbidden Error","description":"Error object for forbidden access. Probably due to insufficient permissions.","examples":[{"type":"https://docs.img-processing.com/errors/forbidden","error":"Forbidden","status":403,"message":"You are not allowed to access this image."}],"uniqueKey":"","typeLabel":"Forbidden Error · object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.img-processing.com/errors/forbidden","error":"Forbidden","status":403,"message":"You are not allowed to access this image."}}},"exampleType":"generated"}},"exampleType":"generated"},"9d02cebf-691f-4569-b010-b31b411cdb28":{"description":"Error object for validation errors.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of error","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"error":{"type":"string","description":"The title of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"type":"number","const":422,"description":"The status of the error","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"errors":{"type":"array","items":{"type":"string","uniqueKey":"errors.items.[INDEX]","typeLabel":"string"},"description":"The validation errors","isRequired":true,"uniqueKey":"errors","typeLabel":"string[]"}},"required":["type","error","status","errors"],"title":"Validation Error","description":"Error object for validation errors","examples":[{"type":"https://docs.img-processing.com/errors/validation-error","error":"Validation Error","status":422,"errors":["{field or param} {error message}"]}],"uniqueKey":"","typeLabel":"Validation Error · object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.img-processing.com/errors/validation-error","error":"Validation Error","status":422,"errors":["{field or param} {error message}"]}}},"exampleType":"generated"}},"exampleType":"generated"},"ca9fdd6b-26df-4926-8d45-ed6e81dd1972":{"description":"Error object for rate limit exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of error","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"error":{"type":"string","description":"The title of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"type":"number","const":429,"description":"The status of the error","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"message":{"type":"string","description":"The error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["type","error","status","message"],"title":"Rate Limit Error","description":"Error object for rate limit exceeded.","examples":[{"type":"https://docs.img-processing.com/errors/too-many-requests","error":"Too Many Requests","status":429,"message":"Rate limit exceeded. Try again later."}],"uniqueKey":"","typeLabel":"Rate Limit Error · object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.img-processing.com/errors/too-many-requests","error":"Too Many Requests","status":429,"message":"Rate limit exceeded. Try again later."}}},"exampleType":"generated"}},"exampleType":"generated"},"931e0d16-d43b-48f4-9ba4-c01c4ad29056":{"description":"Error object for internal server errors.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of error","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"error":{"type":"string","description":"The title of the error","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"type":"number","description":"The status of the error","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"message":{"type":"string","description":"The error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["type","error","status","message"],"title":"Server Error","description":"Error object for internal server errors.","examples":[{"type":"https://docs.img-processing.com/errors/internal-error","error":"Internal Error","status":500,"message":"An unexpected error occurred. Please try again later. If the problem persists, contact support."}],"uniqueKey":"","typeLabel":"Server Error · object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.img-processing.com/errors/internal-error","error":"Internal Error","status":500,"message":"An unexpected error occurred. Please try again later. If the problem persists, contact support."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"68709746-aa87-455b-81fb-0dd260285c29":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key for authentication","scopes":[]}}},"servers":{"66ec3d2a-1ce0-409c-90b2-e056eb556e64":{"url":"https://api.img-processing.com","description":"IMG Processing API Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key for authentication","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API Key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"imgprocessing","siteName":"IMG Processing","title":"Image Classification - IMG Processing","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-07T19:33:01.325Z","originalFileLocation":"api-reference/endpoints/analysis/classify.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Classifies the image giving a list of labels and their probabilities\">\u003cmeta data-mint-head name=\"application-name\" content=\"IMG Processing\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Image Classification - IMG Processing\">\u003cmeta data-mint-head property=\"og:description\" content=\"Classifies the image giving a list of labels and their probabilities\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"IMG Processing\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://storage.img-processing.com/og-image.jpg\">\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=\"Image Classification - IMG Processing\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Classifies the image giving a list of labels and their probabilities\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://storage.img-processing.com/og-image.jpg\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/imgprocessing/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"IMG Processing\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#f97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/analysis/classify.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.img-processing.com/#organization\",\"name\":\"IMG Processing\",\"url\":\"https://docs.img-processing.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/imgprocessing/96najFJQ0rXKRJFY/logo/light.webp?fit=max\u0026auto=format\u0026n=96najFJQ0rXKRJFY\u0026q=85\u0026s=dcc40ace66acd5d67790c9dea2e2281c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.img-processing.com#website\",\"name\":\"IMG Processing\",\"url\":\"https://docs.img-processing.com\",\"publisher\":{\"@id\":\"https://docs.img-processing.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify#webpage\",\"url\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify\",\"name\":\"Image Classification\",\"description\":\"Classifies the image giving a list of labels and their probabilities\",\"dateModified\":\"2025-08-07T19:33:01.325Z\",\"isPartOf\":{\"@id\":\"https://docs.img-processing.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://docs.img-processing.com/api-reference/endpoints/image\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Analysis Endpoints\",\"item\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/extract-formatted-text\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Image Classification\",\"item\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify#apireference\",\"headline\":\"Image Classification\",\"name\":\"Image Classification\",\"description\":\"Classifies the image giving a list of labels and their probabilities\",\"url\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify\",\"mainEntityOfPage\":{\"@id\":\"https://docs.img-processing.com/api-reference/endpoints/analysis/classify#webpage\"},\"image\":\"https://storage.img-processing.com/og-image.jpg\",\"dateModified\":\"2025-08-07T19:33:01.325Z\",\"publisher\":{\"@id\":\"https://docs.img-processing.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.img-processing.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"IMG Processing\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"IMG Processing","nav":{"global":null,"tabs":[{"tab":"API Reference","dropdowns":[{"dropdown":"API Reference","icon":"code","description":"API endpoints","pages":[{"group":"Get Started","pages":[{"title":"Introduction","icon":"house","href":"/api-reference/introduction"},{"title":"API Endpoints","icon":"plug","href":"/api-reference/endpoints"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Pagination","icon":"list","href":"/api-reference/pagination"},{"title":"Changelog","icon":"clock","href":"/api-reference/changelog"}]},{"group":"Explore","pages":[{"title":"Playground","icon":"play","href":"/api-reference/explore/playground"},{"title":"Postman Collection","icon":"user-astronaut","href":"/api-reference/explore/postman"},{"title":"OpenAPI Spec","icon":"code","href":"/api-reference/explore/openapi-spec"}]},{"group":"API Endpoints","pages":[{"title":"Image Object","icon":"image","href":"/api-reference/endpoints/image"},{"group":"Creation Endpoints","icon":"plus","pages":[{"title":"Create image from URL","api":"POST /v1/images","openapi":"openapi.json post /v1/images","href":"/api-reference/endpoints/creation/create"},{"title":"Imagine Image","api":"POST /v1/images/imagine","openapi":"openapi.json post /v1/images/imagine","href":"/api-reference/endpoints/creation/imagine"},{"title":"Upload Image","api":"POST /v1/images/upload","openapi":"openapi.json post /v1/images/upload","href":"/api-reference/endpoints/creation/upload"}]},{"group":"Access Endpoints","icon":"download","pages":[{"api":"DELETE /v1/images/{imageId}","openapi":"openapi.json delete /v1/images/{image_id}","title":"Delete Image","href":"/api-reference/endpoints/access/delete"},{"api":"GET /v1/images/{imageId}/download","openapi":"openapi.json get /v1/images/{image_id}/download","title":"Download Image","href":"/api-reference/endpoints/access/download"},{"title":"Get Image","api":"GET /v1/images/{imageId}","openapi":"openapi.json get /v1/images/{image_id}","href":"/api-reference/endpoints/access/get-image"},{"title":"List Images","api":"GET /v1/images","openapi":"openapi.json get /v1/images","href":"/api-reference/endpoints/access/get-images"},{"title":"Publish Image","api":"POST /v1/images/{imageId}/publish","openapi":"openapi.json post /v1/images/{image_id}/publish","href":"/api-reference/endpoints/access/publish"},{"title":"Unpublish Image","api":"POST /v1/images/{imageId}/unpublish","openapi":"openapi.json post /v1/images/{image_id}/unpublish","href":"/api-reference/endpoints/access/unpublish"}]},{"group":"Transformation Endpoints","icon":"compress","pages":[{"title":"Convert Image","api":"POST /v1/images/{imageId}/convert","openapi":"openapi.json post /v1/images/{image_id}/convert","href":"/api-reference/endpoints/transformation/convert"},{"title":"Crop Image","api":"POST /v1/images/{imageId}/crop","openapi":"openapi.json post /v1/images/{image_id}/crop","href":"/api-reference/endpoints/transformation/crop"},{"title":"Mirror Image","api":"POST /v1/images/{imageId}/mirror","openapi":"openapi.json post /v1/images/{image_id}/mirror","href":"/api-reference/endpoints/transformation/mirror"},{"title":"Resize Image","api":"POST /v1/images/{imageId}/resize","openapi":"openapi.json post /v1/images/{image_id}/resize","href":"/api-reference/endpoints/transformation/resize"},{"title":"Rotate Image","api":"POST /v1/images/{imageId}/rotate","openapi":"openapi.json post /v1/images/{image_id}/rotate","href":"/api-reference/endpoints/transformation/rotate"}]},{"group":"Edition Endpoints","icon":"palette","pages":[{"title":"Blur Image","api":"POST /v1/images/{imageId}/blur","openapi":"openapi.json post /v1/images/{image_id}/blur","href":"/api-reference/endpoints/edition/blur"},{"title":"Modulate Image","api":"POST /v1/images/{imageId}/modulate","openapi":"openapi.json post /v1/images/{image_id}/modulate","href":"/api-reference/endpoints/edition/modulate"},{"title":"Remove Image Background","api":"POST /v1/images/{imageId}/remove-background","openapi":"openapi.json post /v1/images/{image_id}/remove-background","href":"/api-reference/endpoints/edition/remove-background"}]},{"group":"Multi-Image Endpoints","icon":"images","pages":[{"title":"Add Watermarks","api":"POST /v1/images/{imageId}/watermark","openapi":"openapi.json post /v1/images/{image_id}/watermark","href":"/api-reference/endpoints/multi-image/watermark"}]},{"group":"Analysis Endpoints","icon":"eye","pages":[{"title":"Extract Formatted Text","api":"POST /v1/images/{imageId}/extract-formatted-text","description":"Extract the text from an image in desired format.","openapi":"openapi.json post /v1/images/{image_id}/extract-formatted-text","href":"/api-reference/endpoints/analysis/extract-formatted-text"},{"title":"Image Classification","api":"POST /v1/images/{imageId}/classify","openapi":"openapi.json post /v1/images/{image_id}/classify","href":"/api-reference/endpoints/analysis/classify"},{"title":"Visualize Image","api":"POST /v1/images/{imageId}/visualize","description":"Answer a prompt based on the content of an image.","openapi":"openapi.json post /v1/images/{image_id}/visualize","href":"/api-reference/endpoints/analysis/visualize"}]}]}]},{"dropdown":"Guides","icon":"book","description":"Guides for using the API","pages":[{"title":"Quickstart","icon":"bolt","href":"/api-reference/guides/getting-started"},{"group":"Edition Endpoints","pages":[{"title":"Remove Image Background","icon":"loader","href":"/api-reference/guides/remove-image-background"}]},{"group":"Transformation Endpoints","pages":[{"title":"Resize Image","icon":"compress","href":"/api-reference/guides/resize-image"}]},{"group":"Multi-Image Endpoints","pages":[{"title":"Watermark Image","icon":"stamp","href":"/api-reference/guides/apply-watermarks"}]}]}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk/introduction"}]},{"tab":"AI Toolkit","pages":[{"title":"AI Toolkit","href":"/ai-toolkit"}]}]},"title":"Image Classification - IMG Processing","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}