An API key from Settings → API keys in Arcade Studio.
Body
application/json
requestId
string
required
An ID you choose for this request, up to 128 characters. Retrying with the same requestId and body returns the original result.
Required string length: 1 - 128
patternId
string
required
The pattern to refine; not a jewelry product image
Minimum string length: 1
colors
object[]
required
One entry for every cluster that recolorClusters returned. At least one color must differ from the cluster's current color.
Minimum array length: 1
Show child attributes
clusterCount
integer
Most colors to detect; values above 16 detect 16. Omit to let the service choose; recolor must repeat the value
Required range: 1 <= x <= 20
Response
200 - application/json
OK
jobId
string
required
The job's ID. Pass it to jobs/get.
Minimum string length: 1
kind
enum<string>
required
What the job makes. pattern: started by patterns/create or a refine that returns a job. product: started by products/create or products/generate. download: started by an upscale in Arcade Studio.
Available options:
pattern,
product,
download
status
enum<string>
required
A job starts as running and ends as succeeded or failed.
Available options:
running,
succeeded,
failed
result
object
required
What the job made, once it succeeded. Null while the job is running and when it failed. Also null on a succeeded job when a deformity fix found nothing to repair, or when the pattern has since been deleted.
Option 1
Option 2
Option 3
Show child attributes
error
object | null
required
Why the job failed. Null unless the job failed.
Show child attributes
createdAt
string<date-time>
required
When the job started. For a product whose build was not recorded, when the product was created.
completedAt
string<date-time> | null
required
When the job finished. Null while the job is running, and for a failed product job.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Arcade API","colors":{"primary":"#0F0F0F","light":"#FCFAF8","dark":"#0F0F0F"},"logo":{"light":"https://mintcdn.com/arcade-api/u5JN7T0xngo0AZJf/logo/light.svg?fit=max\u0026auto=format\u0026n=u5JN7T0xngo0AZJf\u0026q=85\u0026s=4e8282e76bdb2e11cb1fb9da02c95488","dark":"https://mintcdn.com/arcade-api/u5JN7T0xngo0AZJf/logo/dark.svg?fit=max\u0026auto=format\u0026n=u5JN7T0xngo0AZJf\u0026q=85\u0026s=639295e67b1b0c30c2d0c3e0817e3336","href":"https://arcade.ai"},"favicon":"https://mintcdn.com/arcade-api/u5JN7T0xngo0AZJf/favicon.ico?fit=max\u0026auto=format\u0026n=u5JN7T0xngo0AZJf\u0026q=85\u0026s=b2679c1a17de5b92a4bf1308efff724d","api":{"playground":{"display":"interactive","proxy":true},"examples":{"languages":["curl","javascript","python"]}},"navbar":{"primary":{"type":"button","label":"Get an API key","href":"https://studio.arcade.ai/settings/api-keys"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"arcade-api","hasAudioNarration":false,"actualSubdomain":"arcade-api","customDomains":["docs.arcade.ai"],"gitSource":{"type":"github","owner":"arcade-ai","repo":"monorepo","deployBranch":"production","contentDirectory":"apps/api-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aff4a771a9abe6b15245fd0","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Refine","count":9},{"language":"default","tag":"Concepts","count":7},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Patterns","count":5},{"language":"default","tag":"Products","count":4},{"language":"default","tag":"References","count":4},{"language":"default","tag":"Checkouts","count":3},{"language":"default","tag":"Categories","count":2},{"language":"default","tag":"Orders","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/refine/recolor-a-pattern","slug":"/api-reference/refine/recolor-a-pattern","pageMetadata":{"title":"Recolor a pattern","description":"Starts a job that replaces a pattern's dominant colors.","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/recolor","href":"/api-reference/refine/recolor-a-pattern","autogeneratedByOpenApi":true},"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: \"Starts a job that replaces a pattern’s dominant colors.\"\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":"Recolor a pattern","description":"Starts a job that replaces a pattern's dominant colors.","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/recolor","href":"/api-reference/refine/recolor-a-pattern","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"patterns.refine.recolor","summary":"Recolor a pattern","description":"Starts a job that replaces a pattern's dominant colors.","tags":["Refine"],"requestBody":"0a8657a5-5c7b-44c2-a0a4-07f624c6a1df","responses":{"200":"02d512cd-03bc-402f-994c-1a4654bcf44d"},"method":"post","type":"path","servers":["0bbb4ccf-26e2-4b52-af11-ebc8407f4cc9"],"security":["f78d88fc-55f7-41a8-9431-3dea69b80926"],"path":"/patterns/refine/recolor","baseUrlOptions":["https://platform.arcade.ai/v1"],"title":"Recolor a pattern","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"maxLength":128,"description":"An ID you choose for this request, up to 128 characters. Retrying with the same `requestId` and body returns the original result.","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"patternId":{"type":"string","minLength":1,"description":"The pattern to refine; not a jewelry product image","isRequired":true,"uniqueKey":"patternId","typeLabel":"string"},"colors":{"type":"array","minItems":1,"items":{"type":"object","properties":{"clusterId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"colors.items.[INDEX].clusterId","typeLabel":"string"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"#RRGGBB","isRequired":true,"uniqueKey":"colors.items.[INDEX].color","typeLabel":"string"}},"required":["clusterId","color"],"uniqueKey":"colors.items.[INDEX]","typeLabel":"object"},"description":"One entry for every cluster that `recolorClusters` returned. At least one color must differ from the cluster's current color.","isRequired":true,"uniqueKey":"colors","typeLabel":"object[]"},"clusterCount":{"type":"integer","minimum":1,"maximum":20,"description":"Most colors to detect; values above 16 detect 16. Omit to let the service choose; recolor must repeat the value","uniqueKey":"clusterCount","typeLabel":"integer"}},"required":["requestId","patternId","colors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestId":"\u003cstring>","patternId":"\u003cstring>","colors":[{"clusterId":"\u003cstring>","color":"\u003cstring>"}],"clusterCount":10}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"02d512cd-03bc-402f-994c-1a4654bcf44d":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","minLength":1,"description":"The job's ID. Pass it to `jobs/get`.","isRequired":true,"uniqueKey":"jobId","typeLabel":"string"},"kind":{"enum":["pattern","product","download"],"type":"string","description":"What the job makes. `pattern`: started by `patterns/create` or a refine that returns a job. `product`: started by `products/create` or `products/generate`. `download`: started by an upscale in Arcade Studio.","isRequired":true,"uniqueKey":"kind","typeLabel":"enum\u003cstring>"},"status":{"enum":["running","succeeded","failed"],"type":"string","description":"A job starts as `running` and ends as `succeeded` or `failed`.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"result":{"oneOf":[{"type":"object","description":"What the job made, once it succeeded. Null while the job is running and when it failed. Also null on a succeeded job when a deformity fix found nothing to repair, or when the pattern has since been deleted.","required":["patternId"],"properties":{"patternId":{"type":"string","minLength":1,"description":"Opaque ID of one pattern: an immutable image. A refine makes a new pattern.","isRequired":true,"uniqueKey":"result.oneOf.0.patternId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"result.oneOf.0","typeLabel":"object"},{"type":"object","description":"What the job made, once it succeeded. Null while the job is running and when it failed. Also null on a succeeded job when a deformity fix found nothing to repair, or when the pattern has since been deleted.","required":["productId"],"properties":{"productId":{"type":"string","minLength":1,"description":"Opaque product ID","isRequired":true,"uniqueKey":"result.oneOf.1.productId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"result.oneOf.1","typeLabel":"object"},{"type":"object","description":"What the job made, once it succeeded. Null while the job is running and when it failed. Also null on a succeeded job when a deformity fix found nothing to repair, or when the pattern has since been deleted.","required":["downloadUrl","expiresAt"],"properties":{"downloadUrl":{"type":"string","format":"uri","description":"Short-lived; read the job again to renew","isRequired":true,"uniqueKey":"result.oneOf.2.downloadUrl","typeLabel":"string\u003curi>"},"expiresAt":{"type":"string","format":"date-time","description":"The URL works at least until this time","isRequired":true,"uniqueKey":"result.oneOf.2.expiresAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"result.oneOf.2","typeLabel":"object"},{"type":"null","description":"What the job made, once it succeeded. Null while the job is running and when it failed. Also null on a succeeded job when a deformity fix found nothing to repair, or when the pattern has since been deleted.","isRequired":true,"uniqueKey":"result.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"result","typeLabel":"object · object · object · null"},"error":{"oneOf":[{"type":"object","description":"Why the job failed. Null unless the job failed.","required":["message"],"properties":{"message":{"type":"string","description":"What went wrong.","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"reason":{"const":"insufficient_credits","description":"Present when the job failed because the account ran out of credits. Add credits or a plan, then send the request again with a new `requestId`.","uniqueKey":"error.oneOf.0.reason","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the job failed. Null unless the job failed.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"When the job started. For a product whose build was not recorded, when the product was created.","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"oneOf":[{"type":"string","description":"When the job finished. Null while the job is running, and for a failed product job.","format":"date-time","isRequired":true,"uniqueKey":"completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the job finished. Null while the job is running, and for a failed product job.","isRequired":true,"uniqueKey":"completedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["jobId","kind","status","result","error","createdAt","completedAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"jobId":"\u003cstring>","kind":"pattern","status":"running","result":{"patternId":"\u003cstring>"},"error":{"message":"\u003cstring>","reason":"insufficient_credits"},"createdAt":"2023-11-07T05:31:56Z","completedAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f78d88fc-55f7-41a8-9431-3dea69b80926":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings → API keys in Arcade Studio.","scopes":[],"schemeName":"apiKey"}}},"servers":{"0bbb4ccf-26e2-4b52-af11-ebc8407f4cc9":{"url":"https://platform.arcade.ai/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key from Settings → API keys in Arcade Studio.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key from Settings → API keys in Arcade Studio.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"arcade-api","siteName":"Arcade API","title":"Recolor a pattern - Arcade API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T19:14:04.933Z","originalFileLocation":"api-reference/refine/recolor-a-pattern.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=\"Starts a job that replaces a pattern\u0026#x27;s dominant colors.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Arcade API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_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/arcade-api/wIqe6rODN5wgyVnu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Recolor a pattern - Arcade API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts a job that replaces a pattern\u0026#x27;s dominant colors.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Arcade API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://arcade-api.mintlify.site/_mintlify/api/og/v2?division=Refine\u0026amp;title=Recolor+a+pattern\u0026amp;description=Starts+a+job+that+replaces+a+pattern%27s+dominant+colors.\u0026amp;theme=c9e0a5c3b9f3835fccd68575\u0026amp;signature=933d9bfcd02dcab083859ba757c7ed547d7fcacbac56d85af0c91b436c6b540b\">\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=\"Recolor a pattern - Arcade API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts a job that replaces a pattern\u0026#x27;s dominant colors.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://arcade-api.mintlify.site/_mintlify/api/og/v2?division=Refine\u0026amp;title=Recolor+a+pattern\u0026amp;description=Starts+a+job+that+replaces+a+pattern%27s+dominant+colors.\u0026amp;theme=c9e0a5c3b9f3835fccd68575\u0026amp;signature=933d9bfcd02dcab083859ba757c7ed547d7fcacbac56d85af0c91b436c6b540b\">\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/arcade-api/wIqe6rODN5wgyVnu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Arcade API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F0F0F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/refine/recolor-a-pattern.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.arcade.ai/#organization\",\"name\":\"Arcade API\",\"url\":\"https://docs.arcade.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/arcade-api/u5JN7T0xngo0AZJf/logo/light.svg?fit=max\u0026auto=format\u0026n=u5JN7T0xngo0AZJf\u0026q=85\u0026s=4e8282e76bdb2e11cb1fb9da02c95488\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.arcade.ai#website\",\"name\":\"Arcade API\",\"url\":\"https://docs.arcade.ai\",\"publisher\":{\"@id\":\"https://docs.arcade.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern#webpage\",\"url\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern\",\"name\":\"Recolor a pattern\",\"description\":\"Starts a job that replaces a pattern's dominant colors.\",\"dateModified\":\"2026-11-19T19:14:04.933Z\",\"isPartOf\":{\"@id\":\"https://docs.arcade.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.arcade.ai/api-reference/patterns/create-a-pattern\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Refine\",\"item\":\"https://docs.arcade.ai/api-reference/refine/edit-a-pattern\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Recolor a pattern\",\"item\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern#apireference\",\"headline\":\"Recolor a pattern\",\"name\":\"Recolor a pattern\",\"description\":\"Starts a job that replaces a pattern's dominant colors.\",\"url\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern\",\"mainEntityOfPage\":{\"@id\":\"https://docs.arcade.ai/api-reference/refine/recolor-a-pattern#webpage\"},\"dateModified\":\"2026-11-19T19:14:04.933Z\",\"publisher\":{\"@id\":\"https://docs.arcade.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.arcade.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Arcade API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Arcade API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/refine/recolor-a-pattern.md","siteName":"Arcade API","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/index"},{"title":"Print quickstart","href":"/quickstart"},{"title":"Jewelry quickstart","href":"/jewelry-quickstart"},{"title":"Use with an AI agent","href":"/agents"}]},{"group":"Guides","pages":[{"title":"Uploads","href":"/uploads"},{"title":"Dropshipping","href":"/dropshipping"},{"title":"Webhooks","href":"/webhooks"}]},{"group":"Concepts","pages":[{"title":"Authentication","href":"/authentication"},{"title":"Idempotency","href":"/idempotency"},{"title":"Jobs","href":"/jobs"},{"title":"Pagination","href":"/pagination"},{"title":"Errors","href":"/errors"},{"title":"Changelog","href":"/changelog"}]},{"group":"API reference","pages":[{"group":"Patterns","pages":[{"title":"Create a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/create","href":"/api-reference/patterns/create-a-pattern"},{"title":"Create a pattern upload URL","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/createUpload","href":"/api-reference/patterns/create-a-pattern-upload-url"},{"title":"Upload a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/upload","href":"/api-reference/patterns/upload-a-pattern"},{"title":"Retrieve a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/get","href":"/api-reference/patterns/retrieve-a-pattern"},{"title":"List patterns","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/list","href":"/api-reference/patterns/list-patterns"}]},{"group":"Refine","pages":[{"title":"Edit a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/edit","href":"/api-reference/refine/edit-a-pattern"},{"title":"Edit a region","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/editRegion","href":"/api-reference/refine/edit-a-region"},{"title":"Retrieve color clusters","description":"Lists a pattern's main colors as clusters. Send each cluster to `recolor` with the color you want. Returns the clusters directly, not a job.","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/recolorClusters","href":"/api-reference/refine/retrieve-color-clusters"},{"title":"Recolor a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/recolor","href":"/api-reference/refine/recolor-a-pattern"},{"title":"Crop a pattern","description":"Starts a job that crops a pattern to a rectangle.","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/crop","href":"/api-reference/refine/crop-a-pattern"},{"title":"Make a pattern seamless","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/makeSeamless","href":"/api-reference/refine/make-a-pattern-seamless"},{"title":"Extend a pattern","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/extendPattern","href":"/api-reference/refine/extend-a-pattern"},{"title":"Extend a scene","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/extendScene","href":"/api-reference/refine/extend-a-scene"},{"title":"Fix deformities","deprecated":null,"version":null,"openapi":"/openapi.json post /patterns/refine/fixDeformity","href":"/api-reference/refine/fix-deformities"}]},{"group":"Jobs","pages":[{"title":"Retrieve a job","deprecated":null,"version":null,"openapi":"/openapi.json post /jobs/get","href":"/api-reference/jobs/retrieve-a-job"}]},{"group":"References","pages":[{"title":"Create an upload URL","deprecated":null,"version":null,"openapi":"/openapi.json post /references/createUpload","href":"/api-reference/references/create-an-upload-url"},{"title":"Create a reference","deprecated":null,"version":null,"openapi":"/openapi.json post /references/create","href":"/api-reference/references/create-a-reference"},{"title":"Retrieve a reference","deprecated":null,"version":null,"openapi":"/openapi.json post /references/get","href":"/api-reference/references/retrieve-a-reference"},{"title":"List references","deprecated":null,"version":null,"openapi":"/openapi.json post /references/list","href":"/api-reference/references/list-references"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json post /models/list","href":"/api-reference/models/list-models"}]},{"group":"Categories","pages":[{"title":"List categories","deprecated":null,"version":null,"openapi":"/openapi.json post /categories/list","href":"/api-reference/categories/list-categories"},{"title":"Retrieve a category","deprecated":null,"version":null,"openapi":"/openapi.json post /categories/get","href":"/api-reference/categories/retrieve-a-category"}]},{"group":"Products","pages":[{"title":"Create a product","deprecated":null,"version":null,"openapi":"/openapi.json post /products/create","href":"/api-reference/products/create-a-product"},{"title":"Generate a product","deprecated":null,"version":null,"openapi":"/openapi.json post /products/generate","href":"/api-reference/products/generate-a-product"},{"title":"Retrieve a product","deprecated":null,"version":null,"openapi":"/openapi.json post /products/get","href":"/api-reference/products/retrieve-a-product"},{"title":"List products","deprecated":null,"version":null,"openapi":"/openapi.json post /products/list","href":"/api-reference/products/list-products"}]},{"group":"Checkouts","pages":[{"title":"Quote dropshipping credits","deprecated":null,"version":null,"openapi":"/openapi.json post /checkouts/quoteDropshipping","href":"/api-reference/checkouts/quote-dropshipping-credits"},{"title":"Cancel an unpaid dropshipping checkout","deprecated":null,"version":null,"openapi":"/openapi.json post /checkouts/cancel","href":"/api-reference/checkouts/cancel-an-unpaid-dropshipping-checkout"},{"title":"Create a checkout","deprecated":null,"version":null,"openapi":"/openapi.json post /checkouts/create","href":"/api-reference/checkouts/create-a-checkout"}]},{"group":"Orders","pages":[{"title":"Retrieve an order","deprecated":null,"version":null,"openapi":"/openapi.json post /orders/get","href":"/api-reference/orders/retrieve-an-order"},{"title":"List orders","deprecated":null,"version":null,"openapi":"/openapi.json post /orders/list","href":"/api-reference/orders/list-orders"}]},{"group":"Feedback","pages":[{"title":"Send feedback","deprecated":null,"version":null,"openapi":"/openapi.json post /feedback/create","href":"/api-reference/feedback/send-feedback"}]}]}]},"basePath":"","title":"Recolor a pattern - Arcade API","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CrDfRf61.js","snippetPresets-Dv-cOUrx.js","utils-BUTreAgv.js","style-to-object-BY3JEAdk.js","utils-wsznt9RM.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DEsMlaPy.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DontW4xJ.js","_Uint8Array-pP7X6_RM.js","isObject-FP1Yky1u.js","Page-Cr9IwkK7.js","CodeSnippet-eoRjC4Le.js","DynamicMarkdown-NFqqduU7.js","SectionHeading-DQ-mJoAt.js","icon-DXTBUt6s.js","ApiExamples-CU_aGGP0.js","usePlaygroundInputsStore-7dNmUIbS.js","shallow-fTtruD8x.js","isEqual-BRfNFpSD.js","CodeSnippets-52884wUJ.js","getApiPlaygroundDisplay-CZyAPlR2.js","MethodPill-2v-b3js5.js","getPastedJson-v_8Y1_4v.js","DuplicateIcon-DXIkhZIo.js","createIcon-DRpYuPZs.js","axios-CsQoIw0U.js","Markdown-CwtoSfEf.js","AssistantPageLink-CTqa3eoi.js","dist-DIfYWxfm.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}