ProductFlo provides powerful AI image generation capabilities through various models and providers. These endpoints allow you to generate, manipulate, and analyze images using state-of-the-art AI models.
Image Generation Models
OpenAI DALL-E
Stability AI
Replicate
Recraft
Generates high-quality images from text descriptions using OpenAI’s DALL-E 3 model.
Creates detailed images with fine-grained control using Stability AI’s diffusion models.
Offers specialized models for product photography, inpainting, and design mockups.
Provides comprehensive image editing, vectorization, and style transfer capabilities.
Generate Images with DALL-E
POST /image-generation-openai
Generate images using OpenAI’s DALL-E 3 model
Generates one or more images from a text prompt using OpenAI’s DALL-E 3 model.
Request
cURL
Python
curl -X POST https://api.productflo.io/image-generation-openai \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "prompt": "A photorealistic smart thermostat with a touch screen interface, modern design", "nbr_images": 3, "folder_path": "projects/thermostats" }'
import requestsresponse = requests.post( "https://api.productflo.io/image-generation-openai", headers={ "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY" }, json={ "prompt": "A photorealistic smart thermostat with a touch screen interface, modern design", "nbr_images": 3, "folder_path": "projects/thermostats" })data = response.json()
Request Body
string
required
The text description of the image to generate
integer
default:1
Number of images to generate (1-4)
string
Optional folder path where generated images will be saved
Response
string
Status of the operation (COMPLETED, PROCESSING, ERROR)
array
Array of URLs to the generated images
string
Error message if generation failed
string
Timestamp of when the images were generated
{ "prompt": "A photorealistic smart thermostat with a touch screen interface, modern design", "nbr_images": 3, "folder_path": "projects/thermostats"}
Generates detailed images with fine-grained control using Stability AI’s diffusion models.
Request
cURL
curl -X POST https://api.productflo.io/image-generation-stability \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "prompt": "Photo of a modern electric vehicle charging station, photorealistic, high detail", "negative_prompt": "blurry, low quality, distortion, text, watermark", "nbr_images": 2, "folder_path": "projects/charging-stations" }'
Request Body
string
required
The text description of the image to generate
string
Elements to avoid in the generated image
integer
default:1
Number of images to generate (1-4)
string
Optional folder path where generated images will be saved
Response
Same structure as the OpenAI endpoint response.
Generate Product Photos
POST /image-generation-product-photo
Generate professional product photos
Generates realistic product photos using specialized models from Replicate.
Request
cURL
curl -X POST https://api.productflo.io/image-generation-product-photo \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "prompt": "A sleek smartwatch with heart rate monitor and fitness tracking", "negative_prompt": "blurry, low quality, people, hands", "reference_image": "https://example.com/reference_watch.jpg", "nbr_images": 3, "folder_path": "projects/smartwatch" }'
Request Body
string
required
The text description of the product to generate
string
Elements to avoid in the generated image
string
Optional URL to a reference image for image-to-image generation
integer
default:1
Number of images to generate (1-4)
string
Optional folder path where generated images will be saved
Response
Same structure as the OpenAI endpoint response.
Generate Product Mockups
POST /image-generation-product-mockups
Generate product mockups in various contexts
Generates product mockups showing your product in realistic environments and contexts.
Request Body
string
required
The text description of the product mockup to generate
string
Elements to avoid in the generated mockup
string
Optional URL to a reference image of the product
integer
default:1
Number of images to generate (1-4)
string
Optional folder path where generated images will be saved
Image Analysis with Vision API
POST /image-analysis
Analyze images using AI vision capabilities
Analyzes images using OpenAI’s Vision API to extract information, measurements, and insights.
Request
cURL
curl -X POST https://api.productflo.io/image-analysis \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "prompt": "Analyze this circuit board and identify all components", "reference_image": "https://example.com/circuit_board.jpg" }'
Request Body
string
required
The question or instruction for analyzing the image
string
required
URL to the image to be analyzed
Response
string
Status of the operation (COMPLETED, PROCESSING, ERROR)
string
Detailed analysis of the image based on the prompt
string
Error message if analysis failed
string
Timestamp of when the analysis was performed
Recraft Image Processing
ProductFlo integrates with Recraft AI for specialized image processing tasks.
Vectorize Image
POST /recraft-vectorize
Convert raster images to vector graphics
Converts raster images to scalable vector graphics (SVG) format.
Request Body
string
Optional text description to guide the vectorization
string
required
URL to the image to be vectorized
Remove Background
POST /recraft-remove-background
Remove backgrounds from images
Automatically removes the background from an image, producing a transparent PNG.
Request Body
string
required
URL to the image to process
Upscale Image
POST /recraft-upscale
Enhance image resolution
Upscales an image to higher resolution while preserving quality.
Request Body
string
required
Path to the source image
integer
default:2
Upscaling factor (1-4)
string
default:"clarity"
Upscaling mode (clarity or generative)
Custom AI Styles
Create Custom Style
POST /recraft-create-style
Create a custom image generation style
Creates a custom style from reference images that can be used for future generations.
Request Body
string
required
Name for the custom style
array
required
List of paths to reference images
string
Optional style description
List Styles
GET /recraft-list-styles
List available custom styles
Returns a list of all available custom styles.
Get Style
GET /recraft-get-style/{style_id}
Get details of a specific custom style
Returns details about a specific custom style.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ProductFlo API Documentation","colors":{"primary":"#00d1b8","light":"#a6d7ac","dark":"#171f18"},"logo":{"light":"https://mintcdn.com/productfloio/bo293HgBAQ_o0zgL/logo/light.svg?fit=max\u0026auto=format\u0026n=bo293HgBAQ_o0zgL\u0026q=85\u0026s=c36ca3147f4ec606a213bbbbaa89c541","dark":"https://mintcdn.com/productfloio/bo293HgBAQ_o0zgL/logo/dark.svg?fit=max\u0026auto=format\u0026n=bo293HgBAQ_o0zgL\u0026q=85\u0026s=bb93533486438286f333abe210e763a9"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:support@productflo.io"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.productflo.io"}},"footer":{"socials":{"github":"https://github.com/Wearer-Lab/productflo-api","linkedin":"https://linkedin.com/company/productflo"}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Wearer-Lab/productflo-api"},{"anchor":"ProductFlo","icon":"building","href":"https://productflo.io"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"productfloio","hasAudioNarration":false,"actualSubdomain":"productfloio","customDomains":["docs.productflo.io"],"gitSource":{"type":"github","owner":"wearer-lab","repo":"productflo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92829cd3ef9bdbe5f688a:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"WebSockets","count":4},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Authentication","count":2},{"language":"default","tag":"AI Features","count":1},{"language":"default","tag":"API Introduction","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/ai/image-generation","slug":"/api-reference/ai/image-generation","pageMetadata":{"title":"Image Generation","description":"AI-powered image generation endpoints","href":"/api-reference/ai/image-generation"},"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: \"AI-powered image generation endpoints\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{Card,CodeBlock,Heading,ParamField,ResponseField,Tab,Tabs}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`ai-image-generation`,children:`AI Image Generation`}),`\n`,_jsx(_components.p,{children:`ProductFlo provides powerful AI image generation capabilities through various models and providers. These endpoints allow you to generate, manipulate, and analyze images using state-of-the-art AI models.`}),`\n`,_jsx(Heading,{level:`2`,id:`image-generation-models`,children:`Image Generation Models`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`OpenAI DALL-E`,id:`openai-dall-e`,children:_jsx(_components.p,{children:`Generates high-quality images from text descriptions using OpenAI’s DALL-E 3 model.`})}),_jsx(Tab,{title:`Stability AI`,id:`stability-ai`,children:_jsx(_components.p,{children:`Creates detailed images with fine-grained control using Stability AI’s diffusion models.`})}),_jsx(Tab,{title:`Replicate`,id:`replicate`,children:_jsx(_components.p,{children:`Offers specialized models for product photography, inpainting, and design mockups.`})}),_jsx(Tab,{title:`Recraft`,id:`recraft`,children:_jsx(_components.p,{children:`Provides comprehensive image editing, vectorization, and style transfer capabilities.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`generate-images-with-dall-e`,children:`Generate Images with DALL-E`}),`\n`,_jsx(Card,{title:`POST /image-generation-openai`,icon:`paintbrush`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate images using OpenAI’s DALL-E 3 model`})}),`\n`,_jsx(_components.p,{children:`Generates one or more images from a text prompt using OpenAI’s DALL-E 3 model.`}),`\n`,_jsx(Heading,{level:`3`,id:`request`,children:`Request`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`cURL`,id:`curl`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-openai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A photorealistic smart thermostat with a touch screen interface, modern design\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/thermostats\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Tab,{title:`Python`,id:`python`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,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`,_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://api.productflo.io/image-generation-openai\"`}),_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:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_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:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`})]}),`\n`,_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:`#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:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A photorealistic smart thermostat with a touch screen interface, modern design\"`}),_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:` \"nbr_images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"folder_path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"projects/thermostats\"`})]}),`\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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`The text description of the image to generate`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Status of the operation (COMPLETED, PROCESSING, ERROR)`})}),`\n`,_jsx(ResponseField,{name:`generated_images`,type:`array`,id:`param-generated-images`,children:_jsx(_components.p,{children:`Array of URLs to the generated images`})}),`\n`,_jsx(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message`,children:_jsx(_components.p,{children:`Error message if generation failed`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp of when the images were generated`})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`generate-images-with-stability-ai`,children:`Generate Images with Stability AI`}),`\n`,_jsx(Card,{title:`POST /image-generation-stability`,icon:`sparkles`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate images using Stability AI models`})}),`\n`,_jsx(_components.p,{children:`Generates detailed images with fine-grained control using Stability AI’s diffusion models.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-2`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-stability`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Photo of a modern electric vehicle charging station, photorealistic, high detail\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"negative_prompt\": \"blurry, low quality, distortion, text, watermark\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/charging-stations\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-1`,children:_jsx(_components.p,{children:`The text description of the image to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt`,children:_jsx(_components.p,{children:`Elements to avoid in the generated image`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-1`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-1`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Same structure as the OpenAI endpoint response.`}),`\n`,_jsx(Heading,{level:`2`,id:`generate-product-photos`,children:`Generate Product Photos`}),`\n`,_jsx(Card,{title:`POST /image-generation-product-photo`,icon:`camera`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate professional product photos`})}),`\n`,_jsx(_components.p,{children:`Generates realistic product photos using specialized models from Replicate.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-3`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-3`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-product-photo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A sleek smartwatch with heart rate monitor and fitness tracking\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"negative_prompt\": \"blurry, low quality, people, hands\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference_image\": \"https://example.com/reference_watch.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/smartwatch\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-3`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-2`,children:_jsx(_components.p,{children:`The text description of the product to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt-1`,children:_jsx(_components.p,{children:`Elements to avoid in the generated image`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,id:`param-reference-image`,children:_jsx(_components.p,{children:`Optional URL to a reference image for image-to-image generation`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-2`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-2`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-3`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Same structure as the OpenAI endpoint response.`}),`\n`,_jsx(Heading,{level:`2`,id:`generate-product-mockups`,children:`Generate Product Mockups`}),`\n`,_jsx(Card,{title:`POST /image-generation-product-mockups`,icon:`layer-group`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate product mockups in various contexts`})}),`\n`,_jsx(_components.p,{children:`Generates product mockups showing your product in realistic environments and contexts.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-4`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-3`,children:_jsx(_components.p,{children:`The text description of the product mockup to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt-2`,children:_jsx(_components.p,{children:`Elements to avoid in the generated mockup`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,id:`param-reference-image-1`,children:_jsx(_components.p,{children:`Optional URL to a reference image of the product`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-3`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-3`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`2`,id:`image-analysis-with-vision-api`,children:`Image Analysis with Vision API`}),`\n`,_jsx(Card,{title:`POST /image-analysis`,icon:`magnifying-glass`,iconType:`duotone`,children:_jsx(_components.p,{children:`Analyze images using AI vision capabilities`})}),`\n`,_jsx(_components.p,{children:`Analyzes images using OpenAI’s Vision API to extract information, measurements, and insights.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-4`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-4`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-analysis`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Analyze this circuit board and identify all components\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference_image\": \"https://example.com/circuit_board.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-5`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-4`,children:_jsx(_components.p,{children:`The question or instruction for analyzing the image`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-2`,children:_jsx(_components.p,{children:`URL to the image to be analyzed`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-4`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:_jsx(_components.p,{children:`Status of the operation (COMPLETED, PROCESSING, ERROR)`})}),`\n`,_jsx(ResponseField,{name:`analysis`,type:`string`,id:`param-analysis`,children:_jsx(_components.p,{children:`Detailed analysis of the image based on the prompt`})}),`\n`,_jsx(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message-1`,children:_jsx(_components.p,{children:`Error message if analysis failed`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`Timestamp of when the analysis was performed`})}),`\n`,_jsx(Heading,{level:`2`,id:`recraft-image-processing`,children:`Recraft Image Processing`}),`\n`,_jsx(_components.p,{children:`ProductFlo integrates with Recraft AI for specialized image processing tasks.`}),`\n`,_jsx(Heading,{level:`3`,id:`vectorize-image`,children:`Vectorize Image`}),`\n`,_jsx(Card,{title:`POST /recraft-vectorize`,icon:`bezier-curve`,iconType:`duotone`,children:_jsx(_components.p,{children:`Convert raster images to vector graphics`})}),`\n`,_jsx(_components.p,{children:`Converts raster images to scalable vector graphics (SVG) format.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-6`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-5`,children:_jsx(_components.p,{children:`Optional text description to guide the vectorization`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-3`,children:_jsx(_components.p,{children:`URL to the image to be vectorized`})}),`\n`,_jsx(Heading,{level:`3`,id:`remove-background`,children:`Remove Background`}),`\n`,_jsx(Card,{title:`POST /recraft-remove-background`,icon:`object-subtract`,iconType:`duotone`,children:_jsx(_components.p,{children:`Remove backgrounds from images`})}),`\n`,_jsx(_components.p,{children:`Automatically removes the background from an image, producing a transparent PNG.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-7`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-4`,children:_jsx(_components.p,{children:`URL to the image to process`})}),`\n`,_jsx(Heading,{level:`3`,id:`upscale-image`,children:`Upscale Image`}),`\n`,_jsx(Card,{title:`POST /recraft-upscale`,icon:`expand`,iconType:`duotone`,children:_jsx(_components.p,{children:`Enhance image resolution`})}),`\n`,_jsx(_components.p,{children:`Upscales an image to higher resolution while preserving quality.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-8`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`image_path`,type:`string`,required:true,id:`param-image-path`,children:_jsx(_components.p,{children:`Path to the source image`})}),`\n`,_jsx(ParamField,{body:`scale_factor`,type:`integer`,default:2,id:`param-scale-factor`,children:_jsx(_components.p,{children:`Upscaling factor (1-4)`})}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`clarity`,id:`param-mode`,children:_jsx(_components.p,{children:`Upscaling mode (clarity or generative)`})}),`\n`,_jsx(Heading,{level:`2`,id:`custom-ai-styles`,children:`Custom AI Styles`}),`\n`,_jsx(Heading,{level:`3`,id:`create-custom-style`,children:`Create Custom Style`}),`\n`,_jsx(Card,{title:`POST /recraft-create-style`,icon:`palette`,iconType:`duotone`,children:_jsx(_components.p,{children:`Create a custom image generation style`})}),`\n`,_jsx(_components.p,{children:`Creates a custom style from reference images that can be used for future generations.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-9`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Name for the custom style`})}),`\n`,_jsx(ParamField,{body:`reference_images`,type:`array`,required:true,id:`param-reference-images`,children:_jsx(_components.p,{children:`List of paths to reference images`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Optional style description`})}),`\n`,_jsx(Heading,{level:`3`,id:`list-styles`,children:`List Styles`}),`\n`,_jsx(Card,{title:`GET /recraft-list-styles`,icon:`list`,iconType:`duotone`,children:_jsx(_components.p,{children:`List available custom styles`})}),`\n`,_jsx(_components.p,{children:`Returns a list of all available custom styles.`}),`\n`,_jsx(Heading,{level:`3`,id:`get-style`,children:`Get Style`}),`\n`,_jsx(Card,{title:`GET /recraft-get-style/{style_id}`,icon:`brush`,iconType:`duotone`,children:_jsx(_components.p,{children:`Get details of a specific custom style`})}),`\n`,_jsx(_components.p,{children:`Returns details about a specific custom style.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Image Generation","description":"AI-powered image generation endpoints","href":"/api-reference/ai/image-generation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{Card,CodeBlock,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Tab,Tabs}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`ai-image-generation`,children:`AI Image Generation`}),`\n`,_jsx(_components.p,{children:`ProductFlo provides powerful AI image generation capabilities through various models and providers. These endpoints allow you to generate, manipulate, and analyze images using state-of-the-art AI models.`}),`\n`,_jsx(Heading,{level:`2`,id:`image-generation-models`,children:`Image Generation Models`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`OpenAI DALL-E`,id:`openai-dall-e`,children:_jsx(_components.p,{children:`Generates high-quality images from text descriptions using OpenAI’s DALL-E 3 model.`})}),_jsx(Tab,{title:`Stability AI`,id:`stability-ai`,children:_jsx(_components.p,{children:`Creates detailed images with fine-grained control using Stability AI’s diffusion models.`})}),_jsx(Tab,{title:`Replicate`,id:`replicate`,children:_jsx(_components.p,{children:`Offers specialized models for product photography, inpainting, and design mockups.`})}),_jsx(Tab,{title:`Recraft`,id:`recraft`,children:_jsx(_components.p,{children:`Provides comprehensive image editing, vectorization, and style transfer capabilities.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`generate-images-with-dall-e`,children:`Generate Images with DALL-E`}),`\n`,_jsx(Card,{title:`POST /image-generation-openai`,icon:`paintbrush`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate images using OpenAI’s DALL-E 3 model`})}),`\n`,_jsx(_components.p,{children:`Generates one or more images from a text prompt using OpenAI’s DALL-E 3 model.`}),`\n`,_jsx(Heading,{level:`3`,id:`request`,children:`Request`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`cURL`,id:`curl`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-openai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A photorealistic smart thermostat with a touch screen interface, modern design\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/thermostats\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Tab,{title:`Python`,id:`python`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,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`,_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://api.productflo.io/image-generation-openai\"`}),_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:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_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:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`})]}),`\n`,_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:`#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:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A photorealistic smart thermostat with a touch screen interface, modern design\"`}),_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:` \"nbr_images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"folder_path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"projects/thermostats\"`})]}),`\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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`The text description of the image to generate`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Status of the operation (COMPLETED, PROCESSING, ERROR)`})}),`\n`,_jsx(ResponseField,{name:`generated_images`,type:`array`,id:`param-generated-images`,children:_jsx(_components.p,{children:`Array of URLs to the generated images`})}),`\n`,_jsx(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message`,children:_jsx(_components.p,{children:`Error message if generation failed`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp of when the images were generated`})}),`\n`,_jsx(RequestExample,{children:_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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A photorealistic smart thermostat with a touch screen interface, modern design\"`}),_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:` \"nbr_images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"folder_path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"projects/thermostats\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"COMPLETED\"`}),_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:` \"generated_images\"`}),_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:` \"https://api.productflo.io/global/projects/thermostats/image_1.png\"`}),_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:` \"https://api.productflo.io/global/projects/thermostats/image_2.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.productflo.io/global/projects/thermostats/image_3.png\"`})}),`\n`,_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_message\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-05-01T12:34:56.789Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`generate-images-with-stability-ai`,children:`Generate Images with Stability AI`}),`\n`,_jsx(Card,{title:`POST /image-generation-stability`,icon:`sparkles`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate images using Stability AI models`})}),`\n`,_jsx(_components.p,{children:`Generates detailed images with fine-grained control using Stability AI’s diffusion models.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-2`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-stability`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Photo of a modern electric vehicle charging station, photorealistic, high detail\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"negative_prompt\": \"blurry, low quality, distortion, text, watermark\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/charging-stations\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-1`,children:_jsx(_components.p,{children:`The text description of the image to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt`,children:_jsx(_components.p,{children:`Elements to avoid in the generated image`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-1`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-1`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Same structure as the OpenAI endpoint response.`}),`\n`,_jsx(Heading,{level:`2`,id:`generate-product-photos`,children:`Generate Product Photos`}),`\n`,_jsx(Card,{title:`POST /image-generation-product-photo`,icon:`camera`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate professional product photos`})}),`\n`,_jsx(_components.p,{children:`Generates realistic product photos using specialized models from Replicate.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-3`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-3`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-generation-product-photo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A sleek smartwatch with heart rate monitor and fitness tracking\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"negative_prompt\": \"blurry, low quality, people, hands\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference_image\": \"https://example.com/reference_watch.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"nbr_images\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_path\": \"projects/smartwatch\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-3`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-2`,children:_jsx(_components.p,{children:`The text description of the product to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt-1`,children:_jsx(_components.p,{children:`Elements to avoid in the generated image`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,id:`param-reference-image`,children:_jsx(_components.p,{children:`Optional URL to a reference image for image-to-image generation`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-2`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-2`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-3`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Same structure as the OpenAI endpoint response.`}),`\n`,_jsx(Heading,{level:`2`,id:`generate-product-mockups`,children:`Generate Product Mockups`}),`\n`,_jsx(Card,{title:`POST /image-generation-product-mockups`,icon:`layer-group`,iconType:`duotone`,children:_jsx(_components.p,{children:`Generate product mockups in various contexts`})}),`\n`,_jsx(_components.p,{children:`Generates product mockups showing your product in realistic environments and contexts.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-4`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-3`,children:_jsx(_components.p,{children:`The text description of the product mockup to generate`})}),`\n`,_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt-2`,children:_jsx(_components.p,{children:`Elements to avoid in the generated mockup`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,id:`param-reference-image-1`,children:_jsx(_components.p,{children:`Optional URL to a reference image of the product`})}),`\n`,_jsx(ParamField,{body:`nbr_images`,type:`integer`,default:1,id:`param-nbr-images-3`,children:_jsx(_components.p,{children:`Number of images to generate (1-4)`})}),`\n`,_jsx(ParamField,{body:`folder_path`,type:`string`,id:`param-folder-path-3`,children:_jsx(_components.p,{children:`Optional folder path where generated images will be saved`})}),`\n`,_jsx(Heading,{level:`2`,id:`image-analysis-with-vision-api`,children:`Image Analysis with Vision API`}),`\n`,_jsx(Card,{title:`POST /image-analysis`,icon:`magnifying-glass`,iconType:`duotone`,children:_jsx(_components.p,{children:`Analyze images using AI vision capabilities`})}),`\n`,_jsx(_components.p,{children:`Analyzes images using OpenAI’s Vision API to extract information, measurements, and insights.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-4`,children:`Request`}),`\n`,_jsx(Tabs,{children:_jsx(Tab,{title:`cURL`,id:`curl-4`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.productflo.io/image-analysis`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Analyze this circuit board and identify all components\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference_image\": \"https://example.com/circuit_board.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-5`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-4`,children:_jsx(_components.p,{children:`The question or instruction for analyzing the image`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-2`,children:_jsx(_components.p,{children:`URL to the image to be analyzed`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-4`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:_jsx(_components.p,{children:`Status of the operation (COMPLETED, PROCESSING, ERROR)`})}),`\n`,_jsx(ResponseField,{name:`analysis`,type:`string`,id:`param-analysis`,children:_jsx(_components.p,{children:`Detailed analysis of the image based on the prompt`})}),`\n`,_jsx(ResponseField,{name:`error_message`,type:`string`,id:`param-error-message-1`,children:_jsx(_components.p,{children:`Error message if analysis failed`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`Timestamp of when the analysis was performed`})}),`\n`,_jsx(Heading,{level:`2`,id:`recraft-image-processing`,children:`Recraft Image Processing`}),`\n`,_jsx(_components.p,{children:`ProductFlo integrates with Recraft AI for specialized image processing tasks.`}),`\n`,_jsx(Heading,{level:`3`,id:`vectorize-image`,children:`Vectorize Image`}),`\n`,_jsx(Card,{title:`POST /recraft-vectorize`,icon:`bezier-curve`,iconType:`duotone`,children:_jsx(_components.p,{children:`Convert raster images to vector graphics`})}),`\n`,_jsx(_components.p,{children:`Converts raster images to scalable vector graphics (SVG) format.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-6`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-5`,children:_jsx(_components.p,{children:`Optional text description to guide the vectorization`})}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-3`,children:_jsx(_components.p,{children:`URL to the image to be vectorized`})}),`\n`,_jsx(Heading,{level:`3`,id:`remove-background`,children:`Remove Background`}),`\n`,_jsx(Card,{title:`POST /recraft-remove-background`,icon:`object-subtract`,iconType:`duotone`,children:_jsx(_components.p,{children:`Remove backgrounds from images`})}),`\n`,_jsx(_components.p,{children:`Automatically removes the background from an image, producing a transparent PNG.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-7`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`reference_image`,type:`string`,required:true,id:`param-reference-image-4`,children:_jsx(_components.p,{children:`URL to the image to process`})}),`\n`,_jsx(Heading,{level:`3`,id:`upscale-image`,children:`Upscale Image`}),`\n`,_jsx(Card,{title:`POST /recraft-upscale`,icon:`expand`,iconType:`duotone`,children:_jsx(_components.p,{children:`Enhance image resolution`})}),`\n`,_jsx(_components.p,{children:`Upscales an image to higher resolution while preserving quality.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-8`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`image_path`,type:`string`,required:true,id:`param-image-path`,children:_jsx(_components.p,{children:`Path to the source image`})}),`\n`,_jsx(ParamField,{body:`scale_factor`,type:`integer`,default:2,id:`param-scale-factor`,children:_jsx(_components.p,{children:`Upscaling factor (1-4)`})}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,default:`clarity`,id:`param-mode`,children:_jsx(_components.p,{children:`Upscaling mode (clarity or generative)`})}),`\n`,_jsx(Heading,{level:`2`,id:`custom-ai-styles`,children:`Custom AI Styles`}),`\n`,_jsx(Heading,{level:`3`,id:`create-custom-style`,children:`Create Custom Style`}),`\n`,_jsx(Card,{title:`POST /recraft-create-style`,icon:`palette`,iconType:`duotone`,children:_jsx(_components.p,{children:`Create a custom image generation style`})}),`\n`,_jsx(_components.p,{children:`Creates a custom style from reference images that can be used for future generations.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-9`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Name for the custom style`})}),`\n`,_jsx(ParamField,{body:`reference_images`,type:`array`,required:true,id:`param-reference-images`,children:_jsx(_components.p,{children:`List of paths to reference images`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Optional style description`})}),`\n`,_jsx(Heading,{level:`3`,id:`list-styles`,children:`List Styles`}),`\n`,_jsx(Card,{title:`GET /recraft-list-styles`,icon:`list`,iconType:`duotone`,children:_jsx(_components.p,{children:`List available custom styles`})}),`\n`,_jsx(_components.p,{children:`Returns a list of all available custom styles.`}),`\n`,_jsx(Heading,{level:`3`,id:`get-style`,children:`Get Style`}),`\n`,_jsx(Card,{title:`GET /recraft-get-style/{style_id}`,icon:`brush`,iconType:`duotone`,children:_jsx(_components.p,{children:`Get details of a specific custom style`})}),`\n`,_jsx(_components.p,{children:`Returns details about a specific custom style.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Image Generation","description":"AI-powered image generation endpoints","href":"/api-reference/ai/image-generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"AI Image Generation","slug":"ai-image-generation","depth":1,"children":[]},{"title":"Image Generation Models","slug":"image-generation-models","depth":2,"children":[]},{"title":"Generate Images with DALL-E","slug":"generate-images-with-dall-e","depth":2,"children":[{"title":"Request","slug":"request","depth":3,"children":[]},{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]},{"title":"Generate Images with Stability AI","slug":"generate-images-with-stability-ai","depth":2,"children":[{"title":"Request","slug":"request-2","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-2","depth":3,"children":[]},{"title":"Response","slug":"response-2","depth":3,"children":[]}]},{"title":"Generate Product Photos","slug":"generate-product-photos","depth":2,"children":[{"title":"Request","slug":"request-3","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-3","depth":3,"children":[]},{"title":"Response","slug":"response-3","depth":3,"children":[]}]},{"title":"Generate Product Mockups","slug":"generate-product-mockups","depth":2,"children":[{"title":"Request Body","slug":"request-body-4","depth":3,"children":[]}]},{"title":"Image Analysis with Vision API","slug":"image-analysis-with-vision-api","depth":2,"children":[{"title":"Request","slug":"request-4","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-5","depth":3,"children":[]},{"title":"Response","slug":"response-4","depth":3,"children":[]}]},{"title":"Recraft Image Processing","slug":"recraft-image-processing","depth":2,"children":[{"title":"Vectorize Image","slug":"vectorize-image","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-6","depth":3,"children":[]},{"title":"Remove Background","slug":"remove-background","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-7","depth":3,"children":[]},{"title":"Upscale Image","slug":"upscale-image","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-8","depth":3,"children":[]}]},{"title":"Custom AI Styles","slug":"custom-ai-styles","depth":2,"children":[{"title":"Create Custom Style","slug":"create-custom-style","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-9","depth":3,"children":[]},{"title":"List Styles","slug":"list-styles","depth":3,"children":[]},{"title":"Get Style","slug":"get-style","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A photorealistic smart thermostat with a touch screen interface, modern design\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"nbr_images\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"folder_path\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"projects/thermostats\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"COMPLETED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"generated_images\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.productflo.io/global/projects/thermostats/image_1.png\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.productflo.io/global/projects/thermostats/image_2.png\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.productflo.io/global/projects/thermostats/image_3.png\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error_message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-05-01T12:34:56.789Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"productfloio","siteName":"ProductFlo API Documentation","title":"Image Generation - ProductFlo API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:06:29.767Z","originalFileLocation":"api-reference/ai/image-generation.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=\"AI-powered image generation endpoints\">\u003cmeta data-mint-head name=\"application-name\" content=\"ProductFlo API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/productfloio/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/productfloio/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/productfloio/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/productfloio/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Image Generation - ProductFlo API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"AI-powered image generation endpoints\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ProductFlo API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.productflo.io/api-reference/ai/image-generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://productfloio.mintlify.site/_mintlify/api/og/v2?division=AI+Features\u0026amp;title=Image+Generation\u0026amp;description=AI-powered+image+generation+endpoints\u0026amp;theme=8204ec0c8eae09feeef4fc4f\u0026amp;signature=6ef809415f229bc5cb22f4f1a8a012dcb26ba5996b61a877ccdf67ad0928f286\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Image Generation - ProductFlo API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"AI-powered image generation endpoints\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://productfloio.mintlify.site/_mintlify/api/og/v2?division=AI+Features\u0026amp;title=Image+Generation\u0026amp;description=AI-powered+image+generation+endpoints\u0026amp;theme=8204ec0c8eae09feeef4fc4f\u0026amp;signature=6ef809415f229bc5cb22f4f1a8a012dcb26ba5996b61a877ccdf67ad0928f286\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/productfloio/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ProductFlo API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00d1b8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.productflo.io/api-reference/ai/image-generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/ai/image-generation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.productflo.io/#organization\",\"name\":\"ProductFlo API Documentation\",\"url\":\"https://docs.productflo.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/productfloio/bo293HgBAQ_o0zgL/logo/light.svg?fit=max\u0026auto=format\u0026n=bo293HgBAQ_o0zgL\u0026q=85\u0026s=c36ca3147f4ec606a213bbbbaa89c541\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.productflo.io#website\",\"name\":\"ProductFlo API Documentation\",\"url\":\"https://docs.productflo.io\",\"publisher\":{\"@id\":\"https://docs.productflo.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.productflo.io/api-reference/ai/image-generation#webpage\",\"url\":\"https://docs.productflo.io/api-reference/ai/image-generation\",\"name\":\"Image Generation\",\"description\":\"AI-powered image generation endpoints\",\"dateModified\":\"2026-01-07T08:06:29.767Z\",\"isPartOf\":{\"@id\":\"https://docs.productflo.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.productflo.io/api-reference/ai/image-generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.productflo.io/api-reference/ai/image-generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ProductFlo API Documentation\",\"item\":\"https://docs.productflo.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Image Generation\",\"item\":\"https://docs.productflo.io/api-reference/ai/image-generation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.productflo.io/api-reference/ai/image-generation#article\",\"headline\":\"Image Generation\",\"name\":\"Image Generation\",\"description\":\"AI-powered image generation endpoints\",\"url\":\"https://docs.productflo.io/api-reference/ai/image-generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.productflo.io/api-reference/ai/image-generation#webpage\"},\"dateModified\":\"2026-01-07T08:06:29.767Z\",\"publisher\":{\"@id\":\"https://docs.productflo.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.productflo.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ProductFlo API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ProductFlo API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/ai/image-generation.md","siteName":"ProductFlo API Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Wearer-Lab/productflo-api"},{"anchor":"ProductFlo","icon":"building","href":"https://productflo.io"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Introduction","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Authentication","pages":[{"title":"Login","href":"/api-reference/authentication/login"},{"title":"Sign Up","href":"/api-reference/authentication/signup"},{"title":"Refresh","href":"/api-reference/authentication/refresh"},{"title":"Oauth","href":"/api-reference/authentication/oauth"}]},{"group":"Core Resources","pages":[{"title":"Profile","href":"/api-reference/core/profile"},{"title":"Team","href":"/api-reference/core/team"},{"title":"Tenant","href":"/api-reference/core/tenant"},{"title":"Product","href":"/api-reference/core/product"},{"title":"Conversation","href":"/api-reference/core/conversation"}]},{"group":"File Management","pages":[{"title":"Upload","href":"/api-reference/files/upload"},{"title":"Download","href":"/api-reference/files/download"},{"title":"Revision","href":"/api-reference/files/revision"}]},{"group":"AI Features","pages":[{"title":"Image Generation","href":"/api-reference/ai/image-generation"},{"title":"3d generation","href":"/api-reference/ai/3d-generation"},{"title":"Cad generation","href":"/api-reference/ai/cad-generation"},{"title":"Audio processing","href":"/api-reference/ai/audio-processing"},{"title":"Copilot","href":"/api-reference/ai/copilot"}]},{"group":"Integrations","pages":[{"title":"Autodesk","href":"/api-reference/integrations/autodesk"},{"title":"Gdrive","href":"/api-reference/integrations/gdrive"}]},{"group":"WebSockets","pages":[{"title":"WebSocket Introduction","href":"/api-reference/websockets/introduction"},{"title":"Message Types","href":"/api-reference/websockets/message-types"},{"title":"Chat Communication","href":"/api-reference/websockets/chat"},{"title":"AI Communication","href":"/api-reference/websockets/ai-communication"}]},{"group":"Payments","pages":[{"title":"Subscription","href":"/api-reference/payments/subscription"},{"title":"Payment methods","href":"/api-reference/payments/payment-methods"}]}]}]},"basePath":"","title":"Image Generation - ProductFlo API Documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["2b790eda92"],"chunks":["ApiExamples-DTsgtCEj.js","utils-BMo572L7.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js"]}