Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.
Cette page utilise la même opération images/edits que Modifier une image, avec le playground ci-dessus prérempli pour le schéma d’édition générique de style OpenAI (image, mask, prompt, etc.). Les notes ci-dessous décrivent la forme de requête spécifique à Qwen pour les modèles de type wanx-v1.
Les modèles d’édition d’image Qwen acceptent une forme de requête JSON alternative qui place vos instructions d’édition et les références d’image source dans input.messages, au lieu d’envoyer des fichiers image / mask via des données de formulaire multipart. Fournissez model et input ensemble dans le corps de requête du playground pour utiliser ce format.
Objet conteneur envoyé dans le corps de requête, utilisé à la place des champs multipart image / mask.
input.messages
array
Oui
Tableau de messages imbriqué sous input.
input.messages[].role
string
Oui
Rôle du message, par exemple user.
input.messages[].content
string
Oui
Instructions d’édition et éventuelle référence à l’image source.
Les images source peuvent être référencées inline dans input.messages[].content (par exemple via des URL ou des références intégrées) plutôt que d’être téléversées séparément en multipart.
{ "created": 1719859200, "data": [ { "url": "https://cdn.dgrid.ai/generated/edited-abc123.png", "b64_json": "", "revised_prompt": "The subject with background removed and replaced with a solid white backdrop." } ]}
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"DGrid AI Docs","description":"Documentation for DGrid AI: The Decentralized Smart Network of AI","colors":{"primary":"#65A30D","light":"#A3E635","dark":"#4D7C0F"},"logo":{"light":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-black.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=aa7da302786ec058e3c91526a127736d","dark":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-white.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=62aa06e50e86ab2394beada6a4814623"},"favicon":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/favicon.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=75fcb6ffc8e30d1e2be00c994cc0372e","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript","go","java"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dgrid.ai/overview"}},"footer":{"socials":{"x":"https://x.com/dgrid_ai","telegram":"https://telegram.me/dgrid_ai","github":"https://github.com/dgridai"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh-Hant","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"部落格"},{"href":"https://telegram.me/dgrid_ai","label":"支援"}],"primary":{"type":"button","label":"儀表板","href":"https://dgrid.ai/overview"}},"href":"zh-Hant"},{"language":"ko","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"블로그"},{"href":"https://telegram.me/dgrid_ai","label":"지원"}],"primary":{"type":"button","label":"대시보드","href":"https://dgrid.ai/overview"}},"href":"ko"},{"language":"fr","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Assistance"}],"primary":{"type":"button","label":"Tableau de bord","href":"https://dgrid.ai/overview"}},"href":"fr"},{"language":"es","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Soporte"}],"primary":{"type":"button","label":"Panel","href":"https://dgrid.ai/overview"}},"href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dgridai","hasAudioNarration":false,"actualSubdomain":"dgridai","customDomains":["docs.dgrid.ai"],"gitSource":{"type":"github","owner":"ethanclarkeio","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"collectionId":"146373a5-1310-4927-bf4d-bc5f1b23b737","liveDeploymentHistoryId":"6adb04f0a28cf93daee93294","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb04f0a28cf93daee93294"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adb04f0a28cf93daee93294","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"en","tag":"Documentation","count":36},{"language":"es","tag":"Documentación","count":36},{"language":"fr","tag":"Documentation","count":36},{"language":"ko","tag":"문서","count":36},{"language":"zh-Hant","tag":"文件","count":36},{"language":"en","tag":"API Reference","count":28},{"language":"es","tag":"Referencia de la API","count":28},{"language":"fr","tag":"Référence API","count":28},{"language":"ko","tag":"API 참조","count":28},{"language":"zh-Hant","tag":"API 參考","count":28},{"language":"en","tag":"MODEL API","count":22},{"language":"es","tag":"API DE MODELOS","count":22},{"language":"fr","tag":"API DE MODÈLES","count":22},{"language":"ko","tag":"모델 API","count":22},{"language":"zh-Hant","tag":"模型 API","count":22},{"language":"en","tag":"AI GATEWAY","count":13},{"language":"es","tag":"PUERTA DE ENLACE IA","count":13},{"language":"fr","tag":"PASSERELLE IA","count":13},{"language":"ko","tag":"AI 게이트웨이","count":13},{"language":"zh-Hant","tag":"AI 閘道","count":13},{"language":"en","tag":"Integration Tutorials","count":7},{"language":"es","tag":"Tutoriales de integración","count":7},{"language":"fr","tag":"Tutoriels d'intégration","count":7},{"language":"ko","tag":"통합 가이드","count":7},{"language":"zh-Hant","tag":"整合教學","count":7},{"language":"en","tag":"Images","count":6},{"language":"en","tag":"GENESIS PREMIUM","count":6},{"language":"es","tag":"Imágenes","count":6},{"language":"es","tag":"GENESIS PREMIUM","count":6},{"language":"fr","tag":"Images","count":6},{"language":"fr","tag":"GENESIS PREMIUM","count":6},{"language":"ko","tag":"이미지","count":6},{"language":"ko","tag":"GENESIS PREMIUM","count":6},{"language":"zh-Hant","tag":"圖像","count":6},{"language":"zh-Hant","tag":"GENESIS PREMIUM","count":6},{"language":"en","tag":"Chat","count":5},{"language":"es","tag":"Chat","count":5},{"language":"fr","tag":"Chat","count":5},{"language":"ko","tag":"채팅","count":5},{"language":"zh-Hant","tag":"對話","count":5},{"language":"en","tag":"Audio","count":4},{"language":"en","tag":"CORE CONCEPTS","count":4},{"language":"es","tag":"Audio","count":4},{"language":"es","tag":"CONCEPTOS CLAVE","count":4},{"language":"fr","tag":"Audio","count":4},{"language":"fr","tag":"CONCEPTS CLÉS","count":4},{"language":"ko","tag":"오디오","count":4},{"language":"ko","tag":"핵심 개념","count":4},{"language":"zh-Hant","tag":"音訊","count":4},{"language":"zh-Hant","tag":"核心概念","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"fr/api-reference/images/qwen-image-edits","slug":"/fr/api-reference/images/qwen-image-edits","pageMetadata":{"title":"Édition d'images Qwen","sidebarTitle":"Édition d'images Qwen","openapi":"api-reference/openapi.json POST /v1/images/edits","description":"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an `input.messages` wrapper.","href":"/fr/api-reference/images/qwen-image-edits"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an \", _jsx(_components.code, {\n children: \"input.messages\"\n }), \" wrapper.\"]\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ResponseField,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cette page utilise la même opération `,_jsx(_components.code,{children:`images/edits`}),` que `,_jsx(_components.a,{href:`/fr/api-reference/images/edit-image`,children:`Modifier une image`}),`, avec le playground ci-dessus prérempli pour le schéma d’édition générique de style OpenAI (`,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`mask`}),`, `,_jsx(_components.code,{children:`prompt`}),`, etc.). Les notes ci-dessous décrivent la forme de requête spécifique à Qwen pour les modèles de type `,_jsx(_components.code,{children:`wanx-v1`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Les modèles d’édition d’image Qwen acceptent une forme de requête JSON alternative qui place vos instructions d’édition et les références d’image source dans `,_jsx(_components.code,{children:`input.messages`}),`, au lieu d’envoyer des fichiers `,_jsx(_components.code,{children:`image`}),` / `,_jsx(_components.code,{children:`mask`}),` via des données de formulaire multipart. Fournissez `,_jsx(_components.code,{children:`model`}),` et `,_jsx(_components.code,{children:`input`}),` ensemble dans le corps de requête du playground pour utiliser ce format.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`champs-de-requête-spécifiques-à-qwen`,children:`Champs de requête spécifiques à Qwen`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Champ`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Requis`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Oui`}),_jsxs(_components.td,{children:[`Identifiant du modèle, tel que `,_jsx(_components.code,{children:`wanx-v1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Oui`}),_jsxs(_components.td,{children:[`Objet conteneur envoyé dans le corps de requête, utilisé à la place des champs multipart `,_jsx(_components.code,{children:`image`}),` / `,_jsx(_components.code,{children:`mask`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input.messages`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Oui`}),_jsxs(_components.td,{children:[`Tableau de messages imbriqué sous `,_jsx(_components.code,{children:`input`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input.messages[].role`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Oui`}),_jsxs(_components.td,{children:[`Rôle du message, par exemple `,_jsx(_components.code,{children:`user`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input.messages[].content`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Oui`}),_jsx(_components.td,{children:`Instructions d’édition et éventuelle référence à l’image source.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Les images source peuvent être référencées inline dans `,_jsx(_components.code,{children:`input.messages[].content`}),` (par exemple via des URL ou des références intégrées) plutôt que d’être téléversées séparément en multipart.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`exemple--modifier-une-image`,children:`Exemple : modifier une image`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wanx-v1\"`}),_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:` \"input\"`}),_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:` \"messages\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_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:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Remove the background and replace it with a solid white backdrop.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,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`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`champs-de-réponse`,children:`Champs de réponse`}),`\n`,_jsx(_components.p,{children:`La réponse suit la forme standard d’édition d’image :`}),`\n`,_jsx(ResponseField,{name:`created`,type:`integer`,id:`param-created`,children:_jsx(_components.p,{children:`Horodatage de création.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`Éléments d’image générés.`}),_jsxs(Expandable,{title:`data item properties`,children:[_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url`,children:_jsx(_components.p,{children:`URL de l’image.`})}),_jsx(ResponseField,{name:`b64_json`,type:`string`,id:`param-b64-json`,children:_jsx(_components.p,{children:`Charge utile image en base64.`})}),_jsx(ResponseField,{name:`revised_prompt`,type:`string`,id:`param-revised-prompt`,children:_jsx(_components.p,{children:`Prompt révisé renvoyé par le modèle.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`exemple-de-réponse`,children:`Exemple de réponse`}),`\n`,_jsx(CodeBlock,{filename:`200`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1719859200`}),_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`,_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.dgrid.ai/generated/edited-abc123.png\"`}),_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:` \"b64_json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"revised_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The subject with background removed and replaced with a solid white backdrop.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,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.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Édition d'images Qwen","sidebarTitle":"Édition d'images Qwen","openapi":"api-reference/openapi.json POST /v1/images/edits","description":"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an `input.messages` wrapper.","href":"/fr/api-reference/images/qwen-image-edits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Champs de requête spécifiques à Qwen","slug":"champs-de-requête-spécifiques-à-qwen","depth":3,"children":[]},{"title":"Exemple : modifier une image","slug":"exemple--modifier-une-image","depth":3,"children":[]},{"title":"Champs de réponse","slug":"champs-de-réponse","depth":3,"children":[]},{"title":"Exemple de réponse","slug":"exemple-de-réponse","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"editImage","summary":"Edit image","description":"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an `input.messages` wrapper.","tags":["Images"],"requestBody":"cfd4c6fa-17d8-474b-ac44-0fca0d9a2b5d","responses":{"200":"f0b081bf-f8c4-4b6f-97c4-fff1fef51110","400":"1ad391be-552d-49e0-8198-2a99ec0536ae"},"method":"post","type":"path","servers":["d7c80b65-938d-45ed-a290-7d4a65cf16d8"],"security":["51b92145-3385-4ab3-89a5-d3bcdf9ee004"],"path":"/v1/images/edits","baseUrlOptions":["https://api.dgrid.ai"],"title":"Edit image","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go","java"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["image","prompt"],"properties":{"image":{"type":"string","format":"binary","description":"Source image in PNG format, under 4 MB.","isRequired":true,"uniqueKey":"image","typeLabel":"file"},"prompt":{"type":"string","description":"Editing instruction.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"mask":{"type":"string","format":"binary","description":"Optional mask image.","uniqueKey":"mask","typeLabel":"file"},"model":{"type":"string","description":"Target image model.","uniqueKey":"model","typeLabel":"string"},"n":{"type":"integer","description":"Number of outputs.","uniqueKey":"n","typeLabel":"integer"},"size":{"type":"string","description":"Output size.","uniqueKey":"size","typeLabel":"string"},"response_format":{"type":"string","description":"Response format.","uniqueKey":"response_format","typeLabel":"string"},"user":{"type":"string","description":"End-user identifier.","uniqueKey":"user","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"image":"\u003cstring>","prompt":"\u003cstring>","mask":"\u003cstring>","model":"\u003cstring>","n":123,"size":"\u003cstring>","response_format":"\u003cstring>","user":"\u003cstring>"}}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","title":"Qwen format","required":["model","input"],"properties":{"model":{"type":"string","description":"Model identifier.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"type":"object","description":"Input wrapper object.","properties":{"messages":{"type":"array","description":"Messages array nested under `input`.","items":{"type":"object","uniqueKey":"input.messages.items.[INDEX]","typeLabel":"object"},"uniqueKey":"input.messages","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"input","typeLabel":"object"}},"uniqueKey":"","typeLabel":"Qwen format · object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","input":{"messages":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f0b081bf-f8c4-4b6f-97c4-fff1fef51110":{"description":"Edited images in the image generation response format.","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer","description":"Creation timestamp.","uniqueKey":"created","typeLabel":"integer"},"data":{"type":"array","description":"Generated image entries.","items":{"type":"object","properties":{"url":{"type":"string","description":"Image URL when using URL output.","uniqueKey":"data.items.[INDEX].url","typeLabel":"string"},"b64_json":{"type":"string","description":"Base64 image payload when requested.","uniqueKey":"data.items.[INDEX].b64_json","typeLabel":"string"},"revised_prompt":{"type":"string","description":"Refined prompt returned by the model.","uniqueKey":"data.items.[INDEX].revised_prompt","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data","typeLabel":"object[]"},"usage":{"type":"object","properties":{"total_tokens":{"type":"integer","uniqueKey":"usage.total_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","uniqueKey":"usage.output_tokens","typeLabel":"integer"},"input_tokens_details":{"type":"object","properties":{"text_tokens":{"type":"integer","uniqueKey":"usage.input_tokens_details.text_tokens","typeLabel":"integer"},"image_tokens":{"type":"integer","uniqueKey":"usage.input_tokens_details.image_tokens","typeLabel":"integer"}},"uniqueKey":"usage.input_tokens_details","typeLabel":"object"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"created":123,"data":[{"url":"\u003cstring>","b64_json":"\u003cstring>","revised_prompt":"\u003cstring>"}],"usage":{"total_tokens":123,"input_tokens":123,"output_tokens":123,"input_tokens_details":{"text_tokens":123,"image_tokens":123}}}}},"exampleType":"generated"}},"exampleType":"generated"},"1ad391be-552d-49e0-8198-2a99ec0536ae":{"description":"Invalid request.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","uniqueKey":"error.type","typeLabel":"string"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"51b92145-3385-4ab3-89a5-d3bcdf9ee004":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your DGrid API key. All endpoints use `Authorization: Bearer \u003cDGRID_API_KEY>`.","scopes":[]}}},"servers":{"d7c80b65-938d-45ed-a290-7d4a65cf16d8":{"url":"https://api.dgrid.ai","description":"DGrid AI Gateway"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your DGrid API key. All endpoints use `Authorization: Bearer \u003cDGRID_API_KEY>`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your DGrid API key. All endpoints use `Authorization: Bearer \u003cDGRID_API_KEY>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"dgridai","siteName":"DGrid AI Docs","title":"Édition d'images Qwen - DGrid AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/images/qwen-image-edits","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api-reference/images/qwen-image-edits","matchLevel":1},"ko":{"href":"/ko/api-reference/images/qwen-image-edits","matchLevel":1},"fr":{"href":"/fr/api-reference/images/qwen-image-edits","matchLevel":0},"es":{"href":"/es/api-reference/images/qwen-image-edits","matchLevel":1}}},"lastModified":"2026-06-15T08:33:40.748Z","originalFileLocation":"fr/api-reference/images/qwen-image-edits.mdx","locale":"fr"},"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 an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_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/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Édition d\u0026#x27;images Qwen - DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dgridai.mintlify.app/_mintlify/api/og/v2?division=Images\u0026amp;title=%C3%89dition+d%27images+Qwen\u0026amp;description=Edit+an+uploaded+image+with+an+optional+mask+using+the+OpenAI-compatible+image+editing+endpoint.+Also+accepts+Qwen-compatible+JSON+payloads+with+an+%60input.messa\u0026amp;theme=f10c407df10598d9a9a44a09\u0026amp;signature=8bc71d1782573798f36e2f2442d2ad0e9d935dc48ebcf83400e68bc1ed1ab913\">\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=\"Édition d\u0026#x27;images Qwen - DGrid AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dgridai.mintlify.app/_mintlify/api/og/v2?division=Images\u0026amp;title=%C3%89dition+d%27images+Qwen\u0026amp;description=Edit+an+uploaded+image+with+an+optional+mask+using+the+OpenAI-compatible+image+editing+endpoint.+Also+accepts+Qwen-compatible+JSON+payloads+with+an+%60input.messa\u0026amp;theme=f10c407df10598d9a9a44a09\u0026amp;signature=8bc71d1782573798f36e2f2442d2ad0e9d935dc48ebcf83400e68bc1ed1ab913\">\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/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#65A30D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fr/api-reference/images/qwen-image-edits.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dgrid.ai/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.dgrid.ai/zh-Hant/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.dgrid.ai/ko/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.dgrid.ai/es/api-reference/images/qwen-image-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dgrid.ai/api-reference/images/qwen-image-edits\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dgrid.ai/#organization\",\"name\":\"DGrid AI Docs\",\"url\":\"https://docs.dgrid.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-black.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=aa7da302786ec058e3c91526a127736d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dgrid.ai#website\",\"name\":\"DGrid AI Docs\",\"url\":\"https://docs.dgrid.ai\",\"publisher\":{\"@id\":\"https://docs.dgrid.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits#webpage\",\"url\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\",\"name\":\"Édition d'images Qwen\",\"description\":\"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.\",\"dateModified\":\"2026-06-15T08:33:40.748Z\",\"isPartOf\":{\"@id\":\"https://docs.dgrid.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API DE MODÈLES\",\"item\":\"https://docs.dgrid.ai/fr/api-reference/chat/create-chat-completion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Images\",\"item\":\"https://docs.dgrid.ai/fr/api-reference/images/gemini-native-format\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Édition d'images Qwen\",\"item\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits#apireference\",\"headline\":\"Édition d'images Qwen\",\"name\":\"Édition d'images Qwen\",\"description\":\"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an input.messages wrapper.\",\"url\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dgrid.ai/fr/api-reference/images/qwen-image-edits#webpage\"},\"dateModified\":\"2026-06-15T08:33:40.748Z\",\"publisher\":{\"@id\":\"https://docs.dgrid.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dgrid.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DGrid AI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DGrid AI Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-reference/images/qwen-image-edits"}]},{"language":"zh-Hant","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"部落格"},{"href":"https://telegram.me/dgrid_ai","label":"支援"}],"primary":{"type":"button","label":"儀表板","href":"https://dgrid.ai/overview"}},"pages":[{"title":"zh-Hant","href":"/zh-Hant/api-reference/images/qwen-image-edits"}]},{"language":"ko","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"블로그"},{"href":"https://telegram.me/dgrid_ai","label":"지원"}],"primary":{"type":"button","label":"대시보드","href":"https://dgrid.ai/overview"}},"pages":[{"title":"ko","href":"/ko/api-reference/images/qwen-image-edits"}]},{"language":"fr","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Assistance"}],"primary":{"type":"button","label":"Tableau de bord","href":"https://dgrid.ai/overview"}},"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/fr"}]},{"tab":"Référence API","icon":"code","groups":[{"group":"PRISE EN MAIN","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/fr/api-reference/introduction"}]},{"group":"API DE MODÈLES","pages":[{"group":"Chat","pages":[{"title":"Créer une complétion de chat","sidebarTitle":"Créer une complétion de chat","openapi":"api-reference/openapi.json POST /v1/chat/completions","href":"/fr/api-reference/chat/create-chat-completion"},{"title":"Créer une réponse","sidebarTitle":"Créer une réponse","openapi":"api-reference/openapi.json POST /v1/responses","href":"/fr/api-reference/chat/create-response"},{"title":"Créer un message","sidebarTitle":"Créer un message","openapi":"api-reference/openapi.json POST /v1/messages","href":"/fr/api-reference/chat/create-message"},{"title":"Générer du contenu","sidebarTitle":"Générer du contenu","openapi":"api-reference/openapi.json POST /v1/models/{model}:generateContent","href":"/fr/api-reference/chat/generate-content"},{"title":"Reconnaissance média Gemini","sidebarTitle":"Reconnaissance média Gemini","openapi":"api-reference/openapi.json POST /v1/models/{model}:generateContent","href":"/fr/api-reference/chat/gemini-media-recognition"}]},{"group":"Complétions","pages":[{"title":"Créer une complétion","sidebarTitle":"Créer une complétion","openapi":"api-reference/openapi.json POST /v1/completions","href":"/fr/api-reference/completions/create-completion"}]},{"group":"Embeddings","pages":[{"title":"Créer un embedding","sidebarTitle":"Créer un embedding","openapi":"api-reference/openapi.json POST /v1/embeddings","href":"/fr/api-reference/embeddings/create-embedding"},{"title":"Créer un embedding de moteur","sidebarTitle":"Créer un embedding de moteur","openapi":"api-reference/openapi.json POST /v1/engines/{engine}/embeddings","href":"/fr/api-reference/embeddings/create-engine-embedding"}]},{"group":"Images","pages":[{"title":"Format Gemini natif","sidebarTitle":"Format Gemini natif","openapi":"api-reference/openapi.json POST /v1/models/{model}:generateContent","href":"/fr/api-reference/images/gemini-native-format"},{"title":"Format de chat OpenAI","sidebarTitle":"Format de chat OpenAI","openapi":"api-reference/openapi.json POST /v1/chat/completions","href":"/fr/api-reference/images/openai-chat-format"},{"title":"Créer une image","sidebarTitle":"Créer une image","openapi":"api-reference/openapi.json POST /v1/images/generations","href":"/fr/api-reference/images/create-image"},{"title":"Générations d'images Qwen","sidebarTitle":"Générations d'images Qwen","openapi":"api-reference/openapi.json POST /v1/images/generations","href":"/fr/api-reference/images/qwen-image-generations"},{"title":"Modifier une image","sidebarTitle":"Modifier une image","openapi":"api-reference/openapi.json POST /v1/images/edits","description":"Edit an uploaded image with an optional mask using the OpenAI-compatible image editing endpoint. Also accepts Qwen-compatible JSON payloads with an `input.messages` wrapper.","href":"/fr/api-reference/images/edit-image"},{"title":"Édition d'images Qwen","sidebarTitle":"Édition d'images Qwen","openapi":"api-reference/openapi.json POST /v1/images/edits","href":"/fr/api-reference/images/qwen-image-edits"}]},{"group":"Audio","pages":[{"title":"Format Gemini natif","sidebarTitle":"Format Gemini natif","openapi":"api-reference/openapi.json POST /v1/models/{model}:generateContent","description":"Gemini-native generateContent interface for text chat, multimodal media recognition (images, audio, video), speech synthesis, and image generation with structured parts. Use `generationConfig` to request specific response modalities such as speech (`speechConfig`) or images (`imageConfig`).","href":"/fr/api-reference/audio/native-gemini-format"},{"title":"Créer une synthèse vocale","sidebarTitle":"Créer une synthèse vocale","openapi":"api-reference/openapi.json POST /v1/audio/speech","href":"/fr/api-reference/audio/create-speech"},{"title":"Créer une transcription","sidebarTitle":"Créer une transcription","openapi":"api-reference/openapi.json POST /v1/audio/transcriptions","href":"/fr/api-reference/audio/create-transcription"},{"title":"Créer une traduction","sidebarTitle":"Créer une traduction","openapi":"api-reference/openapi.json POST /v1/audio/translations","href":"/fr/api-reference/audio/create-translation"}]},{"group":"Modération","pages":[{"title":"Créer une modération","sidebarTitle":"Créer une modération","openapi":"api-reference/openapi.json POST /v1/moderations","href":"/fr/api-reference/moderations/create-moderation"}]},{"group":"Modèles","pages":[{"title":"Lister les modèles","sidebarTitle":"Lister les modèles","openapi":"api-reference/openapi.json GET /v1/models","href":"/fr/api-reference/models/list-models"}]},{"group":"Utilisation et facturation","pages":[{"title":"Obtenir les détails de facturation d’une requête","sidebarTitle":"Détails de facturation","href":"/fr/api-reference/usage-and-billing/get-request-billing-details"}]},{"group":"Temps réel","pages":[{"title":"Realtime","sidebarTitle":"Realtime","href":"/fr/ai-gateway/model-api/realtime"}]}]},{"group":"API DE GESTION","pages":[{"title":"Gestion des clés API","sidebarTitle":"Gestion des clés API","href":"/fr/management-api-keys"},{"title":"Consulter le solde du compte","sidebarTitle":"Consulter le solde du compte","href":"/fr/api-reference/management/get-account-balance"}]},{"group":"WEBHOOKS","pages":[{"title":"Guide Webhook","sidebarTitle":"Guide Webhook","href":"/fr/api-reference/webhooks/overview"}]},{"group":"API X402","pages":[{"title":"x402 API","sidebarTitle":"Aperçu","href":"/fr/x402/overview"},{"title":"Référence API","sidebarTitle":"Référence API","href":"/fr/x402/api-reference"}]}]}]},{"language":"es","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Soporte"}],"primary":{"type":"button","label":"Panel","href":"https://dgrid.ai/overview"}},"pages":[{"title":"es","href":"/es/api-reference/images/qwen-image-edits"}]}]},"title":"Édition d'images Qwen - DGrid AI Docs","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}