Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
URL of the video or image to process. The media type will be auto-detected based on the file extension.
Either url or img must be provided. If both are provided, url takes priority.
Base64-encoded image data. Supports both plain base64 string and data URI format (e.g., "data:image/jpeg;base64,...").
Either url or img must be provided. If both are provided, url takes priority.
Dictionary of face detection results keyed by frame index (as string).
For images, only frame "0" will be present.
For videos, multiple frames will be present (e.g., "0", "5", "10", etc.)
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Akool open api documents","colors":{"primary":"#8458cc","light":"#8458cc","dark":"#8458cc"},"logo":{"light":"https://mintcdn.com/akoolinc/u9MBxlCI2oetjK9S/logo/akool-light.svg?fit=max\u0026auto=format\u0026n=u9MBxlCI2oetjK9S\u0026q=85\u0026s=2582701d216adf76106f6e8f9923ac06","dark":"https://mintcdn.com/akoolinc/u9MBxlCI2oetjK9S/logo/akool-dark.svg?fit=max\u0026auto=format\u0026n=u9MBxlCI2oetjK9S\u0026q=85\u0026s=82c18ef3c0fd2b749f84c5f74db06ad2"},"favicon":"https://mintcdn.com/akoolinc/u9MBxlCI2oetjK9S/favicon.svg?fit=max\u0026auto=format\u0026n=u9MBxlCI2oetjK9S\u0026q=85\u0026s=ca76b853cf720af4753831ccd6f2d69f","api":{"openapi":["openapi/live-avatar.yaml","openapi/faceswap.yaml","openapi/video-translation.yaml","openapi/talking-photo.yaml","openapi/face-detection.yaml","openapi/face-detect-legacy.yaml","openapi/swap-studio-v5.yaml"],"playground":{"display":"simple"},"mdx":{"server":"https://openapi.akool.com"}},"navbar":{"links":[{"href":"mailto:info@akool.com","label":"Support"}],"primary":{"type":"button","label":"Akool","href":"https://akool.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"akoolinc","hasAudioNarration":false,"actualSubdomain":"akoolinc","customDomains":["docs.akool.com"],"gitSource":{"type":"github","owner":"jinjuezhou","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad5e1eec7b789e3c49ec5e7","collectionId":"b12eb73c-27b0-45cf-aaf5-d6a1adc2f5bc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad5e1eec7b789e3c49ec5e7"},"entitlements":{},"buildId":"6ad5e1eec7b789e3c49ec5e7","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":82},{"language":"default","tag":"API Endpoints","count":50},{"language":"default","tag":"Swap Studio V5","count":27},{"language":"default","tag":"Streaming Avatar","count":15},{"language":"default","tag":"AI Tools Suite","count":11},{"language":"default","tag":"Face Swap","count":9},{"language":"default","tag":"Image to Video","count":7},{"language":"default","tag":"Character Swap V5","count":6},{"language":"default","tag":"Clothing Swap V5","count":6},{"language":"default","tag":"Head Swap V5","count":6}]},"assistantConfig":{},"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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"ai-tools-suite/face-detection/detect-faces","slug":"/ai-tools-suite/face-detection/detect-faces","pageMetadata":{"title":"Detect Faces","description":"Unified endpoint to detect faces in either video or image from URL or base64-encoded image","openapi":"POST /detect_faces","href":"/ai-tools-suite/face-detection/detect-faces"},"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: \"Unified endpoint to detect faces in either video or image from URL or base64-encoded 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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsx(_components.p,{children:`Detect faces in images and videos with 6-point landmarks. Supports URL and base64 input, with optional cropped face URLs.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes*`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Image or video URL (publicly accessible)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`img`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes*`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`}),_jsx(_components.td,{children:`Base64-encoded image data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`num_frames`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5`}),_jsx(_components.td,{children:`Number of frames for video analysis`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`return_face_url`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`false`}),_jsx(_components.td,{children:`Return cropped face image URLs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`single_face`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`false`}),_jsx(_components.td,{children:`Return only the largest face`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deduplicate`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`true`}),_jsxs(_components.td,{children:[`Enable face deduplication. When set to `,_jsx(_components.code,{children:`false`}),`, returns all detected faces`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Either `,_jsx(_components.code,{children:`url`}),` or `,_jsx(_components.code,{children:`img`}),` must be provided. If both are provided, `,_jsx(_components.code,{children:`url`}),` takes priority.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response-format`,children:`Response Format`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"faces_obj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`85`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`180`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`88`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`130`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`165`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`125`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`165`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`175`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`168`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks_str\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"120,85:180,88:150,130:150,165\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`80`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`180`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"removed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"face_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"crop_region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"crop_landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error_code`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`0 = success, 1 = error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error_msg`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Status message`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`faces_obj`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Face data keyed by frame index (“0”, “1”, etc.)`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`face-frame-data`,children:`Face Frame Data`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`landmarks`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`6-point landmarks for each face: Left Eye, Right Eye, Nose, Mouth Center, Left Mouth Corner, Right Mouth Corner`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`landmarks_str`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`First 4 landmarks as string format `,_jsx(_components.code,{children:`\"x1,y1:x2,y2:x3,y3:x4,y4\"`}),` - use this for Face Swap `,_jsx(_components.code,{children:`opts`}),` parameter`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`region`})}),_jsx(_components.td,{children:`array`}),_jsxs(_components.td,{children:[`Bounding boxes `,_jsx(_components.code,{children:`[x, y, width, height]`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`removed`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Faces no longer visible (video only)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_time`})}),_jsx(_components.td,{children:`number/null`}),_jsx(_components.td,{children:`Timestamp in seconds (video only, null for images)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`face_urls`})}),_jsx(_components.td,{children:`array/null`}),_jsxs(_components.td,{children:[`Cropped face URLs (when `,_jsx(_components.code,{children:`return_face_url=true`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`crop_region`})}),_jsx(_components.td,{children:`array/null`}),_jsx(_components.td,{children:`Crop region in original image coordinates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`crop_landmarks`})}),_jsx(_components.td,{children:`array/null`}),_jsx(_components.td,{children:`Landmarks relative to cropped image`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`example-1-basic-image-detection`,children:`Example 1: Basic Image Detection`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Request:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/photo.jpg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"faces_obj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`320`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`240`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`420`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`240`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`370`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`370`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`350`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`340`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`350`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`350`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks_str\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"320,240:420,240:370,300:370,350\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`180`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"removed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-2-video-detection`,children:`Example 2: Video Detection`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Request:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/video.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"num_frames\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deduplicate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-3-get-cropped-face-urls`,children:`Example 3: Get Cropped Face URLs`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Request:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"return_face_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"faces_obj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`85`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`180`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`88`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`130`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`165`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`125`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`165`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`175`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`168`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"landmarks_str\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"120,85:180,88:150,130:150,165\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`80`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`150`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`180`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"removed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_time\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"face_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://s3.example.com/faces/face_detect_0.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"crop_region\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`250`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`280`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"crop_landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"90,85:150,88:120,130:120,165\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-4-single-face-mode`,children:`Example 4: Single Face Mode`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Request:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/group_photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"single_face\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`error_code`}),_jsx(_components.th,{children:`error_msg`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`0`}),_jsx(_components.td,{children:`SUCCESS`}),_jsx(_components.td,{children:`Success`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`Either ‘url’ or ‘img’ parameter must be provided`}),_jsx(_components.td,{children:`Missing input`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`Invalid URL format`}),_jsx(_components.td,{children:`Bad URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`Failed to download media from URL`}),_jsx(_components.td,{children:`Download failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`integration-with-face-swap`,children:`Integration with Face Swap`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`landmarks_str`}),` directly as the `,_jsx(_components.code,{children:`opts`}),` parameter in Face Swap API:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Detect faces`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://openapi.akool.com/interface/detect-api/detect_faces\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/target.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"return_face_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` frame_data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"faces_obj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Use for Face Swap API`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` target_image `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: frame_data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"face_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"opts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: frame_data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"crop_landmarks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best Practices`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`URL Requirements`}),`: Use HTTPS, ensure publicly accessible`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Video num_frames`}),`: Short videos (5-10), Medium (10-20), Long (20-50)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Performance`}),`: Use `,_jsx(_components.code,{children:`single_face=true`}),` when only one face needed`]}),`\n`]})]})}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":"Detect Faces","description":"Unified endpoint to detect faces in either video or image from URL or base64-encoded image","openapi":"POST /detect_faces","href":"/ai-tools-suite/face-detection/detect-faces"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request Parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Response Format","slug":"response-format","depth":2,"children":[{"title":"Response Fields","slug":"response-fields","depth":3,"children":[]},{"title":"Face Frame Data","slug":"face-frame-data","depth":3,"children":[]}]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Example 1: Basic Image Detection","slug":"example-1-basic-image-detection","depth":3,"children":[]},{"title":"Example 2: Video Detection","slug":"example-2-video-detection","depth":3,"children":[]},{"title":"Example 3: Get Cropped Face URLs","slug":"example-3-get-cropped-face-urls","depth":3,"children":[]},{"title":"Example 4: Single Face Mode","slug":"example-4-single-face-mode","depth":3,"children":[]}]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]},{"title":"Integration with Face Swap","slug":"integration-with-face-swap","depth":2,"children":[]},{"title":"Best Practices","slug":"best-practices","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"detectFaces","summary":"Detect Faces in Video or Image","description":"Unified endpoint to detect faces in either video or image from URL or base64-encoded image","tags":["Face Detection"],"requestBody":"8eb64b2c-b8cb-4ed1-83ee-d6387803d898","responses":{"200":"9b1099b3-207c-47f0-9054-23bbfabca76b","400":"346822cf-7fa7-4ea0-8cec-a20682128bd8","500":"da5cd068-dbc2-4266-9f63-faf699396fdf"},"method":"post","type":"path","servers":["115fa625-b59f-46a6-8987-05fdedf6cd64"],"security":["7a0f7239-b847-4efa-901b-a96cdfabf0f9","25bdfbcb-50b1-4625-8288-c2fe068a5c03"],"path":"/detect_faces","baseUrlOptions":["https://openapi.akool.com/interface/detect-api"],"title":"Detect Faces in Video or Image","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"URL of the video or image to process. The media type will be auto-detected based on the file extension.\nEither `url` or `img` must be provided. If both are provided, `url` takes priority.\n","example":"https://example.com/media.mp4","uniqueKey":"url","typeLabel":"string\u003curi>"},"img":{"type":"string","description":"Base64-encoded image data. Supports both plain base64 string and data URI format (e.g., \"data:image/jpeg;base64,...\").\nEither `url` or `img` must be provided. If both are provided, `url` takes priority.\n","example":"data:image/jpeg;base64,/9j/4AAQSkZJRg...","uniqueKey":"img","typeLabel":"string"},"num_frames":{"type":"integer","minimum":1,"maximum":100,"default":5,"description":"Number of frames to extract and analyze (only used for videos, ignored for images)","example":5,"uniqueKey":"num_frames","typeLabel":"integer"},"return_face_url":{"type":"boolean","default":false,"description":"Whether to return cropped face image URLs. When set to `true`, the response will include:\n- `face_urls`: URLs of cropped face images\n- `crop_region`: The region used for cropping in original image coordinates\n- `crop_landmarks`: Landmarks relative to the cropped image\n","example":false,"uniqueKey":"return_face_url","typeLabel":"boolean"},"single_face":{"type":"boolean","default":false,"description":"When set to `true`, only returns the largest face (by area) in each frame.\nUseful when you only need the main/primary face in the image or video.\n","example":false,"uniqueKey":"single_face","typeLabel":"boolean"},"deduplicate":{"type":"boolean","default":true,"description":"Whether to enable face deduplication. When set to `false`, all detected faces are returned.\n","example":true,"uniqueKey":"deduplicate","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"image_detection":{"title":"image_detection","value":{"url":"https://example.com/image.jpg"}},"image_base64":{"title":"image_base64","value":{"img":"data:image/jpeg;base64,/9j/4AAQSkZJRg..."}},"video_detection":{"title":"video_detection","value":{"url":"https://example.com/video.mp4","num_frames":10,"deduplicate":false}},"with_face_url":{"title":"with_face_url","value":{"url":"https://example.com/image.jpg","return_face_url":true}},"single_face_mode":{"title":"single_face_mode","value":{"url":"https://example.com/group_photo.jpg","single_face":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"9b1099b3-207c-47f0-9054-23bbfabca76b":{"description":"Face detection completed successfully","content":{"application/json":{"schema":{"type":"object","required":["error_code","error_msg","faces_obj"],"properties":{"error_code":{"type":"integer","description":"Error code (0: success, 1: error)","example":0,"isRequired":true,"uniqueKey":"error_code","typeLabel":"integer"},"error_msg":{"type":"string","description":"Error message or success message","example":"SUCCESS","isRequired":true,"uniqueKey":"error_msg","typeLabel":"string"},"faces_obj":{"type":"object","description":"Dictionary of face detection results keyed by frame index (as string).\nFor images, only frame \"0\" will be present.\nFor videos, multiple frames will be present (e.g., \"0\", \"5\", \"10\", etc.)\n","additionalProperties":{"type":"object","required":["landmarks","region","removed"],"properties":{"landmarks":{"type":"array","description":"List of 6-point facial landmarks for each detected face.\nEach face has 6 landmark points: Left Eye, Right Eye, Nose, Mouth Center, Left Mouth Corner, Right Mouth Corner.\nFormat: [[[x1, y1], [x2, y2], [x3, y3], [x4, y4], [x5, y5], [x6, y6]], ...]\n","items":{"type":"array","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX]","typeLabel":"integer[]"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX]","typeLabel":"integer[][]"},"example":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.landmarks","typeLabel":"integer[][][]"},"region":{"type":"array","description":"List of bounding boxes for each detected face.\nFormat: [[x, y, width, height], ...]\nWhere (x, y) is the top-left corner of the bounding box\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX]","typeLabel":"integer[]"},"example":[[80,50,150,180]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.region","typeLabel":"integer[][]"},"removed":{"type":"array","description":"List of face regions that were detected in previous frames but are no longer present (for video tracking).\nFormat: [[x, y, width, height], ...]\nEmpty array for images or first frame of videos\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX]","typeLabel":"integer[]"},"example":[],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.removed","typeLabel":"integer[][]"},"landmarks_str":{"type":"array","description":"String representation of the first 4 landmarks (Left Eye, Right Eye, Nose, Left Mouth Corner).\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\"]\nThis format is directly compatible with the Face Swap API `opts` parameter.\n","items":{"type":"string","uniqueKey":"faces_obj.additionalProperties.landmarks_str.items.[INDEX]","typeLabel":"string"},"example":["120,85:180,88:150,130:125,165"],"uniqueKey":"faces_obj.additionalProperties.landmarks_str","typeLabel":"string[]"},"frame_time":{"oneOf":[{"type":"number","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.frame_time","typeLabel":"number\u003cfloat> | null"},"face_urls":{"oneOf":[{"type":"array","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls","typeLabel":"(string | null)[] | null"},"crop_region":{"oneOf":[{"type":"array","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX]","typeLabel":"integer[] | null"},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0","typeLabel":"(integer[] | null)[]"},{"type":"null","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer"}},{"type":"null","items":{"type":"integer"}}]},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region","typeLabel":"(integer[] | null)[] | null"},"crop_landmarks":{"oneOf":[{"type":"array","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks","typeLabel":"(string | null)[] | null"}},"uniqueKey":"faces_obj.additionalProperties","typeLabel":"object"},"example":{"0":{"landmarks":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"landmarks_str":["120,85:180,88:150,130:150,165"],"region":[[80,50,150,180]],"removed":[],"frame_time":null,"face_urls":null,"crop_region":null,"crop_landmarks":null}},"isRequired":true,"uniqueKey":"faces_obj","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"image_success":{"title":"image_success","value":{"error_code":0,"error_msg":"SUCCESS","faces_obj":{"0":{"landmarks":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"landmarks_str":["120,85:180,88:150,130:150,165"],"region":[[80,50,150,180]],"removed":[],"frame_time":null,"face_urls":null,"crop_region":null,"crop_landmarks":null}}}},"video_success":{"title":"video_success","value":{"error_code":0,"error_msg":"SUCCESS","faces_obj":{"0":{"landmarks":[[[320,240],[420,240],[370,300],[370,350],[340,350],[400,350]]],"landmarks_str":["320,240:420,240:370,300:370,350"],"region":[[300,200,150,180]],"removed":[],"frame_time":0,"face_urls":null,"crop_region":null,"crop_landmarks":null},"5":{"landmarks":[[[325,245],[425,245],[375,305],[375,355],[345,355],[405,355]]],"landmarks_str":["325,245:425,245:375,305:375,355"],"region":[[305,205,150,180]],"removed":[[300,200,150,180]],"frame_time":0.2,"face_urls":null,"crop_region":null,"crop_landmarks":null}}}},"with_face_urls":{"title":"with_face_urls","value":{"error_code":0,"error_msg":"SUCCESS","faces_obj":{"0":{"landmarks":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"landmarks_str":["120,85:180,88:150,130:150,165"],"region":[[80,50,150,180]],"removed":[],"frame_time":null,"face_urls":["https://s3.example.com/faces/face_detect_0.jpg"],"crop_region":[[30,0,250,280]],"crop_landmarks":["90,85:150,88:120,130:120,165"]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"346822cf-7fa7-4ea0-8cec-a20682128bd8":{"description":"Bad request - Invalid input parameters","content":{"application/json":{"schema":{"type":"object","required":["error_code","error_msg","faces_obj"],"properties":{"error_code":{"type":"integer","description":"Error code (0: success, 1: error)","example":0,"isRequired":true,"uniqueKey":"error_code","typeLabel":"integer"},"error_msg":{"type":"string","description":"Error message or success message","example":"SUCCESS","isRequired":true,"uniqueKey":"error_msg","typeLabel":"string"},"faces_obj":{"type":"object","description":"Dictionary of face detection results keyed by frame index (as string).\nFor images, only frame \"0\" will be present.\nFor videos, multiple frames will be present (e.g., \"0\", \"5\", \"10\", etc.)\n","additionalProperties":{"type":"object","required":["landmarks","region","removed"],"properties":{"landmarks":{"type":"array","description":"List of 6-point facial landmarks for each detected face.\nEach face has 6 landmark points: Left Eye, Right Eye, Nose, Mouth Center, Left Mouth Corner, Right Mouth Corner.\nFormat: [[[x1, y1], [x2, y2], [x3, y3], [x4, y4], [x5, y5], [x6, y6]], ...]\n","items":{"type":"array","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX]","typeLabel":"integer[]"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX]","typeLabel":"integer[][]"},"example":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.landmarks","typeLabel":"integer[][][]"},"region":{"type":"array","description":"List of bounding boxes for each detected face.\nFormat: [[x, y, width, height], ...]\nWhere (x, y) is the top-left corner of the bounding box\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX]","typeLabel":"integer[]"},"example":[[80,50,150,180]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.region","typeLabel":"integer[][]"},"removed":{"type":"array","description":"List of face regions that were detected in previous frames but are no longer present (for video tracking).\nFormat: [[x, y, width, height], ...]\nEmpty array for images or first frame of videos\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX]","typeLabel":"integer[]"},"example":[],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.removed","typeLabel":"integer[][]"},"landmarks_str":{"type":"array","description":"String representation of the first 4 landmarks (Left Eye, Right Eye, Nose, Left Mouth Corner).\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\"]\nThis format is directly compatible with the Face Swap API `opts` parameter.\n","items":{"type":"string","uniqueKey":"faces_obj.additionalProperties.landmarks_str.items.[INDEX]","typeLabel":"string"},"example":["120,85:180,88:150,130:125,165"],"uniqueKey":"faces_obj.additionalProperties.landmarks_str","typeLabel":"string[]"},"frame_time":{"oneOf":[{"type":"number","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.frame_time","typeLabel":"number\u003cfloat> | null"},"face_urls":{"oneOf":[{"type":"array","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls","typeLabel":"(string | null)[] | null"},"crop_region":{"oneOf":[{"type":"array","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX]","typeLabel":"integer[] | null"},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0","typeLabel":"(integer[] | null)[]"},{"type":"null","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer"}},{"type":"null","items":{"type":"integer"}}]},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region","typeLabel":"(integer[] | null)[] | null"},"crop_landmarks":{"oneOf":[{"type":"array","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks","typeLabel":"(string | null)[] | null"}},"uniqueKey":"faces_obj.additionalProperties","typeLabel":"object"},"example":{"0":{"landmarks":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"landmarks_str":["120,85:180,88:150,130:150,165"],"region":[[80,50,150,180]],"removed":[],"frame_time":null,"face_urls":null,"crop_region":null,"crop_landmarks":null}},"isRequired":true,"uniqueKey":"faces_obj","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error_code":1,"error_msg":"Either 'url' or 'img' parameter must be provided","faces_obj":{}},"examples":{"Example":{"title":"Example","value":{"error_code":1,"error_msg":"Either 'url' or 'img' parameter must be provided","faces_obj":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"da5cd068-dbc2-4266-9f63-faf699396fdf":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["error_code","error_msg","faces_obj"],"properties":{"error_code":{"type":"integer","description":"Error code (0: success, 1: error)","example":0,"isRequired":true,"uniqueKey":"error_code","typeLabel":"integer"},"error_msg":{"type":"string","description":"Error message or success message","example":"SUCCESS","isRequired":true,"uniqueKey":"error_msg","typeLabel":"string"},"faces_obj":{"type":"object","description":"Dictionary of face detection results keyed by frame index (as string).\nFor images, only frame \"0\" will be present.\nFor videos, multiple frames will be present (e.g., \"0\", \"5\", \"10\", etc.)\n","additionalProperties":{"type":"object","required":["landmarks","region","removed"],"properties":{"landmarks":{"type":"array","description":"List of 6-point facial landmarks for each detected face.\nEach face has 6 landmark points: Left Eye, Right Eye, Nose, Mouth Center, Left Mouth Corner, Right Mouth Corner.\nFormat: [[[x1, y1], [x2, y2], [x3, y3], [x4, y4], [x5, y5], [x6, y6]], ...]\n","items":{"type":"array","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX].items.[INDEX]","typeLabel":"integer[]"},"uniqueKey":"faces_obj.additionalProperties.landmarks.items.[INDEX]","typeLabel":"integer[][]"},"example":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.landmarks","typeLabel":"integer[][][]"},"region":{"type":"array","description":"List of bounding boxes for each detected face.\nFormat: [[x, y, width, height], ...]\nWhere (x, y) is the top-left corner of the bounding box\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.region.items.[INDEX]","typeLabel":"integer[]"},"example":[[80,50,150,180]],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.region","typeLabel":"integer[][]"},"removed":{"type":"array","description":"List of face regions that were detected in previous frames but are no longer present (for video tracking).\nFormat: [[x, y, width, height], ...]\nEmpty array for images or first frame of videos\n","items":{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.removed.items.[INDEX]","typeLabel":"integer[]"},"example":[],"isRequired":true,"uniqueKey":"faces_obj.additionalProperties.removed","typeLabel":"integer[][]"},"landmarks_str":{"type":"array","description":"String representation of the first 4 landmarks (Left Eye, Right Eye, Nose, Left Mouth Corner).\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\"]\nThis format is directly compatible with the Face Swap API `opts` parameter.\n","items":{"type":"string","uniqueKey":"faces_obj.additionalProperties.landmarks_str.items.[INDEX]","typeLabel":"string"},"example":["120,85:180,88:150,130:125,165"],"uniqueKey":"faces_obj.additionalProperties.landmarks_str","typeLabel":"string[]"},"frame_time":{"oneOf":[{"type":"number","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Time in seconds for this frame in the video. Null for images.","example":null,"uniqueKey":"faces_obj.additionalProperties.frame_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.frame_time","typeLabel":"number\u003cfloat> | null"},"face_urls":{"oneOf":[{"type":"array","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"URLs of cropped face images. Only returned when `return_face_url=true`.\nEach URL corresponds to a detected face in the same order as `region` and `landmarks`.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["https://s3.example.com/faces/face_detect_0.jpg"],"uniqueKey":"faces_obj.additionalProperties.face_urls.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.face_urls","typeLabel":"(string | null)[] | null"},"crop_region":{"oneOf":[{"type":"array","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0.items.[INDEX]","typeLabel":"integer[] | null"},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.0","typeLabel":"(integer[] | null)[]"},{"type":"null","description":"The cropped image region in original image coordinates. Only returned when `return_face_url=true`.\nFormat: [[x, y, width, height], ...]\nThis is the expanded region used for cropping (larger than `region` for better context).\n","items":{"oneOf":[{"type":"array","items":{"type":"integer"}},{"type":"null","items":{"type":"integer"}}]},"example":[[30,0,250,280]],"uniqueKey":"faces_obj.additionalProperties.crop_region.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_region","typeLabel":"(integer[] | null)[] | null"},"crop_landmarks":{"oneOf":[{"type":"array","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","description":"Landmarks relative to the cropped image. Only returned when `return_face_url=true`.\nFormat: [\"x1,y1:x2,y2:x3,y3:x4,y4\", ...]\nUse this when working with the cropped face image.\n","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"example":["90,85:150,88:120,130:95,165"],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks.oneOf.1","typeLabel":"null"}],"uniqueKey":"faces_obj.additionalProperties.crop_landmarks","typeLabel":"(string | null)[] | null"}},"uniqueKey":"faces_obj.additionalProperties","typeLabel":"object"},"example":{"0":{"landmarks":[[[120,85],[180,88],[150,130],[150,165],[125,165],[175,168]]],"landmarks_str":["120,85:180,88:150,130:150,165"],"region":[[80,50,150,180]],"removed":[],"frame_time":null,"face_urls":null,"crop_region":null,"crop_landmarks":null}},"isRequired":true,"uniqueKey":"faces_obj","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error_code":1,"error_msg":"Failed to process media","faces_obj":{}},"examples":{"Example":{"title":"Example","value":{"error_code":1,"error_msg":"Failed to process media","faces_obj":{}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"7a0f7239-b847-4efa-901b-a96cdfabf0f9":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.","scopes":[],"schemeName":"ApiKeyAuth"}},"25bdfbcb-50b1-4625-8288-c2fe068a5c03":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Your API Key used for request authorization. Get Token from authentication/usage#get-the-token","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"115fa625-b59f-46a6-8987-05fdedf6cd64":{"url":"https://openapi.akool.com/interface/detect-api","description":"Face detection server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API Key used for request authorization. Get Token from authentication/usage#get-the-token","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API Key used for request authorization. Get Token from authentication/usage#get-the-token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi/face-detection.yaml"},"subdomain":"akoolinc","siteName":"Akool open api documents","title":"Detect Faces - Akool open api documents","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-12T06:38:29.775Z","originalFileLocation":"ai-tools-suite/face-detection/detect-faces.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=\"Unified endpoint to detect faces in either video or image from URL or base64-encoded image\">\u003cmeta data-mint-head name=\"application-name\" content=\"Akool open api documents\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_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=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Detect Faces - Akool open api documents\">\u003cmeta data-mint-head property=\"og:description\" content=\"Unified endpoint to detect faces in either video or image from URL or base64-encoded image\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Akool open api documents\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://akoolinc.mintlify.app/_mintlify/api/og/v2?division=Face+Detection\u0026amp;title=Detect+Faces\u0026amp;description=Unified+endpoint+to+detect+faces+in+either+video+or+image+from+URL+or+base64-encoded+image\u0026amp;theme=7d7e450ed224174404f3747e\u0026amp;signature=dfcd4827c36b15bf0d14e03f62d40bce56bb9bcda10e13825ff1140b73bd44aa\">\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=\"Detect Faces - Akool open api documents\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Unified endpoint to detect faces in either video or image from URL or base64-encoded image\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://akoolinc.mintlify.app/_mintlify/api/og/v2?division=Face+Detection\u0026amp;title=Detect+Faces\u0026amp;description=Unified+endpoint+to+detect+faces+in+either+video+or+image+from+URL+or+base64-encoded+image\u0026amp;theme=7d7e450ed224174404f3747e\u0026amp;signature=dfcd4827c36b15bf0d14e03f62d40bce56bb9bcda10e13825ff1140b73bd44aa\">\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=\"/mintlify-assets/_mintlify/favicons/akoolinc/qGYShipUZpalh1A-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Akool open api documents\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8458cc\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-tools-suite/face-detection/detect-faces.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.akool.com/#organization\",\"name\":\"Akool open api documents\",\"url\":\"https://docs.akool.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/akoolinc/u9MBxlCI2oetjK9S/logo/akool-light.svg?fit=max\u0026auto=format\u0026n=u9MBxlCI2oetjK9S\u0026q=85\u0026s=2582701d216adf76106f6e8f9923ac06\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.akool.com#website\",\"name\":\"Akool open api documents\",\"url\":\"https://docs.akool.com\",\"publisher\":{\"@id\":\"https://docs.akool.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces#webpage\",\"url\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces\",\"name\":\"Detect Faces\",\"description\":\"Unified endpoint to detect faces in either video or image from URL or base64-encoded image\",\"dateModified\":\"2026-06-12T06:38:29.775Z\",\"isPartOf\":{\"@id\":\"https://docs.akool.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Face Detection\",\"item\":\"https://docs.akool.com/ai-tools-suite/face-detection\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Detect Faces\",\"item\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces#apireference\",\"headline\":\"Detect Faces\",\"name\":\"Detect Faces\",\"description\":\"Unified endpoint to detect faces in either video or image from URL or base64-encoded image\",\"url\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces\",\"mainEntityOfPage\":{\"@id\":\"https://docs.akool.com/ai-tools-suite/face-detection/detect-faces#webpage\"},\"dateModified\":\"2026-06-12T06:38:29.775Z\",\"publisher\":{\"@id\":\"https://docs.akool.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.akool.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Akool open api documents\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Akool open api documents","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Authentication","pages":[{"title":"Usage","href":"/authentication/usage"}]},{"group":"Face Swap","pages":[{"title":"Face Swap API Overview","href":"/ai-tools-suite/faceswap"},{"group":"API Endpoints","pages":[{"title":"Face Swap Plus (Image \u0026 Video)","openapi":"POST /api/open/v4/faceswap/faceswapPlusByImage","href":"/ai-tools-suite/faceswap/faceswap-plus"},{"title":"Face Swap Pro","openapi":"POST /api/open/v4/faceswap/faceswapByImage","href":"/ai-tools-suite/faceswap/image-faceswap-v4"},{"title":"Image Faceswap","openapi":"POST /api/open/v3/faceswap/highquality/specifyimage","href":"/ai-tools-suite/faceswap/image-faceswap"},{"title":"Video Faceswap","openapi":"POST /api/open/v3/faceswap/highquality/specifyvideo","href":"/ai-tools-suite/faceswap/video-faceswap"},{"title":"Get Faceswap Result List","openapi":"GET /api/open/v3/faceswap/result/listbyids","href":"/ai-tools-suite/faceswap/get-result"},{"title":"Delete Faceswap Results","openapi":"POST /api/open/v3/faceswap/result/delbyids","href":"/ai-tools-suite/faceswap/delete-result"},{"title":"Get User Credit Info","openapi":"GET /api/open/v3/faceswap/quota/info","href":"/ai-tools-suite/faceswap/get-credit"},{"title":"Face Detect (Legacy)","openapi":"POST /detect","href":"/ai-tools-suite/faceswap/face-detect"}]}]},{"group":"Streaming Avatar","pages":[{"title":"Streaming Avatar API Overview","href":"/ai-tools-suite/live-avatar"},{"group":"API Endpoints","pages":[{"title":"Upload Streaming Avatar","openapi":"POST /api/open/v3/avatar/create","href":"/ai-tools-suite/live-avatar/upload"},{"title":"Get Streaming Avatar List","openapi":"GET /api/open/v4/liveAvatar/avatar/list","href":"/ai-tools-suite/live-avatar/list"},{"title":"Get Streaming Avatar Detail","openapi":"GET /api/open/v4/liveAvatar/avatar/detail","href":"/ai-tools-suite/live-avatar/detail"},{"title":"Create Session","openapi":"POST /api/open/v4/liveAvatar/session/create","href":"/ai-tools-suite/live-avatar/create-session"},{"title":"Get Session Detail","openapi":"GET /api/open/v4/liveAvatar/session/detail","href":"/ai-tools-suite/live-avatar/session-detail"},{"title":"Close Session","openapi":"POST /api/open/v4/liveAvatar/session/close","href":"/ai-tools-suite/live-avatar/close-session"},{"title":"Get Session List","openapi":"GET /api/open/v4/liveAvatar/session/list","href":"/ai-tools-suite/live-avatar/list-sessions"}]},{"group":"Implementation Guides","pages":[{"title":"Streaming Avatar Integration Guide","href":"/implementation-guide/streaming-avatar"},{"title":"LiveKit Agent Integration","href":"/implementation-guide/livekit-agent"}]},{"group":"Integrate with AKOOL SA SDK","pages":[{"title":"Streaming Avatar SDK Quick Start","href":"/sdk/jssdk-start"},{"title":"Streaming Avatar SDK Best Practices","href":"/sdk/jssdk-best-practice"},{"title":"Streaming Avatar SDK API Reference","href":"/sdk/jssdk-api"}]},{"title":"Knowledge Base","href":"/ai-tools-suite/knowledge-base"},{"title":"Vision Sense","href":"/ai-tools-suite/live-camera"}]},{"group":"Talking Photo","pages":[{"title":"Talking Photo API Overview","href":"/ai-tools-suite/talking-photo"},{"group":"API Endpoints","pages":[{"title":"Create By Talking Photo","openapi":"POST /api/open/v3/content/video/createbytalkingphoto","href":"/ai-tools-suite/talking-photo/create-video"},{"title":"Get Video Info Result","openapi":"GET /api/open/v3/content/video/infobymodelid","href":"/ai-tools-suite/talking-photo/get-result"}]}]},{"group":"Video Translation","pages":[{"title":"Video Translation API Overview","href":"/ai-tools-suite/video-translation"},{"group":"API Endpoints","pages":[{"title":"Create Video Translation","openapi":"POST /api/open/v3/content/video/createbytranslate","href":"/ai-tools-suite/video-translation/create-translation"},{"title":"Get Video Translation Result","openapi":"GET /api/open/v3/content/video/infobymodelid","href":"/ai-tools-suite/video-translation/get-result"},{"title":"Get Language List","openapi":"GET /api/open/v3/language/list","href":"/ai-tools-suite/video-translation/get-languages"}]}]},{"group":"Face Detection","pages":[{"title":"Face Detection API Overview","description":"Comprehensive guide to the Face Detection API","href":"/ai-tools-suite/face-detection"},{"title":"Detect Faces","openapi":"POST /detect_faces","href":"/ai-tools-suite/face-detection/detect-faces"},{"title":"Analyze Frames","description":"Face analysis for single or multiple images with automatic person deduplication","openapi":"POST /faceswap/analyze_frames","href":"/ai-tools-suite/face-detection/analyze-frames"}]},{"group":"Swap Studio V5","pages":[{"title":"Swap Studio V5","href":"/ai-tools-suite/swap-studio/overview"},{"group":"Character Swap V5","pages":[{"title":"Character Swap V5 API Overview","href":"/ai-tools-suite/swap-studio/character-swap-v5"},{"group":"API Endpoints","pages":[{"title":"List Models","openapi":"GET /api/open/v5/characterSwap/models","href":"/ai-tools-suite/swap-studio/character-swap-v5/models"},{"title":"Create Task","openapi":"POST /api/open/v5/characterSwap/create","href":"/ai-tools-suite/swap-studio/character-swap-v5/create"},{"title":"Get Task Result","openapi":"GET /api/open/v5/characterSwap/task/detail","href":"/ai-tools-suite/swap-studio/character-swap-v5/get-result"},{"title":"Analyze Source Material","openapi":"POST /api/open/v5/characterSwap/analyze","href":"/ai-tools-suite/swap-studio/character-swap-v5/analyze"},{"title":"Get Analysis Result","openapi":"GET /api/open/v5/characterSwap/analyze/detail","href":"/ai-tools-suite/swap-studio/character-swap-v5/analysis-result"}]}]},{"group":"Motion Swap V5","pages":[{"title":"Motion Swap V5 API Overview","href":"/ai-tools-suite/swap-studio/motion-swap-v5"},{"group":"API Endpoints","pages":[{"title":"List Models","openapi":"GET /api/open/v5/motionSwap/models","href":"/ai-tools-suite/swap-studio/motion-swap-v5/models"},{"title":"Create Task","openapi":"POST /api/open/v5/motionSwap/create","href":"/ai-tools-suite/swap-studio/motion-swap-v5/create"},{"title":"Get Task Result","openapi":"GET /api/open/v5/motionSwap/task/detail","href":"/ai-tools-suite/swap-studio/motion-swap-v5/get-result"}]}]},{"group":"Head Swap V5","pages":[{"title":"Head Swap V5 API Overview","href":"/ai-tools-suite/swap-studio/head-swap-v5"},{"group":"API Endpoints","pages":[{"title":"List Models","openapi":"GET /api/open/v5/headswap/models","href":"/ai-tools-suite/swap-studio/head-swap-v5/models"},{"title":"Create Task","openapi":"POST /api/open/v5/headswap/create","href":"/ai-tools-suite/swap-studio/head-swap-v5/create"},{"title":"Get Task Result","openapi":"GET /api/open/v5/headswap/task/detail","href":"/ai-tools-suite/swap-studio/head-swap-v5/get-result"},{"title":"Analyze Source Material","openapi":"POST /api/open/v5/headswap/analyze","href":"/ai-tools-suite/swap-studio/head-swap-v5/analyze"},{"title":"Get Analysis Result","openapi":"GET /api/open/v5/headswap/analyze/detail","href":"/ai-tools-suite/swap-studio/head-swap-v5/analysis-result"}]}]},{"group":"Clothing Swap V5","pages":[{"title":"Clothing Swap V5 API Overview","href":"/ai-tools-suite/swap-studio/clothing-swap-v5"},{"group":"API Endpoints","pages":[{"title":"List Models","openapi":"GET /api/open/v5/clothingSwap/models","href":"/ai-tools-suite/swap-studio/clothing-swap-v5/models"},{"title":"Create Task","openapi":"POST /api/open/v5/clothingSwap/create","href":"/ai-tools-suite/swap-studio/clothing-swap-v5/create"},{"title":"Get Task Result","openapi":"GET /api/open/v5/clothingSwap/task/detail","href":"/ai-tools-suite/swap-studio/clothing-swap-v5/get-result"},{"title":"Analyze Source Material","openapi":"POST /api/open/v5/clothingSwap/analyze","href":"/ai-tools-suite/swap-studio/clothing-swap-v5/analyze"},{"title":"Get Analysis Result","openapi":"GET /api/open/v5/clothingSwap/analyze/detail","href":"/ai-tools-suite/swap-studio/clothing-swap-v5/analysis-result"}]}]},{"group":"Hair Swap V5","pages":[{"title":"Hair Swap V5 API Overview","href":"/ai-tools-suite/swap-studio/hair-swap-v5"},{"group":"API Endpoints","pages":[{"title":"List Models","openapi":"GET /api/open/v5/hairswap/models","href":"/ai-tools-suite/swap-studio/hair-swap-v5/models"},{"title":"Create Task","openapi":"POST /api/open/v5/hairswap/create","href":"/ai-tools-suite/swap-studio/hair-swap-v5/create"},{"title":"Get Task Result","openapi":"GET /api/open/v5/hairswap/task/detail","href":"/ai-tools-suite/swap-studio/hair-swap-v5/get-result"}]}]}]},{"group":"Image Generate","pages":[{"title":"Image Generate API Overview","href":"/ai-tools-suite/image-generate/image-generate"},{"group":"API Endpoints","pages":[{"title":"Text to Image / Image to Image","href":"/ai-tools-suite/image-generate/create-by-source-prompt"},{"title":"Generate 4K or Variations","href":"/ai-tools-suite/image-generate/create-by-button"},{"title":"Get Image Result","href":"/ai-tools-suite/image-generate/get-result"}]}]},{"group":"Image to Video","pages":[{"title":"Image to Video API Overview","href":"/ai-tools-suite/image2video/image2video"},{"group":"API Endpoints","pages":[{"title":"Create Image to Video","href":"/ai-tools-suite/image2video/create-video"},{"title":"Create Batch Image to Video","href":"/ai-tools-suite/image2video/create-batch"},{"title":"Get Image to Video Results","href":"/ai-tools-suite/image2video/get-results"},{"title":"Get Available Effects","href":"/ai-tools-suite/image2video/get-effects"},{"title":"Update Video Audio","href":"/ai-tools-suite/image2video/update-audio"},{"title":"Delete Videos","href":"/ai-tools-suite/image2video/delete-videos"}]}]},{"group":"AI Tools Suite","pages":[{"title":"Live Face Swap","href":"/ai-tools-suite/live-faceswap"},{"title":"Reage","href":"/ai-tools-suite/reage"},{"title":"VoiceLab","href":"/ai-tools-suite/voiceLab"},{"title":"Video Translation API Overview","href":"/ai-tools-suite/video-translation"},{"title":"Talking Photo API Overview","href":"/ai-tools-suite/talking-photo"},{"title":"Talking Avatar","href":"/ai-tools-suite/talking-avatar"},{"title":"LipSync","href":"/ai-tools-suite/lip-sync"},{"title":"Jarvis Moderator","href":"/ai-tools-suite/jarvis-moderator"},{"title":"AI Model","href":"/ai-tools-suite/aimodel"},{"title":"Webhook","href":"/ai-tools-suite/webhook"},{"title":"ErrorCode","href":"/ai-tools-suite/error-code"}]}]},{"anchor":"Overview","icon":"book-open-cover","pages":[{"title":"Overview","href":""}]},{"anchor":"Github","icon":"github","href":"https://github.com/AKOOL-Official"},{"anchor":"Postman","icon":"mailbox","color":{"light":"#FF6C37","dark":"#FF6C37"},"href":"https://www.postman.com/akoolai/team-workspace/collection/40971792-f9172546-2d7e-4b28-bb20-b86988f3ab1d?action=share\u0026creator=40971792"},{"anchor":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli"}]},{"anchor":"MCP","icon":"plug","pages":[{"title":"MCP","href":"/mcp-server"}]},{"anchor":"Blog","icon":"newspaper","href":"https://akool.com/blog"},{"anchor":"Change Logs","icon":"clock-rotate-left","pages":[{"title":"Change Logs","href":"/changelog"}]}]},"title":"Detect Faces - Akool open api documents","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}