The ID of the model. Must be 'flux-kontext-dev' for Flux Kontext model.
prompt
string
required
A text description of the things you want in the generated image, referencing elements from the input images.
init_image
string<uri>
required
URL of the primary reference image to use as a base for the generation.
negative_prompt
string
Items you don't want in the image. Helps exclude unwanted elements, artifacts, or styles from the generation.
init_image_2
string<uri>
URL of the secondary reference image to incorporate elements from. Optional for single-image workflows.
safety_checker
boolean
Whether to run the safety checker
num_inference_steps
integerstring
default:28
The number of denoising steps. Values typically range from 1 to 50. Can be provided as integer or string.
Required range: 1 <= x <= 50
strength
numberstring
default:0.5
Controls how much the output image should resemble the input image. 0.0 means identical to input, 1.0 means completely different. Can be provided as number or string.
Required range: 0 <= x <= 1
guidance
numberstring
default:2.5
Scale for classifier-free guidance. Higher values make the model follow the prompt more closely. Can be provided as number or string.
Required range: 0 <= x <= 20
enhance_prompt
boolean | null
Enhance prompts for better results. Set to null to use model defaults.
width
integer
default:512
The width of the output image in pixels. Maximum value is 1024.
Required range: x <= 1024
height
integer
default:512
The height of the output image in pixels. Maximum value is 1024.
Required range: x <= 1024
samples
integer
default:1
The number of images to be returned in response. Maximum value is 4.
Required range: x <= 4
seed
integer | null
Used to reproduce results. The same seed will generate the same image again. Pass null for a random number.
base64
boolean
default:false
Get response as a base64 string.
webhook
string<uri>
URL to receive a POST API call once image generation is complete.
track_id
string
This ID is returned in the response to the webhook API call and is used to identify the webhook request.
temp
boolean
default:false
Create a temporary image link valid for 24 hours.
Response
Flux Kontext Image to Image generation response
Option 1
Option 2
Option 3
status
enum<string>
Status of the image generation.
Available options:
success
generationTime
number
Time taken to generate the image in seconds.
id
integer
Unique identifier for the image generation request.
output
string<uri>[]
Array of generated image URLs.
proxy_links
string<uri>[]
Array of proxy image URLs.
meta
object
Metadata about the image generation including all parameters used.
nsfw_content_detected
boolean
Indicates if NSFW content was detected in the generated image.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"ModelsLab","colors":{"primary":"#2563EB","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/mod/K2SxrSj_FZT4-cDs/logo/logo_new_light.png?fit=max\u0026auto=format\u0026n=K2SxrSj_FZT4-cDs\u0026q=85\u0026s=39afd25fd573ee6d8bd684d536c3f565","dark":"https://mintcdn.com/mod/K2SxrSj_FZT4-cDs/logo/logo_new_dark.png?fit=max\u0026auto=format\u0026n=K2SxrSj_FZT4-cDs\u0026q=85\u0026s=4f3641baf022bad1a5df5473c290cba0"},"favicon":"https://mintcdn.com/mod/Xe_I2k0P2zG5615S/favicon.png?fit=max\u0026auto=format\u0026n=Xe_I2k0P2zG5615S\u0026q=85\u0026s=eee181ec7ba56d1b0b8db87887c8be28","appearance":{"default":"system"},"background":{"color":{"light":"#FFFFFF","dark":"#111827"}},"navbar":{"links":[{"icon":"discord","href":"https://discord.com/invite/modelslab-1033301189254729748","label":"Discord","type":"discord"}],"primary":{"type":"button","label":"modelslab.com","href":"https://modelslab.com?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}},"footer":{"socials":{"x":"https://x.com/ModelsLabAI","github":"https://github.com/ModelsLab","linkedin":"https://www.linkedin.com/company/stablediffusion"},"links":[{"header":"Resources","items":[{"label":"API Reference","href":"/api-reference"},{"label":"Quickstart Guide","href":"/quickstart"},{"label":"Client SDKs","href":"/sdk/python"},{"label":"Playground","href":"https://modelslab.com/playground?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}]},{"header":"Company","items":[{"label":"ModelsLab","href":"https://modelslab.com?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"},{"label":"Pricing","href":"https://modelslab.com/pricing?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"},{"label":"Enterprise","href":"https://modelslab.com/enterprise?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"},{"label":"Support","href":"https://modelslab.com/support?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}]},{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://modelslab.com/privacy-policy?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"},{"label":"Terms of Service","href":"https://modelslab.com/terms-of-service?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}]}]},"fonts":{"family":"Geist","weight":400},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"banner":{"content":"⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · [Try Now](https://modelslab.com/models/modelslab/flux-klien-9B?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=banner)","dismissible":true},"contextual":{"options":["claude","copy","view","chatgpt","mcp","cursor","vscode",{"title":"Join our Discord","description":"Get help and share feature requests with the ModelsLab community.","icon":"discord","href":"https://discord.com/invite/modelslab-1033301189254729748"}],"display":"header"},"metadata":{"timestamp":false},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"headset","href":"https://modelslab.com/support?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mod","hasAudioNarration":false,"actualSubdomain":"mod","customDomains":["docs.modelslab.com"],"gitSource":{"type":"github","owner":"modelslab","repo":"docs-v2","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"edits":true,"agentFeedback":true},"entitlements":{},"buildId":"6ad1b9dc6468b56f672863e8","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Enterprise API","count":299},{"language":"default","tag":"Enterprise APIs","count":299},{"language":"default","tag":"API Reference","count":140},{"language":"default","tag":"Our AI APIs","count":139},{"language":"default","tag":"Image generation API","count":42},{"language":"default","tag":"Image Editing API","count":32},{"language":"default","tag":"Developer Guide","count":31},{"language":"default","tag":"Interior API","count":24},{"language":"default","tag":"Pony Model API","count":21},{"language":"default","tag":"Text to Image API","count":21}],"searchSettings":{"maxResults":10}},"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geist/v5/gyByhwUxId8gMEwRGFWfOw.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geist/v5/gyByhwUxId8gMEwYGFWfOw.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geist/v5/gyByhwUxId8gMEwTGFWfOw.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geist/v5/gyByhwUxId8gMEwSGFWfOw.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n*{font-family:\"Geist\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n \"Helvetica Neue\", Arial, sans-serif!important}h1,h2,h3,h4,h5,h6{font-family:\"Geist\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n \"Helvetica Neue\", Arial, sans-serif!important;font-weight:600!important}p,span,div,li,a{font-family:\"Geist\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n \"Helvetica Neue\", Arial, sans-serif!important;font-weight:400!important}code,pre{font-family:\"Geist Mono\", \"Monaco\", \"Cascadia Code\", \"Roboto Mono\", Consolas,\n \"Courier New\", monospace!important}::-webkit-scrollbar{width:6px;height:6px;background-color:transparent}::-webkit-scrollbar-thumb{background-color:#d7e6ff;border-radius:12px}.dark ::-webkit-scrollbar-thumb{background-color:#868686;border-radius:12px}.custom-button{border:1px solid #0051ff;padding:5px 20px;border-radius:20px;height:40px;transition:500ms}.custom-button:hover{background-color:#0051ff;color:white;cursor:pointer}.custom-button p{margin-top:0;margin-bottom:0}.dark select option{background-color:#131313!important}.badge-new{display:inline-block;padding:2px 6px;font-size:10px;font-weight:500;background-color:#dbeafe;color:#1d4ed8;border-radius:4px;margin-left:8px;vertical-align:middle}.dark .badge-new{background-color:#1e3a8a;color:#93c5fd}#banner{background:linear-gradient(\n 110deg,\n #0a1628,\n #0d1f3c,\n #0f2d52,\n #0e3d6e,\n #0d4f8a,\n #1a6bb5,\n #2563eb,\n #1a6bb5,\n #0d4f8a,\n #0e3d6e,\n #0f2d52,\n #0d1f3c,\n #0a1628\n );background-size:200% 100%;animation:elegantFlow 20s ease-in-out infinite;position:relative;color:rgb(255, 255, 255);padding:12px 20px;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}#banner::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.1),\n transparent\n );animation:shine 6s ease-in-out infinite}@keyframes elegantFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes shine{0%{left:-100%}50%,100%{left:100%}}#banner *{color:white}#banner strong{font-weight:700}#banner a{text-decoration:underline;font-weight:500}#banner a:hover{opacity:0.8}"}],"page":{"pagePath":"image-editing/flux-kontext-img-to-image","slug":"/image-editing/flux-kontext-img-to-image","pageMetadata":{"title":"Flux kontext Image to Image","openapi":"POST /images/img2img","description":"Create high quality image from text using FLUX Kontext model.","href":"/image-editing/flux-kontext-img-to-image"},"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: \"Create high quality image from text using FLUX Kontext model.\"\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},{CodeBlock,Heading,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=bcb4615889963132d06bd5293e8e6684`,alt:`Text to image endpoint result`,\"data-og-width\":`691`,width:`691`,\"data-og-height\":`518`,height:`518`,\"data-path\":`images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=fdb0c6b938b8075896cd40409f87b5c2 280w, https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=dc88927447046a6c2d8c5b71e49eaa29 560w, https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=11a727627c184e8f9b01acbe39dfc103 840w, https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=a3fd34a0bf027834b6f8f1de0bc39c1f 1100w, https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=75e8f27f5c01a4eb5db2963bd5940b3a 1650w, https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-generation/flux/assets/images/Text-to-image-1-a226305d52e197b14c4cc0b1534ea06c.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=i8dYICFkuz1vpdrI\u0026q=85\u0026s=c76295de390c03aea031a40dcc1d5ee6 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsxs(_components.p,{children:[`Make a `,_jsx(_components.code,{children:`POST`}),` request to below endpoint and pass the required parameters as a request body.`]}),`\n`,_jsx(CodeBlock,{filename:`curl`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`--request POST 'https://modelslab.com/api/v6/images/img2img' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(CodeBlock,{filename:`json`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"your_api_key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"init_image\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://assets.modelslab.ai/generations/197fdb87-3d94-4a3d-bf2b-6c1b2a73a623\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"init_image_2\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/output.jpg\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"a girl from image one holding the can from image two\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"negative_prompt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"model_id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"flux-kontext-dev\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"num_inference_steps\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"28\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"safety_checker\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"strength\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"0.5\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"guidance\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"2.5\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"enhance_prompt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Flux kontext Image to Image","openapi":"POST /images/img2img","description":"Create high quality image from text using FLUX Kontext model.","href":"/image-editing/flux-kontext-img-to-image"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mod/6eb2aa98c83cfebc/scripts/jsonld.js"],"openApiReferenceData":{"operation":{"summary":"Generate image from text and reference images (Flux Kontext Model)","description":"Create high quality image from text using FLUX Kontext model.","requestBody":"b88ce8b2-46dc-41bb-96d4-999ad2fec648","responses":{"200":"43439330-ae69-4258-946d-640d1c2ec94b","400":"134f29c4-c20c-47ac-b7e9-27b841dcccdf","401":"cf7f3c09-3026-4ade-bbf8-5faef1ab737c","500":"c70fdfa0-d742-4a10-a2f6-431dc81f3f36"},"method":"post","type":"path","servers":["227204d6-6fa8-433f-8447-fd11c1d4f40d"],"security":[],"path":"/images/img2img","baseUrlOptions":["https://modelslab.com/api/v6"],"title":"Generate image from text and reference images (Flux Kontext Model)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key","model_id","prompt","init_image"],"properties":{"key":{"type":"string","description":"Your API Key used for request authorization.","isRequired":true,"uniqueKey":"key","typeLabel":"string"},"model_id":{"type":"string","description":"The ID of the model. Must be 'flux-kontext-dev' for Flux Kontext model.","default":"flux-kontext-dev","isRequired":true,"uniqueKey":"model_id","typeLabel":"string"},"prompt":{"type":"string","description":"A text description of the things you want in the generated image, referencing elements from the input images.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"init_image":{"type":"string","format":"uri","description":"URL of the primary reference image to use as a base for the generation.","isRequired":true,"uniqueKey":"init_image","typeLabel":"string\u003curi>"},"negative_prompt":{"type":"string","description":"Items you don't want in the image. Helps exclude unwanted elements, artifacts, or styles from the generation.","uniqueKey":"negative_prompt","typeLabel":"string"},"init_image_2":{"type":"string","format":"uri","description":"URL of the secondary reference image to incorporate elements from. Optional for single-image workflows.","uniqueKey":"init_image_2","typeLabel":"string\u003curi>"},"safety_checker":{"type":"boolean","description":"Whether to run the safety checker","uniqueKey":"safety_checker","typeLabel":"boolean"},"num_inference_steps":{"oneOf":[{"type":"integer","description":"The number of denoising steps. Values typically range from 1 to 50. Can be provided as integer or string.","default":"28","maximum":50,"minimum":1,"uniqueKey":"num_inference_steps.oneOf.0","typeLabel":"integer"},{"type":"string","description":"The number of denoising steps. Values typically range from 1 to 50. Can be provided as integer or string.","default":"28","pattern":"^[1-9][0-9]*$","uniqueKey":"num_inference_steps.oneOf.1","typeLabel":"string"}],"uniqueKey":"num_inference_steps","typeLabel":"integer | string"},"strength":{"oneOf":[{"type":"number","description":"Controls how much the output image should resemble the input image. 0.0 means identical to input, 1.0 means completely different. Can be provided as number or string.","default":"0.5","maximum":1,"minimum":0,"uniqueKey":"strength.oneOf.0","typeLabel":"number"},{"type":"string","description":"Controls how much the output image should resemble the input image. 0.0 means identical to input, 1.0 means completely different. Can be provided as number or string.","default":"0.5","pattern":"^0(\\.[0-9]+)?$|^1(\\.0+)?$","uniqueKey":"strength.oneOf.1","typeLabel":"string"}],"uniqueKey":"strength","typeLabel":"number | string"},"guidance":{"oneOf":[{"type":"number","description":"Scale for classifier-free guidance. Higher values make the model follow the prompt more closely. Can be provided as number or string.","default":"2.5","maximum":20,"minimum":0,"uniqueKey":"guidance.oneOf.0","typeLabel":"number"},{"type":"string","description":"Scale for classifier-free guidance. Higher values make the model follow the prompt more closely. Can be provided as number or string.","default":"2.5","pattern":"^([0-9]*[.])?[0-9]+$","uniqueKey":"guidance.oneOf.1","typeLabel":"string"}],"uniqueKey":"guidance","typeLabel":"number | string"},"enhance_prompt":{"oneOf":[{"type":"boolean","description":"Enhance prompts for better results. Set to null to use model defaults.","uniqueKey":"enhance_prompt.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Enhance prompts for better results. Set to null to use model defaults.","uniqueKey":"enhance_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"enhance_prompt","typeLabel":"boolean | null"},"width":{"type":"integer","default":512,"maximum":1024,"description":"The width of the output image in pixels. Maximum value is 1024.","uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","default":512,"maximum":1024,"description":"The height of the output image in pixels. Maximum value is 1024.","uniqueKey":"height","typeLabel":"integer"},"samples":{"type":"integer","default":1,"maximum":4,"description":"The number of images to be returned in response. Maximum value is 4.","uniqueKey":"samples","typeLabel":"integer"},"seed":{"oneOf":[{"type":"integer","description":"Used to reproduce results. The same seed will generate the same image again. Pass null for a random number.","uniqueKey":"seed.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Used to reproduce results. The same seed will generate the same image again. Pass null for a random number.","uniqueKey":"seed.oneOf.1","typeLabel":"null"}],"uniqueKey":"seed","typeLabel":"integer | null"},"base64":{"type":"boolean","default":false,"description":"Get response as a base64 string.","uniqueKey":"base64","typeLabel":"boolean"},"webhook":{"type":"string","format":"uri","description":"URL to receive a POST API call once image generation is complete.","uniqueKey":"webhook","typeLabel":"string\u003curi>"},"track_id":{"type":"string","description":"This ID is returned in the response to the webhook API call and is used to identify the webhook request.","uniqueKey":"track_id","typeLabel":"string"},"temp":{"type":"boolean","default":false,"description":"Create a temporary image link valid for 24 hours.","uniqueKey":"temp","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"key":"\u003cstring>","model_id":"flux-kontext-dev","prompt":"\u003cstring>","init_image":"\u003cstring>","negative_prompt":"\u003cstring>","init_image_2":"\u003cstring>","safety_checker":true,"num_inference_steps":"28","strength":"0.5","guidance":"2.5","enhance_prompt":true,"width":512,"height":512,"samples":1,"seed":123,"base64":false,"webhook":"\u003cstring>","track_id":"\u003cstring>","temp":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"43439330-ae69-4258-946d-640d1c2ec94b":{"description":"Flux Kontext Image to Image generation response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success"],"description":"Status of the image generation.","uniqueKey":"oneOf.0.status","typeLabel":"enum\u003cstring>"},"generationTime":{"type":"number","description":"Time taken to generate the image in seconds.","uniqueKey":"oneOf.0.generationTime","typeLabel":"number"},"id":{"type":"integer","description":"Unique identifier for the image generation request.","uniqueKey":"oneOf.0.id","typeLabel":"integer"},"output":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"oneOf.0.output.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Array of generated image URLs.","uniqueKey":"oneOf.0.output","typeLabel":"string\u003curi>[]"},"proxy_links":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"oneOf.0.proxy_links.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Array of proxy image URLs.","uniqueKey":"oneOf.0.proxy_links","typeLabel":"string\u003curi>[]"},"meta":{"type":"object","description":"Metadata about the image generation including all parameters used.","additionalProperties":true,"uniqueKey":"oneOf.0.meta","typeLabel":"object"},"nsfw_content_detected":{"type":"boolean","description":"Indicates if NSFW content was detected in the generated image.","uniqueKey":"oneOf.0.nsfw_content_detected","typeLabel":"boolean"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","properties":{"status":{"type":"string","enum":["processing"],"description":"Status of the image generation.","uniqueKey":"oneOf.1.status","typeLabel":"enum\u003cstring>"},"tip":{"type":"string","description":"Information about faster processing options.","uniqueKey":"oneOf.1.tip","typeLabel":"string"},"eta":{"type":"number","description":"Estimated time for completion in seconds.","uniqueKey":"oneOf.1.eta","typeLabel":"number"},"message":{"type":"string","description":"Processing status message.","uniqueKey":"oneOf.1.message","typeLabel":"string"},"fetch_result":{"type":"string","format":"uri","description":"URL to fetch the result when processing.","uniqueKey":"oneOf.1.fetch_result","typeLabel":"string\u003curi>"},"id":{"type":"integer","description":"Unique identifier for the image generation request.","uniqueKey":"oneOf.1.id","typeLabel":"integer"},"output":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.output.items.[INDEX]","typeLabel":"string"},"description":"Empty array during processing.","uniqueKey":"oneOf.1.output","typeLabel":"string[]"},"meta":{"type":"object","description":"Metadata about the image generation including all parameters used.","additionalProperties":true,"uniqueKey":"oneOf.1.meta","typeLabel":"object"},"future_links":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"oneOf.1.future_links.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Array of future image URLs for queued requests.","uniqueKey":"oneOf.1.future_links","typeLabel":"string\u003curi>[]"},"proxy_links":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"oneOf.1.proxy_links.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Array of proxy image URLs.","uniqueKey":"oneOf.1.proxy_links","typeLabel":"string\u003curi>[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"oneOf.2.status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message description.","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"success","generationTime":123,"id":123,"output":["\u003cstring>"],"proxy_links":["\u003cstring>"],"meta":{},"nsfw_content_detected":true}}},"exampleType":"generated"}},"exampleType":"generated"},"134f29c4-c20c-47ac-b7e9-27b841dcccdf":{"description":"Standard error response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cf7f3c09-3026-4ade-bbf8-5faef1ab737c":{"description":"Standard error response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c70fdfa0-d742-4a10-a2f6-431dc81f3f36":{"description":"Standard error response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"227204d6-6fa8-433f-8447-fd11c1d4f40d":{"url":"https://modelslab.com/api/v6","description":"Image Editing API v6 server"}}},"originalFileLocation":"image-editing/openapi.json"},"subdomain":"mod","siteName":"ModelsLab","title":"Flux kontext Image to Image - ModelsLab","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-14T05:37:14.062Z","originalFileLocation":"image-editing/flux-kontext-img-to-image.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=\"Create high quality image from text using FLUX Kontext model.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ModelsLab\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Flux kontext Image to Image - ModelsLab\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create high quality image from text using FLUX Kontext model.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ModelsLab\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mod.mintlify.site/_mintlify/api/og/v2?division=Image+Editing+API\u0026amp;title=Flux+kontext+Image+to+Image\u0026amp;description=Create+high+quality+image+from+text+using+FLUX+Kontext+model.\u0026amp;theme=fab5815c3143e9e8890e778d\u0026amp;signature=476174f631c29ca183dbd3b75dc38eb458eb896d3dde85420c4ad7ad096327f1\">\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=\"Flux kontext Image to Image - ModelsLab\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create high quality image from text using FLUX Kontext model.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mod.mintlify.site/_mintlify/api/og/v2?division=Image+Editing+API\u0026amp;title=Flux+kontext+Image+to+Image\u0026amp;description=Create+high+quality+image+from+text+using+FLUX+Kontext+model.\u0026amp;theme=fab5815c3143e9e8890e778d\u0026amp;signature=476174f631c29ca183dbd3b75dc38eb458eb896d3dde85420c4ad7ad096327f1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mod/v3agxNKiEqN-iR8a/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ModelsLab\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/image-editing/flux-kontext-img-to-image.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.modelslab.com/#organization\",\"name\":\"ModelsLab\",\"url\":\"https://docs.modelslab.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mod/K2SxrSj_FZT4-cDs/logo/logo_new_light.png?fit=max\u0026auto=format\u0026n=K2SxrSj_FZT4-cDs\u0026q=85\u0026s=39afd25fd573ee6d8bd684d536c3f565\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.modelslab.com#website\",\"name\":\"ModelsLab\",\"url\":\"https://docs.modelslab.com\",\"publisher\":{\"@id\":\"https://docs.modelslab.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image#webpage\",\"url\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image\",\"name\":\"Flux kontext Image to Image\",\"description\":\"Create high quality image from text using FLUX Kontext model.\",\"dateModified\":\"2026-07-14T05:37:14.062Z\",\"isPartOf\":{\"@id\":\"https://docs.modelslab.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Our AI APIs\",\"item\":\"https://docs.modelslab.com/workflows-api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Image Editing API\",\"item\":\"https://docs.modelslab.com/image-editing/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Flux kontext Image to Image\",\"item\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image#apireference\",\"headline\":\"Flux kontext Image to Image\",\"name\":\"Flux kontext Image to Image\",\"description\":\"Create high quality image from text using FLUX Kontext model.\",\"url\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image\",\"mainEntityOfPage\":{\"@id\":\"https://docs.modelslab.com/image-editing/flux-kontext-img-to-image#webpage\"},\"dateModified\":\"2026-07-14T05:37:14.062Z\",\"publisher\":{\"@id\":\"https://docs.modelslab.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.modelslab.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ModelsLab\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ModelsLab\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/image-editing/flux-kontext-img-to-image.md","siteName":"ModelsLab","nav":{"global":{"anchors":[{"anchor":"Support","icon":"headset","href":"https://modelslab.com/support?utm_source=docs.modelslab.com\u0026utm_medium=referral\u0026utm_campaign=docs\u0026utm_content=nav"}]},"tabs":[{"tab":"Developer Guide","pages":[{"title":"Developer Guide","href":""}]},{"tab":"API Reference","groups":[{"group":"Using the APIs","pages":[{"title":"API Reference","href":"/api-reference"}]},{"group":"Our AI APIs","pages":[{"group":"Workflows API","pages":[{"title":"Workflows API","href":"/workflows-api/overview"},{"title":"List Workflows","api":"GET https://modelslab.com/api/v1/workflows","href":"/workflows-api/list-workflows"},{"title":"Get Workflow Schema","api":"GET https://modelslab.com/api/v1/workflows/{workflow_id}","href":"/workflows-api/get-workflow-schema"},{"title":"Run Workflow","api":"POST https://modelslab.com/api/v1/workflows/{workflow_id}/run","href":"/workflows-api/run-workflow"},{"title":"Get Execution Status","api":"GET https://modelslab.com/api/v1/workflows/{workflow_id}/runs/{execution_id}","href":"/workflows-api/get-execution-status"},{"title":"Cancel Execution","api":"POST https://modelslab.com/api/v1/workflows/{workflow_id}/runs/{execution_id}/cancel","href":"/workflows-api/cancel-execution"},{"title":"Examples","href":"/workflows-api/examples"}]},{"group":" Video API","pages":[{"title":"Video Generation API","href":"/video-api/overview"},{"title":"Watermark Remover","openapi":"POST /video/watermark_remover","href":"/video-api/watermark-remover"},{"title":"Text to Video","openapi":"POST /video/text2video","href":"/video-api/text-to-video"},{"title":"Image to Video","openapi":"POST /video/img2video","href":"/video-api/img-to-video"},{"title":"Video to Video","openapi":"POST /video/video2video","hidden":true,"href":"/video-api/video-to-video"},{"title":"Text to Video Ultra","openapi":"POST /video/text2video_ultra","href":"/video-api/text-to-video-ultra"},{"title":"Image to Video Ultra","openapi":"POST /video/img2video_ultra","href":"/video-api/image-to-video-ultra"},{"title":"ControlNet Video","openapi":"POST /video/controlnet","href":"/video-api/controlnet"},{"title":"Base64 to URL","openapi":"POST /video/base64_to_url","href":"/video-api/base64-to-url"},{"title":"Video Batch","openapi":"POST /video/batch","href":"/video-api/video-batch"},{"title":"Fetch Video","openapi":"POST /video/fetch/{id}","href":"/video-api/fetch-video"},{"title":"Fetch Video Batch","openapi":"POST /video/batch/fetch/{id}","href":"/video-api/fetch-video-batch"}]},{"group":"Image generation API","pages":[{"title":"Image Generation API","href":"/image-generation/overview"},{"group":"Realtime Stable Diffusion","pages":[{"title":"Realtime Stable Diffusion API","href":"/image-generation/realtime-stable-diffusion/overview"},{"title":"Text to Image","openapi":"POST /realtime/text2img","href":"/image-generation/realtime-stable-diffusion/text-to-image"},{"title":"Image to Image","openapi":"POST /realtime/img2img","href":"/image-generation/realtime-stable-diffusion/image-to-image"},{"title":"Inpainting","openapi":"POST /realtime/inpaint","href":"/image-generation/realtime-stable-diffusion/inpaint"},{"title":"Fetch Image","openapi":"POST /realtime/fetch/{id}","href":"/image-generation/realtime-stable-diffusion/fetchimage"}]},{"group":"Flux","pages":[{"title":"FLUX Image Generation API","href":"/image-generation/flux/overview"},{"title":"Text to Image","openapi":"POST /text2img","href":"/image-generation/flux/flux-text-to-image"}]},{"group":"HiDream O1","pages":[{"title":"HiDream O1 Image Generation API","href":"/image-generation/hidream-o1/overview"},{"title":"Text to Image","openapi":"image-generation/hidream-o1/openapi.json POST /text2img","href":"/image-generation/hidream-o1/text-to-image"},{"title":"Image to Image","openapi":"image-generation/hidream-o1/openapi.json POST /img2img","href":"/image-generation/hidream-o1/image-to-image"}]},{"group":"Krea 2 Turbo","pages":[{"title":"Krea 2 Turbo Image Generation API","href":"/image-generation/krea-2-turbo/overview"},{"title":"Text to Image","openapi":"image-generation/krea-2-turbo/openapi.json POST /text2img","href":"/image-generation/krea-2-turbo/text-to-image"}]},{"group":"Pony Models","pages":[{"title":"Pony Models Image Generation API","href":"/image-generation/pony-models/overview"},{"title":"Text to Image","openapi":"image-generation/pony-models/openapi.json POST /text2img","href":"/image-generation/pony-models/text-to-image"},{"title":"Image to Image","openapi":"image-generation/pony-models/openapi.json POST /img2img","href":"/image-generation/pony-models/image-to-image"},{"title":"Inpainting","openapi":"image-generation/pony-models/openapi.json POST /inpaint","href":"/image-generation/pony-models/inpaint"},{"title":"Schedulers","href":"/image-generation/pony-models/scheduler"}]},{"group":"Community Models","pages":[{"title":"Community Models - DreamBooth API","href":"/image-generation/community-models/overview"},{"title":"Text to Image","openapi":"POST /text2img","href":"/image-generation/community-models/dreambooth-text-to-image"},{"title":"Image to Image","openapi":"POST /img2img","href":"/image-generation/community-models/dreambooth-image-to-image"},{"title":"Inpainting","openapi":"POST /inpaint","href":"/image-generation/community-models/dreambooth-inpainting"},{"title":"LoRA","openapi":"POST /text2img","href":"/image-generation/community-models/dreambooth-lora"},{"title":"Multi LoRA","openapi":"POST /text2img","href":"/image-generation/community-models/dreambooth-lora-multi"},{"title":"Reload Model","openapi":"POST /model_reload","href":"/image-generation/community-models/dreambooth-reload-model"},{"title":"Fetch Queued Images","openapi":"POST /fetch","href":"/image-generation/community-models/dreambooth-fetch-queue-image"}]},{"group":"ControlNet","pages":[{"title":"ControlNet API","href":"/image-generation/controlnet/overview"},{"title":"ControlNet Main","openapi":"POST /controlnet","href":"/image-generation/controlnet/controlnet-main"},{"title":"ControlNet Multi","openapi":"POST /controlnet","href":"/image-generation/controlnet/controlnet-multi"}]},{"group":"A1111 Schedulers","pages":[{"title":"A1111 Schedulers","href":"/image-generation/a1111-scheduler/overview"},{"title":"A1111 Schedulers","href":"/image-generation/a1111-scheduler/a1111-schedulers"}]},{"group":"Train Model","pages":[{"title":"Model Training API","href":"/image-generation/train-model/overview"},{"title":"Train a Lora Model with Custom Images","openapi":"POST /lora_fine_tune","href":"/image-generation/train-model/lora-finetune"},{"title":"Get Trained Model List","openapi":"POST /finetune_list","href":"/image-generation/train-model/finetune-list"},{"title":"Get Training Status","openapi":"POST /fine_tune_status/{training_id}","href":"/image-generation/train-model/finetune-status"},{"title":"Delete Training","openapi":"POST /delete/{training_id}","href":"/image-generation/train-model/finetune-delete"},{"title":"Cancel Training Request","openapi":"POST /cancel_training/{training_id}","href":"/image-generation/train-model/cancel-training"},{"title":"Upload Base64 Image and Crop","openapi":"POST /base64_crop","href":"/image-generation/train-model/base64-crop"}]},{"group":"Model Operations","pages":[{"title":"Model Operations API","href":"/image-generation/model-operation/overview"},{"title":"Get Public Models List","openapi":"POST /model_list","href":"/image-generation/model-operation/model-list"},{"title":"Upload Model","openapi":"POST /load_model","href":"/image-generation/model-operation/upload-model"},{"title":"Get Trained Models List","openapi":"POST /finetune_list","href":"/image-generation/model-operation/finetune-list"}]}]},{"group":"Image Editing API","pages":[{"title":"Image Editing API","href":"/image-editing/overview"},{"title":"Qwen Edit","openapi":"POST /image_editing/qwen_edit","href":"/image-editing/qwen-edit"},{"title":"Caption","openapi":"POST /image_editing/caption","description":"This endpoint allows you to caption images.","href":"/image-editing/caption"},{"title":"Flux kontext Image to Image","openapi":"POST /images/img2img","href":"/image-editing/flux-kontext-img-to-image"},{"title":"Fashion","openapi":"POST /image_editing/fashion","description":"This endpoint allows you to wear a cloth image sample on an existing model body","href":"/image-editing/fashion"},{"title":"Face Generator","openapi":"POST /image_editing/face_gen","href":"/image-editing/face-gen"},{"title":"Image Mixer","openapi":"POST /image_editing/img_mixer","href":"/image-editing/imagemixer"},{"title":"Flux Head Shot","openapi":"POST /image_editing/flux_headshot","href":"/image-editing/flux-headshot"},{"title":"Mask Creator","openapi":"POST /image_editing/mask_creator","href":"/image-editing/mask-creator"},{"title":"Object Removal","openapi":"POST /image_editing/object_removal","href":"/image-editing/object-remover"},{"title":"Head shot","openapi":"POST /image_editing/head_shot","href":"/image-editing/head-shot"},{"title":"Inpainting","openapi":"POST /image_editing/inpaint","href":"/image-editing/inpaint"},{"title":"Outpainting","openapi":"POST /image_editing/outpaint","href":"/image-editing/outpaint"},{"title":"Super Resolution","openapi":"POST /image_editing/super_resolution","href":"/image-editing/super-resolution"},{"title":"Background Removal \u0026 Create mask","openapi":"POST /image_editing/removebg_mask","href":"/image-editing/removebg-createmask"},{"title":"Fetch Image","openapi":"POST /image_editing/fetch/{id}","href":"/image-editing/fetchimage"},{"title":"Base64 to URL","openapi":"POST /image_editing/base64_to_url","href":"/image-editing/base64-to-url"}]},{"group":"Speech \u0026 Audio API","pages":[{"title":"Voice \u0026 Audio API","href":"/voice-cloning/overview"},{"title":"Song Generator","openapi":"POST /voice/song_generator","href":"/voice-cloning/song-generator"},{"title":"Lyrics Generator","openapi":"POST /voice/lyrics_generator","href":"/voice-cloning/lyrics-generator"},{"title":"Voice Cloning","openapi":"POST /voice/text_to_audio","href":"/voice-cloning/voice-cloning"},{"title":"Text to Speech","openapi":"POST /voice/text_to_speech","href":"/voice-cloning/text-to-speech"},{"title":"Speech To Text","openapi":"POST /voice/speech_to_text","href":"/voice-cloning/speech-to-text"},{"title":"Voice changer","openapi":"POST /voice/voice_to_voice","href":"/voice-cloning/voice-to-voice"},{"title":"MusicGen","openapi":"POST /voice/music_gen","href":"/voice-cloning/music-gen"},{"title":"Sound Effects (SFX)","openapi":"voice-cloning/openapi.json POST /voice/sfx","href":"/voice-cloning/sfx"},{"title":"Song Cover","openapi":"POST /voice/voice_cover","href":"/voice-cloning/voice-cover"},{"title":"Create Dubbing","openapi":"POST /voice/create_dubbing","href":"/voice-cloning/create-dubbing"},{"title":"Vocal Isolator","openapi":"POST /voice/vocal_isolator","href":"/voice-cloning/vocal-isolator"},{"title":"Get Uploaded Voices","openapi":"POST /voice/voice_list","href":"/voice-cloning/voice-list"},{"title":"Fetch Queued Voice","openapi":"POST /voice/fetch/{id}","href":"/voice-cloning/fetch-voice"},{"title":"Voice Upload","openapi":"POST /voice/voice_upload","href":"/voice-cloning/upload-voice"},{"title":"Base64 to URL","openapi":"POST /voice/base64_to_url","href":"/voice-cloning/base64-to-url"},{"title":"Voice Design","openapi":"POST /voice/voice_design","href":"/voice-cloning/voice-design"}]},{"group":"Face Swap API","pages":[{"title":"Face Swap API","href":"/faceswap-api/overview"},{"title":"Specific Face Swap","openapi":"POST /faceswap/single_face_swap","href":"/faceswap-api/specific-face-swap"},{"title":"Multiple Face Swap","openapi":"POST /faceswap/multiple_face_swap","href":"/faceswap-api/multiple-face-swap"},{"title":"Single Video Swap","openapi":"POST /faceswap/single_video_swap","href":"/faceswap-api/single-video-swap"},{"title":"Specific Video Swap","openapi":"POST /faceswap/specific_video_swap","href":"/faceswap-api/specific-video-swap"},{"title":"Fetch Video","openapi":"POST /faceswap/fetch/{id}","href":"/faceswap-api/fetch"}]},{"group":"3D API","pages":[{"title":"3D Generation API","href":"/3d-api/overview"},{"title":"Text to 3D","openapi":"POST /3d/text_to_3d","href":"/3d-api/text-to-3d"},{"title":"Image to 3D","openapi":"POST /3d/image_to_3d","href":"/3d-api/image-to-3d"},{"title":"Fetch 3D ","openapi":"POST /3d/fetch/{id}","href":"/3d-api/fetch"},{"title":"Base64 to URL","openapi":"POST /3d/base64_to_url","href":"/3d-api/base64-to-url"}]},{"group":"Interior API","pages":[{"title":"Interior Design API","href":"/interior-api/overview"},{"title":"Interior","openapi":"POST /interior/make","href":"/interior-api/interior"},{"title":"Exterior Restorer","openapi":"POST /interior/exterior_restorer","href":"/interior-api/exterior-restorer"},{"title":"Floor Planning","openapi":"POST /interior/floor_planning","href":"/interior-api/floor-planning"},{"title":"Room Decorator","openapi":"POST /interior/room_decorator","href":"/interior-api/room-decorator"},{"title":"Scenario Changer","openapi":"POST /interior/scenario_changer","href":"/interior-api/scenario-changer"},{"title":"Sketch Rendering","openapi":"POST /interior/sketch_rendering","href":"/interior-api/sketch-rendering"},{"title":"Object Removal","openapi":"POST /interior/object_removal","href":"/interior-api/object-removal"},{"title":"Interior Mixer","openapi":"POST /interior/interior_mixer","href":"/interior-api/interior-mixer"},{"title":"Fetch Image","openapi":"POST /interior/fetch/{id}","href":"/interior-api/fetch"}]},{"group":"General APIs","pages":[{"title":"General Utility APIs","href":"/general-api/overview"},{"title":"Base64 Image Crop","openapi":"POST /base64_crop","href":"/general-api/base64-crop"},{"title":"Base64 to URL","openapi":"POST /base64_to_url","href":"/general-api/base64-to-url"},{"title":"Automatically Buy Lora Model","openapi":"POST /dreambooth/buy_model","href":"/general-api/buy-model"},{"title":"Automatically Buy Subscription Plan","openapi":"POST /buy_subscription","href":"/general-api/buy-subscription"},{"title":"Clear User Cache","openapi":"GET /clear_cache","href":"/general-api/clear-cache"},{"title":"Delete Image","openapi":"POST /delete_image","href":"/general-api/delete-image"},{"title":"NSFW Image Check","openapi":"POST /nsfw_image_check","hidden":true,"href":"/general-api/nsfw-image-check"},{"title":"Prompt Safety Check","openapi":"POST /check_nsfw_cp","hidden":true,"href":"/general-api/nsfw-prompt-check"},{"title":"Subscribed Plan","openapi":"POST /subscribed_plan","href":"/general-api/subscribed-plan"},{"title":"Check Processing Requests","openapi":"POST /processing/request_count","href":"/general-api/check-requests"},{"title":"Assets Generated","openapi":"POST /assets_generated","href":"/general-api/assets-generated"},{"title":"Check Wallet Balance","openapi":"POST /wallet_balance","href":"/general-api/wallet-balance"}]},{"group":"LLM API","pages":[{"title":"LLM API","href":"/llm-api/overview"},{"title":"Chat Completions","openapi":"POST /chat/completions","href":"/llm-api/chat-completions"},{"title":"Messages","openapi":"POST /v1/messages","href":"/llm-api/messages"},{"title":"Function Calling","href":"/llm-api/function-calling"},{"title":"Advanced Parameters","href":"/llm-api/advanced-parameters"},{"title":"Count Tokens","openapi":"POST /v1/messages/count_tokens","href":"/llm-api/count-tokens"},{"title":"List Models","openapi":"GET /v1/models","href":"/llm-api/list-models"},{"title":"Using with Coding Tools","href":"/llm-api/coding-tools"}]},{"group":"GGUF Cloud","pages":[{"title":"GGUF Cloud","href":"/gguf-cloud/overview"},{"title":"Authentication","href":"/gguf-cloud/authentication"},{"title":"Chat Completions","href":"/gguf-cloud/chat-completions"},{"title":"Messages","href":"/gguf-cloud/messages"},{"title":"Errors","href":"/gguf-cloud/errors"}]}]}]},{"tab":"Enterprise API","pages":[{"title":"Enterprise API","href":"/enterprise-api/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/release-notes/api"}]},{"tab":"Open Source","pages":[{"title":"Open Source","href":"/open-source/modelq/overview"}]}]},"basePath":"","title":"Flux kontext Image to Image - ModelsLab","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a74be98ba7","a9bb46feb3"],"chunks":["BannerMarkdown-BjdIPj1P.js","dist-C5gjFYHe.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js","zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js","Markdown-Dj-na-_-.js","AssistantPageLink-DEBW87tT.js"]}