{
"detail": {
"error": "INSUFFICIENT_CREDITS",
"message": "Not enough credits for this request.",
"balance": 0,
"required": 2
}
}
{
"detail": {
"error": "FORBIDDEN",
"message": "This key is not allowed to call this endpoint."
}
}
{
"detail": [
{
"type": "value_error",
"loc": [
"body",
"photos",
0,
"url"
],
"msg": "Value error, URL must be a valid https:// URL with a host",
"input": "http://images.example.com/campaign-1.jpg"
}
]
}
Internal Server Error
Brand extractor
Create photography submission
Builds a photography profile from a brand’s photos: the traits most of them share, what varies between them, and the tone measured from their pixels.
Send 1 to 12 photos, each as an https://url or as image_b64. With one photo, the profile is that photo’s own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile.
The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission’s error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request).
Costs 2 credits, refunded when no profile comes back. See Photography profile.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Taste Engine","colors":{"primary":"#171717","light":"#EAECE7","dark":"#171717"},"logo":{"light":"https://mintcdn.com/tastelabs/lMcn8IvQ-WbXAKni/logo/taste-engine-light.png?fit=max\u0026auto=format\u0026n=lMcn8IvQ-WbXAKni\u0026q=85\u0026s=16b11d3a9a0b80eaa5a2cac0416a8302","dark":"https://mintcdn.com/tastelabs/lMcn8IvQ-WbXAKni/logo/taste-engine-dark.png?fit=max\u0026auto=format\u0026n=lMcn8IvQ-WbXAKni\u0026q=85\u0026s=d9c4bf49c12137ed7b63f4f78938f60d"},"favicon":"https://mintcdn.com/tastelabs/VgdXg7WVd5ngvNjs/favicon.ico?fit=max\u0026auto=format\u0026n=VgdXg7WVd5ngvNjs\u0026q=85\u0026s=8c55a4849dd50033afa63bbeaa6ca952","appearance":{"default":"dark"},"background":{"color":{"light":"#EAECE7","dark":"#171717"}},"navbar":{"links":[{"href":"mailto:support@thetaste.ai","label":"Support"}],"primary":{"type":"button","label":"Get API key","href":"https://engine.tastelabs.com/app/api-keys"}},"fonts":{"heading":{"family":"Azeret Mono","weight":300,"source":"https://cdn.jsdelivr.net/gh/sanvi-saya/taste-labs-fonts@main/AzeretSemiMono-Regular.woff2","format":"woff2"},"body":{"family":"Matter","weight":400,"source":"https://cdn.jsdelivr.net/gh/sanvi-saya/taste-labs-fonts@main/Matter-Regular.woff2","format":"woff2"}},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tastelabs","hasAudioNarration":false,"actualSubdomain":"tastelabs","customDomains":["docs.tastelabs.com"],"gitSource":{"type":"github","owner":"taste-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"7189bea5-d062-42c4-8d1c-2dcf654f20ff","liveDeploymentHistoryId":"6ae205e94fe4c8cc739cf941","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae205e94fe4c8cc739cf941"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae3ac526ff74b4e2ccd02be","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Brand extractor","count":13},{"language":"default","tag":"Brand adherence verifier","count":6},{"language":"default","tag":"Brand search","count":4},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"From a URL","count":4},{"language":"default","tag":"Integrate Agents","count":3},{"language":"default","tag":"Use cases","count":3},{"language":"default","tag":"Account","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#api-playground-input,#chat-assistant-sheet,#feedback-form,#request-example,#response-example,#search-bar-entry,#search-bar-entry-mobile,#topbar-cta-button,accordion,accordion-group,callout,card,code-block,code-group,expandable,frame,step,steps,tabs,tile{border-radius:6px}.lottie-tile{box-sizing:border-box;height:222px;padding:24px;border-radius:16px;background:#2b2b2b;overflow:hidden;margin:1.5rem 0}.lottie-tile.lottie-tile-extract{background:#272726}.lottie-tile dotlottie-wc{display:block;width:100%;height:100%}.lottie-tile.lottie-tile-verify{position:relative;height:auto;aspect-ratio:6/5;padding:0}.lottie-tile.lottie-tile-verify dotlottie-wc{position:absolute;top:0;left:-6.6%;width:113.2%;height:100%}.lottie-tile.lottie-tile-search{height:100px;padding:16px 24px}a.link:has(>code),a.link:has(>code):hover{border-bottom:0;text-decoration:none}"}],"page":{"pagePath":"api-reference/endpoint/create-photography-submission","slug":"/api-reference/endpoint/create-photography-submission","pageMetadata":{"title":"Create photography submission","openapi":"api-reference/openapi.json POST /design/submissions/photography","description":"Builds a photography profile from a brand's photos: the traits most of them share, what varies between them, and the tone measured from their pixels.\n\nSend 1 to 12 photos, each as an `https://` `url` or as `image_b64`. With one photo, the profile is that photo's own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile.\n\nThe job runs asynchronously: poll [`GET /design/submissions/{id}`](/api-reference/endpoint/get-submission) until the status is `completed` or `failed`, then read the profile from [`GET /design/submissions/{id}/result`](/api-reference/endpoint/get-submission-result). A failed submission's `error` starts with `NOT_ENOUGH_PHOTOS` (none of the photos is a usable photograph: send others) or `PHOTO_READS_FAILED` (retry the same request).\n\nCosts 2 credits, refunded when no profile comes back. See [Photography profile](/concepts/photography-profile).","href":"/api-reference/endpoint/create-photography-submission"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Builds a photography profile from a brand’s photos: the traits most of them share, what varies between them, and the tone measured from their pixels.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Send 1 to 12 photos, each as an \", _jsx(_components.code, {\n children: \"https://\"\n }), \" \", _jsx(_components.code, {\n children: \"url\"\n }), \" or as \", _jsx(_components.code, {\n children: \"image_b64\"\n }), \". With one photo, the profile is that photo’s own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The job runs asynchronously: poll \", _jsx(_components.a, {\n href: \"/api-reference/endpoint/get-submission\",\n children: _jsx(_components.code, {\n children: \"GET /design/submissions/{id}\"\n })\n }), \" until the status is \", _jsx(_components.code, {\n children: \"completed\"\n }), \" or \", _jsx(_components.code, {\n children: \"failed\"\n }), \", then read the profile from \", _jsx(_components.a, {\n href: \"/api-reference/endpoint/get-submission-result\",\n children: _jsx(_components.code, {\n children: \"GET /design/submissions/{id}/result\"\n })\n }), \". A failed submission’s \", _jsx(_components.code, {\n children: \"error\"\n }), \" starts with \", _jsx(_components.code, {\n children: \"NOT_ENOUGH_PHOTOS\"\n }), \" (none of the photos is a usable photograph: send others) or \", _jsx(_components.code, {\n children: \"PHOTO_READS_FAILED\"\n }), \" (retry the same request).\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Costs 2 credits, refunded when no profile comes back. See \", _jsx(_components.a, {\n href: \"/concepts/photography-profile\",\n children: \"Photography profile\"\n }), \".\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create photography submission","openapi":"api-reference/openapi.json POST /design/submissions/photography","description":"Builds a photography profile from a brand's photos: the traits most of them share, what varies between them, and the tone measured from their pixels.\n\nSend 1 to 12 photos, each as an `https://` `url` or as `image_b64`. With one photo, the profile is that photo's own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile.\n\nThe job runs asynchronously: poll [`GET /design/submissions/{id}`](/api-reference/endpoint/get-submission) until the status is `completed` or `failed`, then read the profile from [`GET /design/submissions/{id}/result`](/api-reference/endpoint/get-submission-result). A failed submission's `error` starts with `NOT_ENOUGH_PHOTOS` (none of the photos is a usable photograph: send others) or `PHOTO_READS_FAILED` (retry the same request).\n\nCosts 2 credits, refunded when no profile comes back. See [Photography profile](/concepts/photography-profile).","href":"/api-reference/endpoint/create-photography-submission"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/tastelabs/76568ed90a0209b3/lottie.js"],"openApiReferenceData":{"operation":{"operationId":"createPhotographySubmission","summary":"Create photography submission","description":"Builds a photography profile from a brand's photos: the traits most of them share, what varies between them, and the tone measured from their pixels.\n\nSend 1 to 12 photos, each as an `https://` `url` or as `image_b64`. With one photo, the profile is that photo's own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile.\n\nThe job runs asynchronously: poll [`GET /design/submissions/{id}`](/api-reference/endpoint/get-submission) until the status is `completed` or `failed`, then read the profile from [`GET /design/submissions/{id}/result`](/api-reference/endpoint/get-submission-result). A failed submission's `error` starts with `NOT_ENOUGH_PHOTOS` (none of the photos is a usable photograph: send others) or `PHOTO_READS_FAILED` (retry the same request).\n\nCosts 2 credits, refunded when no profile comes back. See [Photography profile](/concepts/photography-profile).","tags":["Submissions"],"requestBody":"812fdb39-e84e-42e2-a97a-06c41c6b9443","responses":{"202":"ce0ff206-f696-4a86-909a-9577f9d4638e","401":"8305666b-9dd1-4946-b3ae-aa889753e53d","402":"d647e983-ea7b-47b5-b146-2cf8143b141b","403":"b56da5a2-a917-4cdc-9503-11b093f6f44c","422":"ec234fde-29c1-47f8-bd4c-7868dffe674f","500":"581e07d0-3525-4ccb-bcf3-63ecc436313e"},"method":"post","type":"path","servers":["b1077a91-89ea-4ffe-8bed-3e25053b4560"],"security":["473ea376-8d31-4a87-b978-2bcba4a5922a"],"path":"/design/submissions/photography","baseUrlOptions":["https://api.tastelabs.com"],"title":"Create photography submission","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["photos"],"additionalProperties":false,"properties":{"photos":{"type":"array","minItems":1,"maxItems":12,"items":{"oneOf":[{"type":"object","description":"One photo: exactly one of `url` or `image_b64`.","required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":4096,"description":"Public `https://` URL of the photo. It is downloaded when the photo is read.","isRequired":true,"uniqueKey":"photos.items.[INDEX].oneOf.0.url","typeLabel":"string\u003curi>"},"image_b64":{"type":"string","description":"The photo as base64: PNG, JPEG, or WebP, up to 64 megapixels.","uniqueKey":"photos.items.[INDEX].oneOf.0.image_b64","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"photos.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One photo: exactly one of `url` or `image_b64`.","required":["image_b64"],"properties":{"image_b64":{"type":"string","description":"The photo as base64: PNG, JPEG, or WebP, up to 64 megapixels.","isRequired":true,"uniqueKey":"photos.items.[INDEX].oneOf.1.image_b64","typeLabel":"string"},"url":{"type":"string","format":"uri","maxLength":4096,"description":"Public `https://` URL of the photo. It is downloaded when the photo is read.","uniqueKey":"photos.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"}},"additionalProperties":false,"uniqueKey":"photos.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"photos.items.[INDEX]","typeLabel":"object"},"description":"The brand's photos. From a brand kit, send the `do` and `example` assets of `photography.examples`.","isRequired":true,"uniqueKey":"photos","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"urls":{"title":"urls","value":{"photos":[{"url":"https://images.example.com/campaign-1.jpg"},{"url":"https://images.example.com/campaign-2.jpg"}]}},"upload":{"title":"upload","value":{"photos":[{"image_b64":"/9j/4AAQSkZJRgABAQ..."}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ce0ff206-f696-4a86-909a-9577f9d4638e":{"description":"The photos were accepted and queued for reading.","content":{"application/json":{"schema":{"type":"object","properties":{"submission_id":{"type":"string","isRequired":true,"uniqueKey":"submission_id","typeLabel":"string"},"status":{"type":"string","enum":["accepted"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"source_url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"source_url","typeLabel":"string\u003curi>"},"accepted_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"accepted_at","typeLabel":"string\u003cdate-time>"}},"required":["submission_id","status","source_url","accepted_at"],"uniqueKey":"","typeLabel":"object"},"example":{"submission_id":"5fb12de2-b640-4333-954a-a41703406b9a","status":"accepted","source_url":"https://images.example.com/campaign-1.jpg","accepted_at":"2026-10-27T12:34:43Z"},"examples":{"Example":{"title":"Example","value":{"submission_id":"5fb12de2-b640-4333-954a-a41703406b9a","status":"accepted","source_url":"https://images.example.com/campaign-1.jpg","accepted_at":"2026-10-27T12:34:43Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"8305666b-9dd1-4946-b3ae-aa889753e53d":{"description":"The API key is missing, invalid, or expired.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope for non-2xx responses: the machine-readable `error` code and the human-readable `message` are nested under `detail`. Validation errors (`422`) and search failures (`502`, `503`) shape `detail` differently; see those responses.","properties":{"detail":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable error code.","examples":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","NOT_READY"],"isRequired":true,"uniqueKey":"detail.error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"detail.message","typeLabel":"string"}},"required":["error","message"],"additionalProperties":true,"isRequired":true,"uniqueKey":"detail","typeLabel":"object"}},"required":["detail"],"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"error":"UNAUTHORIZED","message":"Bearer token or X-API-Key required"}},"examples":{"Example":{"title":"Example","value":{"detail":{"error":"UNAUTHORIZED","message":"Bearer token or X-API-Key required"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d647e983-ea7b-47b5-b146-2cf8143b141b":{"description":"Not enough credits (`INSUFFICIENT_CREDITS`).","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope for non-2xx responses: the machine-readable `error` code and the human-readable `message` are nested under `detail`. Validation errors (`422`) and search failures (`502`, `503`) shape `detail` differently; see those responses.","properties":{"detail":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable error code.","examples":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","NOT_READY"],"isRequired":true,"uniqueKey":"detail.error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"detail.message","typeLabel":"string"}},"required":["error","message"],"additionalProperties":true,"isRequired":true,"uniqueKey":"detail","typeLabel":"object"}},"required":["detail"],"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"error":"INSUFFICIENT_CREDITS","message":"Not enough credits for this request.","balance":0,"required":2}},"examples":{"Example":{"title":"Example","value":{"detail":{"error":"INSUFFICIENT_CREDITS","message":"Not enough credits for this request.","balance":0,"required":2}}}},"exampleType":"examples"}},"exampleType":"examples"},"b56da5a2-a917-4cdc-9503-11b093f6f44c":{"description":"The API key is valid but is not allowed to call this endpoint.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope for non-2xx responses: the machine-readable `error` code and the human-readable `message` are nested under `detail`. Validation errors (`422`) and search failures (`502`, `503`) shape `detail` differently; see those responses.","properties":{"detail":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable error code.","examples":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","NOT_READY"],"isRequired":true,"uniqueKey":"detail.error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"detail.message","typeLabel":"string"}},"required":["error","message"],"additionalProperties":true,"isRequired":true,"uniqueKey":"detail","typeLabel":"object"}},"required":["detail"],"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"error":"FORBIDDEN","message":"This key is not allowed to call this endpoint."}},"examples":{"Example":{"title":"Example","value":{"detail":{"error":"FORBIDDEN","message":"This key is not allowed to call this endpoint."}}}},"exampleType":"examples"}},"exampleType":"examples"},"ec234fde-29c1-47f8-bd4c-7868dffe674f":{"description":"The request failed validation: no photos or more than 12, a photo with both or neither of `url` and `image_b64`, a URL that is not public `https://`, or an upload that is not a PNG, JPEG, or WebP image. `detail` lists the issues.","content":{"application/json":{"example":{"detail":[{"type":"value_error","loc":["body","photos",0,"url"],"msg":"Value error, URL must be a valid https:// URL with a host","input":"http://images.example.com/campaign-1.jpg"}]},"examples":{"Example":{"title":"Example","value":{"detail":[{"type":"value_error","loc":["body","photos",0,"url"],"msg":"Value error, URL must be a valid https:// URL with a host","input":"http://images.example.com/campaign-1.jpg"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"581e07d0-3525-4ccb-bcf3-63ecc436313e":{"description":"An unexpected server error occurred. The body is plain text.","content":{"text/plain":{"example":"Internal Server Error","examples":{"Example":{"title":"Example","value":"Internal Server Error"}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"473ea376-8d31-4a87-b978-2bcba4a5922a":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key issued by the Taste Engine. Create one in the dashboard at https://engine.tastelabs.com/app/api-keys.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"b1077a91-89ea-4ffe-8bed-3e25053b4560":{"url":"https://api.tastelabs.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key issued by the Taste Engine. Create one in the dashboard at https://engine.tastelabs.com/app/api-keys.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key issued by the Taste Engine. Create one in the dashboard at https://engine.tastelabs.com/app/api-keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"tastelabs","siteName":"Taste Engine","title":"Create photography submission - Taste Engine","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T20:28:09.444Z","originalFileLocation":"api-reference/endpoint/create-photography-submission.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=\"dark\"}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=\"Builds a photography profile from a brand\u0026#x27;s photos: the traits most of them share, what varies between them, and the tone measured from their pixels. Send 1 to 12 photos, each as an https:// url or as image_b64. With one photo, the profile is that photo\u0026#x27;s own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile. The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission\u0026#x27;s error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request). Costs 2 credits, refunded when no profile comes back. See Photography profile.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Taste Engine\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_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/tastelabs/JjPiBFIDNaN6gB-y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create photography submission - Taste Engine\">\u003cmeta data-mint-head property=\"og:description\" content=\"Builds a photography profile from a brand\u0026#x27;s photos: the traits most of them share, what varies between them, and the tone measured from their pixels. Send 1 to 12 photos, each as an https:// url or as image_b64. With one photo, the profile is that photo\u0026#x27;s own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile. The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission\u0026#x27;s error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request). Costs 2 credits, refunded when no profile comes back. See Photography profile.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Taste Engine\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tastelabs.mintlify.app/_mintlify/api/og/v2?division=Brand+extractor\u0026amp;title=Create+photography+submission\u0026amp;description=Builds+a+photography+profile+from+a+brand%27s+photos%3A+the+traits+most+of+them+share%2C+what+varies+between+them%2C+and+the+tone+measured+from+their+pixels.%0A%0ASend+1+to\u0026amp;theme=2503431c8b55ea04159a70c0\u0026amp;signature=b63c86e147b765c84b463e4bcdba63ae9eb24bea400ea3d79678cbfeeb4a1a14\">\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=\"Create photography submission - Taste Engine\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Builds a photography profile from a brand\u0026#x27;s photos: the traits most of them share, what varies between them, and the tone measured from their pixels. Send 1 to 12 photos, each as an https:// url or as image_b64. With one photo, the profile is that photo\u0026#x27;s own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile. The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission\u0026#x27;s error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request). Costs 2 credits, refunded when no profile comes back. See Photography profile.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tastelabs.mintlify.app/_mintlify/api/og/v2?division=Brand+extractor\u0026amp;title=Create+photography+submission\u0026amp;description=Builds+a+photography+profile+from+a+brand%27s+photos%3A+the+traits+most+of+them+share%2C+what+varies+between+them%2C+and+the+tone+measured+from+their+pixels.%0A%0ASend+1+to\u0026amp;theme=2503431c8b55ea04159a70c0\u0026amp;signature=b63c86e147b765c84b463e4bcdba63ae9eb24bea400ea3d79678cbfeeb4a1a14\">\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/tastelabs/JjPiBFIDNaN6gB-y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Taste Engine\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#171717\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-photography-submission.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tastelabs.com/#organization\",\"name\":\"Taste Engine\",\"url\":\"https://docs.tastelabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tastelabs/lMcn8IvQ-WbXAKni/logo/taste-engine-light.png?fit=max\u0026auto=format\u0026n=lMcn8IvQ-WbXAKni\u0026q=85\u0026s=16b11d3a9a0b80eaa5a2cac0416a8302\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tastelabs.com#website\",\"name\":\"Taste Engine\",\"url\":\"https://docs.tastelabs.com\",\"publisher\":{\"@id\":\"https://docs.tastelabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission#webpage\",\"url\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission\",\"name\":\"Create photography submission\",\"description\":\"Builds a photography profile from a brand's photos: the traits most of them share, what varies between them, and the tone measured from their pixels. Send 1 to 12 photos, each as an https:// url or as image_b64. With one photo, the profile is that photo's own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile. The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission's error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request). Costs 2 credits, refunded when no profile comes back. See Photography profile.\",\"dateModified\":\"2026-10-29T20:28:09.444Z\",\"isPartOf\":{\"@id\":\"https://docs.tastelabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Brand extractor\",\"item\":\"https://docs.tastelabs.com/api-reference/endpoint/create-submission\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create photography submission\",\"item\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission#apireference\",\"headline\":\"Create photography submission\",\"name\":\"Create photography submission\",\"description\":\"Builds a photography profile from a brand's photos: the traits most of them share, what varies between them, and the tone measured from their pixels. Send 1 to 12 photos, each as an https:// url or as image_b64. With one photo, the profile is that photo's own reading; with more, it keeps what most of them share. Graphics, renders, and composites are read and then left out of the profile. The job runs asynchronously: poll GET /design/submissions/{id} until the status is completed or failed, then read the profile from GET /design/submissions/{id}/result. A failed submission's error starts with NOT_ENOUGH_PHOTOS (none of the photos is a usable photograph: send others) or PHOTO_READS_FAILED (retry the same request). Costs 2 credits, refunded when no profile comes back. See Photography profile.\",\"url\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tastelabs.com/api-reference/endpoint/create-photography-submission#webpage\"},\"dateModified\":\"2026-10-29T20:28:09.444Z\",\"publisher\":{\"@id\":\"https://docs.tastelabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tastelabs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Taste Engine\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Taste Engine","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Account","pages":[{"title":"Get current user","openapi":"api-reference/openapi.json GET /design/me","href":"/api-reference/endpoint/get-current-user"}]},{"group":"Brand extractor","pages":[{"title":"Create submission","openapi":"api-reference/openapi.json POST /design/submissions","href":"/api-reference/endpoint/create-submission"},{"title":"Create brand kit submission","openapi":"api-reference/openapi.json POST /design/submissions/brand-kit","description":"Extracts a brand kit from a brand guidelines PDF: profile and voice, colors with their proportions, typography, logo variants and misuse, photography, graphics, applications, layout, buttons, cards, motion, and the book's rules.\n\nThe job runs asynchronously: poll `GET /design/submissions/{id}/result` until the status is `completed` or `failed`. The result's `design_system` has `kind: \"brand_kit\"` and the [BrandKitDesignSystem](/concepts/brand-kit#read-the-result) shape.\n\nEvery upload is a fresh extraction and is never served from cache. The PDF can be up to 50 MB; the extractor reads up to the first 150 pages. See [Brand kit](/concepts/brand-kit).","href":"/api-reference/endpoint/create-brand-kit-submission"},{"title":"Create photography submission","openapi":"api-reference/openapi.json POST /design/submissions/photography","href":"/api-reference/endpoint/create-photography-submission"},{"title":"List submissions","openapi":"api-reference/openapi.json GET /design/submissions","description":"Returns a paginated list of your submissions, newest first, deduplicated by URL. Filter by status, by the API key that created them, by batch, or by `kind` (website extractions, brand kits, or photography profiles), and search by URL with `q`.\n\nAlongside the page, `total` counts everything matching the filter and `totals` breaks that down into `completed`, `failed`, and `in_progress`.","href":"/api-reference/endpoint/list-submissions"},{"title":"Get submission","openapi":"api-reference/openapi.json GET /design/submissions/{id}","href":"/api-reference/endpoint/get-submission"},{"title":"Get submission result","openapi":"api-reference/openapi.json GET /design/submissions/{id}/result","href":"/api-reference/endpoint/get-submission-result"},{"title":"Download submission bundle","openapi":"api-reference/openapi.json GET /design/submissions/{id}/download","href":"/api-reference/endpoint/download-submission"},{"title":"Update visibility","openapi":"api-reference/openapi.json PATCH /design/submissions/{id}/visibility","href":"/api-reference/endpoint/update-visibility"},{"title":"Enhance prompt","openapi":"api-reference/openapi.json POST /design/prompts/enhance","href":"/api-reference/endpoint/enhance-prompt"}]},{"group":"Brand search","pages":[{"title":"Search brands","openapi":"api-reference/openapi.json POST /search","href":"/api-reference/endpoint/search-brands"},{"title":"Find similar brands","openapi":"api-reference/openapi.json GET /search/similar","href":"/api-reference/endpoint/find-similar-brands"},{"title":"List searches","openapi":"api-reference/openapi.json GET /search/submissions","href":"/api-reference/endpoint/list-searches"}]},{"group":"Brand adherence verifier","pages":[{"title":"Create brand-adherence job","openapi":"api-reference/openapi.json POST /judge/brand-adherence","href":"/api-reference/endpoint/create-brand-adherence"},{"title":"List brand-adherence jobs","openapi":"api-reference/openapi.json GET /judge/brand-adherence","href":"/api-reference/endpoint/list-brand-adherence-jobs"},{"title":"Get brand-adherence job","openapi":"api-reference/openapi.json GET /judge/brand-adherence/{job_id}","href":"/api-reference/endpoint/get-brand-adherence-job"},{"title":"Get brand-adherence verdict","openapi":"api-reference/openapi.json GET /judge/brand-adherence/{job_id}/result","href":"/api-reference/endpoint/get-brand-adherence-verdict"},{"title":"Update job visibility","openapi":"api-reference/openapi.json PATCH /judge/brand-adherence/{job_id}/visibility","href":"/api-reference/endpoint/update-brand-adherence-visibility"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"Create photography submission - Taste Engine","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}