Custom output width in pixels, 1–8192. Must be set together with height, and replaces
resolution and aspect_ratio (sending either of them with width / height is rejected).Constraints on the custom size:
width × height between 655,360 and 20,000,000 pixels.
width : height between 1:3 and 3:1.
integer
Custom output height in pixels, 1–8192. Must be set together with width. See width for constraints.
integer
Random seed for reproducibility. Range: 0 to 2147483647.
boolean
Whether to automatically expand and enrich the prompt before generation.
string
Output image format: png or jpeg.
string
URL to receive a webhook when the task completes.
object
Custom key-value metadata to attach to the task.
Pricing
Each request is billed for the output image plus every reference image:
Item
Price
Output, 1K or 2K (custom size up to 4,500,000 pixels)
$0.02179/image
Output, 4K (custom size above 4,500,000 pixels, up to 20,000,000)
$0.06879/image
Reference image in image_urls (including the first)
$0.0065/image
With width / height, the output tier is chosen from width × height; otherwise from resolution (default 2K).For example, a 2K edit with 3 reference images costs $0.02179 + 3 × $0.0065 = $0.04129.
Failed tasks are refunded.Prices are in USD and current as of November 23, 2026.
Example
curl -X POST https://api.modelhunter.ai/api/v1/minimax/image-to-image \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "minimax-h3/image-edit", "input": { "prompt": "Put the person from the first image into the living room from the second image", "image_urls": [ "https://cdn.example.com/person.png", "https://cdn.example.com/living-room.jpg" ], "resolution": "2K", "aspect_ratio": "16:9", "output_format": "jpeg" }, "metadata": { "project": "composite" } }'
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"ModelHunter.AI","colors":{"primary":"#F97316","light":"#FB923C","dark":"#EA580C"},"favicon":"https://mintcdn.com/riverapi/-AhjKqN1CHS3Fg9e/logo/favicon.svg?fit=max\u0026auto=format\u0026n=-AhjKqN1CHS3Fg9e\u0026q=85\u0026s=fb2751ef59c730c04ccf55c7c3233344","logo":{"light":"https://mintcdn.com/riverapi/-AhjKqN1CHS3Fg9e/logo/light.svg?fit=max\u0026auto=format\u0026n=-AhjKqN1CHS3Fg9e\u0026q=85\u0026s=f9c962a304e4151541c466b2589c0457","dark":"https://mintcdn.com/riverapi/-AhjKqN1CHS3Fg9e/logo/dark.svg?fit=max\u0026auto=format\u0026n=-AhjKqN1CHS3Fg9e\u0026q=85\u0026s=cac88b8721efcde83bafdce955315a27"},"api":{"playground":{"display":"simple"},"mdx":{"server":"https://api.modelhunter.ai","auth":{"method":"bearer","name":"Authorization"}}},"background":{"decoration":null,"color":{"light":null,"dark":"#0A0A0A"}},"navbar":{"links":[{"label":"Dashboard","href":"https://modelhunter.ai/dashboard"},{"label":"Pricing","href":"https://modelhunter.ai/pricing"}],"primary":{"type":"button","label":"Get API Key","href":"https://modelhunter.ai/register"}},"footer":{"socials":{"github":"https://github.com/modelhunter","discord":"https://discord.gg/modelhunter","x":"https://x.com/modelhunter"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"riverapi","hasAudioNarration":false,"actualSubdomain":"riverapi","customDomains":["docs.modelhunter.ai"],"gitSource":{"type":"github","owner":"funpunk","repo":"modelhunter-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b05538820d83e4a6efdacac","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":44},{"language":"default","tag":"Videos","count":22},{"language":"default","tag":"Images","count":11},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Kling","count":6},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Gemini","count":4},{"language":"default","tag":"Wan","count":4},{"language":"default","tag":"Kling Image","count":3},{"language":"default","tag":"LLMs","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"site-roles","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"global.css","content":"@media (min-width: 1440px){.max-w-8xl{max-width:1700px!important}[class*=\"peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl\"]{max-width:1700px!important}}@media (min-width: 1920px){.max-w-8xl{max-width:1880px!important}[class*=\"peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl\"]{max-width:1880px!important}}"}]}
{"page":{"pagePath":"api-reference/minimax/image-to-image","slug":"/api-reference/minimax/image-to-image","pageMetadata":{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/minimax/image-to-image","description":"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.","href":"/api-reference/minimax/image-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: \"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`models`,children:`Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Reference images`}),_jsx(_components.th,{children:`Resolutions`}),_jsx(_components.th,{children:`Prompt length`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`minimax-h3/image-edit`})}),_jsx(_components.td,{children:`1–16`}),_jsxs(_components.td,{children:[`1K, 2K, 4K, or custom `,_jsx(_components.code,{children:`width`}),` × `,_jsx(_components.code,{children:`height`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5000`})]})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint only accepts `,_jsx(_components.code,{children:`minimax-h3/image-edit`}),`. Any other `,_jsx(_components.code,{children:`model`}),` returns a `,_jsx(_components.code,{children:`400`}),` “Invalid route” error.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Model to use: `,_jsx(_components.code,{children:`minimax-h3/image-edit`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`input`,type:`object`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`Input parameters for the generation.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`Description of the edit to apply. Maximum length: 5000 characters.`})}),_jsx(ParamField,{body:`image_urls`,type:`string[]`,required:true,id:`param-image-urls`,children:_jsx(_components.p,{children:`Reference image URLs (public HTTP(S)), 1 to 16 images. Every reference image is billed (see Pricing).`})}),_jsx(ParamField,{body:`resolution`,type:`string`,default:`2K`,id:`param-resolution`,children:_jsxs(_components.p,{children:[`Output resolution preset: `,_jsx(_components.code,{children:`1K`}),`, `,_jsx(_components.code,{children:`2K`}),` or `,_jsx(_components.code,{children:`4K`}),`. Cannot be combined with `,_jsx(_components.code,{children:`width`}),` / `,_jsx(_components.code,{children:`height`}),`.`]})}),_jsx(ParamField,{body:`aspect_ratio`,type:`string`,id:`param-aspect-ratio`,children:_jsxs(_components.p,{children:[`Output aspect ratio: `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`5:4`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`3:2`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`21:9`}),`, `,_jsx(_components.code,{children:`4:5`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`2:3`}),`, `,_jsx(_components.code,{children:`9:16`}),`.\nCannot be combined with `,_jsx(_components.code,{children:`width`}),` / `,_jsx(_components.code,{children:`height`}),`.`]})}),_jsxs(ParamField,{body:`width`,type:`integer`,id:`param-width`,children:[_jsxs(_components.p,{children:[`Custom output width in pixels, `,_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`8192`}),`. Must be set together with `,_jsx(_components.code,{children:`height`}),`, and replaces\n`,_jsx(_components.code,{children:`resolution`}),` and `,_jsx(_components.code,{children:`aspect_ratio`}),` (sending either of them with `,_jsx(_components.code,{children:`width`}),` / `,_jsx(_components.code,{children:`height`}),` is rejected).`]}),_jsx(_components.p,{children:`Constraints on the custom size:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`width`}),` × `,_jsx(_components.code,{children:`height`}),` between 655,360 and 20,000,000 pixels.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`width`}),` : `,_jsx(_components.code,{children:`height`}),` between 1:3 and 3:1.`]}),`\n`]})]}),_jsx(ParamField,{body:`height`,type:`integer`,id:`param-height`,children:_jsxs(_components.p,{children:[`Custom output height in pixels, `,_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`8192`}),`. Must be set together with `,_jsx(_components.code,{children:`width`}),`. See `,_jsx(_components.code,{children:`width`}),` for constraints.`]})}),_jsx(ParamField,{body:`seed`,type:`integer`,id:`param-seed`,children:_jsxs(_components.p,{children:[`Random seed for reproducibility. Range: `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`2147483647`}),`.`]})}),_jsx(ParamField,{body:`expand_prompt`,type:`boolean`,id:`param-expand-prompt`,children:_jsx(_components.p,{children:`Whether to automatically expand and enrich the prompt before generation.`})}),_jsx(ParamField,{body:`output_format`,type:`string`,id:`param-output-format`,children:_jsxs(_components.p,{children:[`Output image format: `,_jsx(_components.code,{children:`png`}),` or `,_jsx(_components.code,{children:`jpeg`}),`.`]})})]})]}),`\n`,_jsx(ParamField,{body:`webhookUrl`,type:`string`,id:`param-webhook-url`,children:_jsx(_components.p,{children:`URL to receive a webhook when the task completes.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Custom key-value metadata to attach to the task.`})}),`\n`,_jsx(Heading,{level:`2`,id:`pricing`,children:`Pricing`}),`\n`,_jsx(_components.p,{children:`Each request is billed for the output image plus every reference image:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{style:{textAlign:`right`},children:`Price`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Output, `,_jsx(_components.code,{children:`1K`}),` or `,_jsx(_components.code,{children:`2K`}),` (custom size up to 4,500,000 pixels)`]}),_jsx(_components.td,{style:{textAlign:`right`},children:`$0.02179/image`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Output, `,_jsx(_components.code,{children:`4K`}),` (custom size above 4,500,000 pixels, up to 20,000,000)`]}),_jsx(_components.td,{style:{textAlign:`right`},children:`$0.06879/image`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Reference image in `,_jsx(_components.code,{children:`image_urls`}),` (including the first)`]}),_jsx(_components.td,{style:{textAlign:`right`},children:`$0.0065/image`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`width`}),` / `,_jsx(_components.code,{children:`height`}),`, the output tier is chosen from `,_jsx(_components.code,{children:`width`}),` × `,_jsx(_components.code,{children:`height`}),`; otherwise from `,_jsx(_components.code,{children:`resolution`}),` (default `,_jsx(_components.code,{children:`2K`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`For example, a `,_jsx(_components.code,{children:`2K`}),` edit with 3 reference images costs $0.02179 + 3 × $0.0065 = $0.04129.\nFailed tasks are refunded.`]}),`\n`,_jsx(_components.p,{children:`Prices are in USD and current as of November 23, 2026.`}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,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:`19`,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.modelhunter.ai/api/v1/minimax/image-to-image`}),_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:` -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:` -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:` \"model\": \"minimax-h3/image-edit\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"input\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Put the person from the first image into the living room from the second image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_urls\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/person.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/living-room.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:` \"resolution\": \"2K\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"output_format\": \"jpeg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"project\": \"composite\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:` }'`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/minimax/image-to-image","description":"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.","href":"/api-reference/minimax/image-to-image"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[380,384,"ResponseExample,Tabl"],[658,673,"ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingM"],[12583,13011,",`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`202`,numberOfLines:`12`,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:`12`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_abc123\"`}),_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:`\"pending\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image-to-image\"`}),_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:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"minimax\"`}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"minimax-h3/image-edit\"`}),_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:`\"2026-11-23T10:00:00Z\"`}),_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:` \"estimated_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`})]}),`\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(CodeBlock,{filename:`400`,numberOfLines:`7`,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:`7`,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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"input.image_urls is required\"`})]}),`\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`]})})})]})]})}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.\")}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Models","slug":"models","depth":2,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Pricing","slug":"pricing","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"202","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=\"12\">\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\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_abc123\"\u003c/span>\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\">\"pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"image-to-image\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"minimax\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"minimax-h3/image-edit\"\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\">\"2026-11-23T10:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"estimated_seconds\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">60\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:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","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=\"7\">\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\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VALIDATION_ERROR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"input.image_urls is required\"\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:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Image to Image","path":"/api/v1/minimax/image-to-image","servers":[{"url":"https://api.modelhunter.ai"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Model to use: `minimax-h3/image-edit` .","required":true}],"input":[{"type":"object","properties":{"prompt":[{"type":"string","description":"Description of the edit to apply. Maximum length: 5000 characters.","required":true}],"image_urls":[{"type":"array","items":[{"type":"string"}],"description":"Reference image URLs (public HTTP(S)), 1 to 16 images. Every reference image is billed (see Pricing).","required":true}],"resolution":[{"type":"string","description":"Output resolution preset: `1K` , `2K` or `4K` . Cannot be combined with `width` / `height` ."}],"aspect_ratio":[{"type":"string","description":"Output aspect ratio: `auto` , `1:1` , `5:4` , `4:3` , `3:2` , `16:9` , `21:9` , `4:5` , `3:4` , `2:3` , `9:16` . Cannot be combined with `width` / `height` ."}],"width":[{"type":"integer","description":"Custom output width in pixels, `1` – `8192` . Must be set together with `height` , and replaces `resolution` and `aspect_ratio` (sending either of them with `width` / `height` is rejected). Constraints on the custom size: `width` × `height` between 655,360 and 20,000,000 pixels. `width` : `height` between 1:3 and 3:1."}],"height":[{"type":"integer","description":"Custom output height in pixels, `1` – `8192` . Must be set together with `width` . See `width` for constraints."}],"seed":[{"type":"integer","description":"Random seed for reproducibility. Range: `0` to `2147483647` ."}],"expand_prompt":[{"type":"boolean","description":"Whether to automatically expand and enrich the prompt before generation."}],"output_format":[{"type":"string","description":"Output image format: `png` or `jpeg` ."}]},"description":"Input parameters for the generation.","required":true}],"webhookUrl":[{"type":"string","description":"URL to receive a webhook when the task completes."}],"metadata":[{"type":"object","properties":{},"description":"Custom key-value metadata to attach to the task."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","input":{"prompt":"\u003cstring>","image_urls":["\u003cstring>"],"resolution":"\u003cstring>","aspect_ratio":"\u003cstring>","width":123,"height":123,"seed":123,"expand_prompt":true,"output_format":"\u003cstring>"},"webhookUrl":"\u003cstring>","metadata":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"riverapi","siteName":"ModelHunter.AI","title":"Image to Image - ModelHunter.AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T03:11:42.536Z","originalFileLocation":"api-reference/minimax/image-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=\"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ModelHunter.AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_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/riverapi/RuwCO58qiTEVQSUG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Image to Image - ModelHunter.AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ModelHunter.AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://riverapi.mintlify.site/_mintlify/api/og/v2?division=MiniMax+H3+Image\u0026amp;title=Image+to+Image\u0026amp;description=Edit+images+with+MiniMax+H3+Image+Edit+using+1%E2%80%9316+reference+images%2C+at+1K%2C+2K+or+4K+or+a+custom+width+and+height.\u0026amp;theme=ab4026ca7ae18c51bf5204a0\u0026amp;signature=b68403875d32734f6e6188f1fb0701d06bf4ce30dff241eed33f3710b157aa9f\">\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 to Image - ModelHunter.AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://riverapi.mintlify.site/_mintlify/api/og/v2?division=MiniMax+H3+Image\u0026amp;title=Image+to+Image\u0026amp;description=Edit+images+with+MiniMax+H3+Image+Edit+using+1%E2%80%9316+reference+images%2C+at+1K%2C+2K+or+4K+or+a+custom+width+and+height.\u0026amp;theme=ab4026ca7ae18c51bf5204a0\u0026amp;signature=b68403875d32734f6e6188f1fb0701d06bf4ce30dff241eed33f3710b157aa9f\">\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/riverapi/RuwCO58qiTEVQSUG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ModelHunter.AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/minimax/image-to-image.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.modelhunter.ai/#organization\",\"name\":\"ModelHunter.AI\",\"url\":\"https://docs.modelhunter.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/riverapi/-AhjKqN1CHS3Fg9e/logo/light.svg?fit=max\u0026auto=format\u0026n=-AhjKqN1CHS3Fg9e\u0026q=85\u0026s=f9c962a304e4151541c466b2589c0457\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.modelhunter.ai#website\",\"name\":\"ModelHunter.AI\",\"url\":\"https://docs.modelhunter.ai\",\"publisher\":{\"@id\":\"https://docs.modelhunter.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image#webpage\",\"url\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image\",\"name\":\"Image to Image\",\"description\":\"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\",\"dateModified\":\"2026-11-24T03:11:42.536Z\",\"isPartOf\":{\"@id\":\"https://docs.modelhunter.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Images\",\"item\":\"https://docs.modelhunter.ai/api-reference/seedream/text-to-image\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MiniMax H3 Image\",\"item\":\"https://docs.modelhunter.ai/api-reference/minimax/text-to-image\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Image to Image\",\"item\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image#apireference\",\"headline\":\"Image to Image\",\"name\":\"Image to Image\",\"description\":\"Edit images with MiniMax H3 Image Edit using 1–16 reference images, at 1K, 2K or 4K or a custom width and height.\",\"url\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image\",\"mainEntityOfPage\":{\"@id\":\"https://docs.modelhunter.ai/api-reference/minimax/image-to-image#webpage\"},\"dateModified\":\"2026-11-24T03:11:42.536Z\",\"publisher\":{\"@id\":\"https://docs.modelhunter.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.modelhunter.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ModelHunter.AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ModelHunter.AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/minimax/image-to-image.md","siteName":"ModelHunter.AI","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"LLMs","pages":[{"title":"Messages (Claude)","api":"POST https://api.modelhunter.ai/api/v1/messages","href":"/api-reference/llm/messages"},{"title":"Responses (GPT, Grok, DeepSeek, Kimi)","api":"POST https://api.modelhunter.ai/api/v1/responses","href":"/api-reference/llm/responses"},{"title":"Chat Completions (Gemini)","api":"POST https://api.modelhunter.ai/api/v1/chat/completions","href":"/api-reference/llm/chat-completions"}]},{"group":"Videos","pages":[{"group":"Gemini","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/veo/text-to-video","href":"/api-reference/veo/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/veo/image-to-video","href":"/api-reference/veo/image-to-video"}]},{"group":"Grok","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/grok/text-to-video","href":"/api-reference/grok/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/grok/image-to-video","href":"/api-reference/grok/image-to-video"}]},{"group":"Vidu","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/vidu/text-to-video","href":"/api-reference/vidu/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/vidu/image-to-video","href":"/api-reference/vidu/image-to-video"}]},{"group":"Kling","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/kling/text-to-video","href":"/api-reference/kling/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/kling/image-to-video","href":"/api-reference/kling/image-to-video"},{"title":"Reference to Video","api":"POST https://api.modelhunter.ai/api/v1/kling/reference-to-video","href":"/api-reference/kling/reference-to-video"},{"title":"Keyframe to Video","api":"POST https://api.modelhunter.ai/api/v1/kling/keyframe-to-video","href":"/api-reference/kling/keyframe-to-video"},{"title":"Video to Video","api":"POST https://api.modelhunter.ai/api/v1/kling/video-to-video","href":"/api-reference/kling/video-to-video"},{"title":"Motion Control","api":"POST https://api.modelhunter.ai/api/v1/kling/motion-control","href":"/api-reference/kling/motion-control"}]},{"group":"Seedance","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/seedance/text-to-video","href":"/api-reference/seedance/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/seedance/image-to-video","href":"/api-reference/seedance/image-to-video"},{"title":"Seedance 2.x Multimodal Video","api":"POST https://api.modelhunter.ai/api/v1/seedance/multimodal-video","href":"/api-reference/seedance/multimodal-video"}]},{"group":"Wan","pages":[{"title":"Wan 3.0 Multimodal Video","api":"POST https://api.modelhunter.ai/api/v1/wan/multimodal-video","href":"/api-reference/wan/multimodal-video"},{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/wan/text-to-video","href":"/api-reference/wan/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/wan/image-to-video","href":"/api-reference/wan/image-to-video"},{"title":"Video to Video","api":"POST https://api.modelhunter.ai/api/v1/wan/video-to-video","href":"/api-reference/wan/video-to-video"}]},{"group":"MiniMax H3","pages":[{"title":"Text to Video","api":"POST https://api.modelhunter.ai/api/v1/minimax/text-to-video","href":"/api-reference/minimax/text-to-video"},{"title":"Image to Video","api":"POST https://api.modelhunter.ai/api/v1/minimax/image-to-video","href":"/api-reference/minimax/image-to-video"},{"title":"Reference to Video","api":"POST https://api.modelhunter.ai/api/v1/minimax/reference-to-video","href":"/api-reference/minimax/reference-to-video"}]}]},{"group":"Images","pages":[{"group":"Seedream","pages":[{"title":"Text to Image","api":"POST https://api.modelhunter.ai/api/v1/seedream/text-to-image","href":"/api-reference/seedream/text-to-image"},{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/seedream/image-to-image","href":"/api-reference/seedream/image-to-image"}]},{"group":"Kling Image","pages":[{"title":"Text to Image","api":"POST https://api.modelhunter.ai/api/v1/kling/text-to-image","href":"/api-reference/kling/text-to-image"},{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/kling/image-to-image","href":"/api-reference/kling/image-to-image"},{"title":"Long Image","api":"POST https://api.modelhunter.ai/api/v1/kling/long-image","href":"/api-reference/kling/long-image"}]},{"group":"Gemini","pages":[{"title":"Text to Image","api":"POST https://api.modelhunter.ai/api/v1/gemini/text-to-image","href":"/api-reference/gemini/text-to-image"},{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/gemini/image-to-image","href":"/api-reference/gemini/image-to-image"}]},{"group":"GPT Image","pages":[{"title":"Text to Image","api":"POST https://api.modelhunter.ai/api/v1/gpt-image/text-to-image","href":"/api-reference/gpt-image/text-to-image"},{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/gpt-image/image-to-image","href":"/api-reference/gpt-image/image-to-image"}]},{"group":"MiniMax H3 Image","pages":[{"title":"Text to Image","api":"POST https://api.modelhunter.ai/api/v1/minimax/text-to-image","description":"Generate images from text with MiniMax H3 at 1K, 2K or 4K, or at a custom width and height.","href":"/api-reference/minimax/text-to-image"},{"title":"Image to Image","api":"POST https://api.modelhunter.ai/api/v1/minimax/image-to-image","href":"/api-reference/minimax/image-to-image"}]}]},{"group":"Audio","pages":[{"group":"ElevenLabs","pages":[{"title":"Text to Speech","api":"POST https://api.modelhunter.ai/api/v1/elevenlabs/text-to-speech","description":"Generate expressive multi-speaker dialogue audio using Eleven v3.","href":"/api-reference/elevenlabs/text-to-speech"},{"title":"List Voices","api":"GET https://api.modelhunter.ai/api/v1/elevenlabs/voices","href":"/api-reference/elevenlabs/voices"}]}]},{"group":"Tasks","pages":[{"title":"List Tasks","api":"GET https://api.modelhunter.ai/api/v1/tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Get Task Status","api":"GET https://api.modelhunter.ai/api/v1/tasks/{id}","href":"/api-reference/tasks/get-task"},{"title":"Retry Task","api":"POST https://api.modelhunter.ai/api/v1/tasks/{id}/retry","href":"/api-reference/tasks/retry-task"}]},{"group":"Files","pages":[{"title":"Get Upload URL","api":"POST https://api.modelhunter.ai/api/v1/files/upload-url","href":"/api-reference/files/get-upload-url"},{"title":"Complete File Upload","api":"POST https://api.modelhunter.ai/api/v1/files/{file_id}/complete","href":"/api-reference/files/complete-upload"}]},{"group":"Billing API","pages":[{"title":"Get Balance","api":"GET https://api.modelhunter.ai/api/v1/balance","href":"/api-reference/billing/get-balance"}]}]}]},"basePath":"","title":"Image to Image - ModelHunter.AI","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js"]}