{
"success": false,
"error": "Missing image",
"message": "An image file is required for image-to-image editing",
"request_id": "f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"
}
{
"success": false,
"error": "Invalid API key",
"message": "The provided API key is invalid or has been revoked",
"request_id": "req-abc123"
}
{
"success": false,
"error": "Invalid API key",
"message": "The provided API key is invalid or has been revoked",
"request_id": "req-abc123"
}
{
"success": false,
"error": "File too large",
"message": "Maximum image size is 10MB",
"request_id": "f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"
}
{
"success": false,
"error": "Invalid API key",
"message": "The provided API key is invalid or has been revoked",
"request_id": "req-abc123"
}
{
"success": false,
"error": "Service unavailable",
"message": "Image generation service is not configured",
"request_id": "f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"
}
Modèles & Génération IA
Modifier les images
Edit existing images using Google Gemini 2.5 Flash Image with text instructions.
All requests and responses are processed through SMLTP for security and compliance.
This endpoint is specifically designed for image-to-image editing where:
An image file is required (unlike /images/generations where it’s optional)
A text prompt describes how to edit or transform the image
The edited image is returned with the same quality and format options
All prompts and responses are automatically processed through SMLTP for audit logging and compliance.
POST
/
images
/
edits
Image-to-Image Editing
curl --request POST \ --url https://secureai.hiperai.ai/api/external/images/edits \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'prompt=Add dramatic sunset colors to the sky and enhance the overall atmosphere' \ --form image=@example-file \ --form smltp_policy=internal \ --form response_format=url
Modifiez les images existantes à l’aide de Google Gemini 2.5 Flash Image avec des instructions textuelles. Ce point de terminaison est spécifiquement conçu pour la édition d’image à image où :
Un fichier image est obligatoire (contrairement à /images/generations où il est facultatif)
Une invite textuelle décrit comment modifier ou transformer l’image
L’image éditée est renvoyée avec les mêmes options de qualité et de format
Toutes les invites et réponses sont automatiquement traitées via SMLTP pour la journalisation des audits et la conformité.
{ "success": false, "error": "Service unavailable", "message": "Image generation service is not configured", "request_id": "f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SecureAI","colors":{"primary":"#0066FF","light":"#0066FF","dark":"#0066FF"},"logo":{"light":"https://mintcdn.com/hiper-ai/OxdQRluHRfLLri8S/img/hiper_ai_official.png?fit=max\u0026auto=format\u0026n=OxdQRluHRfLLri8S\u0026q=85\u0026s=497afb0927d9949816a66f9bb841682b","dark":"https://mintcdn.com/hiper-ai/OxdQRluHRfLLri8S/img/logo-darkmode.png?fit=max\u0026auto=format\u0026n=OxdQRluHRfLLri8S\u0026q=85\u0026s=dd347e4a4b72c2737dbc17a8851c85d6"},"favicon":"https://mintcdn.com/hiper-ai/OxdQRluHRfLLri8S/img/HiperAI-logo-dark.png?fit=max\u0026auto=format\u0026n=OxdQRluHRfLLri8S\u0026q=85\u0026s=aed824f70d135b0e4d35c8a4b7eaac43","api":{"openapi":"openapi.yaml","playground":{"display":"interactive"},"examples":{"languages":["bash","python","javascript"]}},"navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"footer":{"socials":{"x":"https://twitter.com/hiperai","github":"https://github.com/hiperai","linkedin":"https://linkedin.com/company/hiperai"}},"integrations":{"ga4":{"measurementId":"G-XXXXXXXXXX"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"es","default":true,"navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Soporte"}]},"href":"intro"},{"language":"en","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"href":"en/intro"},{"language":"zh","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"技术支持"}]},"href":"zh/intro"},{"language":"pt","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Suporte"}]},"href":"pt/intro"},{"language":"ja","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"サポート"}]},"href":"ja/intro"},{"language":"fr","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"href":"fr/intro"},{"language":"de","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"href":"de/intro"},{"language":"ko","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"고객지원"}]},"href":"ko/intro"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hiper-ai","hasAudioNarration":false,"actualSubdomain":"hiper-ai","customDomains":["docs.hiperai.com"],"gitSource":{"type":"github","owner":"hiper-ai","repo":"secureai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad6b4b017d9e3869f145d89","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"es","tag":"Referencia API","count":40},{"language":"de","tag":"API-Referenz","count":40},{"language":"en","tag":"API Reference","count":40},{"language":"fr","tag":"Référence API","count":40},{"language":"ja","tag":"API リファレンス","count":40},{"language":"ko","tag":"API 레퍼런스","count":40},{"language":"pt","tag":"Referência da API","count":40},{"language":"zh","tag":"API 参考","count":40},{"language":"es","tag":"Documentación","count":28},{"language":"de","tag":"Dokumentation","count":28},{"language":"en","tag":"Documentation","count":28},{"language":"fr","tag":"Documentation","count":28},{"language":"ja","tag":"ドキュメント","count":28},{"language":"ko","tag":"문서","count":28},{"language":"pt","tag":"Documentação","count":28},{"language":"zh","tag":"文档","count":28},{"language":"es","tag":"Integraciones","count":20},{"language":"en","tag":"Integrations","count":20},{"language":"de","tag":"Integrationen","count":17},{"language":"fr","tag":"Intégrations","count":17},{"language":"ja","tag":"連携","count":17},{"language":"ko","tag":"연동","count":17},{"language":"pt","tag":"Integrações","count":17},{"language":"zh","tag":"集成","count":17},{"language":"es","tag":"Modelos y Generación AI","count":9},{"language":"de","tag":"Modelle \u0026 KI-Generierung","count":9},{"language":"en","tag":"Models \u0026 AI Generation","count":9},{"language":"fr","tag":"Modèles \u0026 Génération IA","count":9},{"language":"ja","tag":"モデル \u0026 AI 生成","count":9},{"language":"ko","tag":"모델 및 AI 생성","count":9},{"language":"pt","tag":"Modelos \u0026 Geração de IA","count":9},{"language":"zh","tag":"模型与 AI 生成","count":9},{"language":"es","tag":"Seguridad, Guardrails y Auditoría","count":8},{"language":"es","tag":"Usuarios y Acceso (IAM)","count":8},{"language":"de","tag":"Sicherheit, Guardrails \u0026 Auditierung","count":8},{"language":"de","tag":"Benutzer \u0026 Zugriff (IAM)","count":8},{"language":"en","tag":"Security, Guardrails \u0026 Auditing","count":8},{"language":"en","tag":"Users \u0026 Access (IAM)","count":8},{"language":"fr","tag":"Sécurité, Guardrails \u0026 Audit","count":8},{"language":"fr","tag":"Utilisateurs \u0026 Accès (IAM)","count":8},{"language":"ja","tag":"セキュリティ、ガードレール \u0026 監査","count":8},{"language":"ja","tag":"ユーザー \u0026 アクセス (IAM)","count":8},{"language":"ko","tag":"보안, 가드레일 및 감사","count":8},{"language":"ko","tag":"사용자 및 접근 (IAM)","count":8},{"language":"pt","tag":"Segurança, Guardrails \u0026 Auditoria","count":8},{"language":"pt","tag":"Usuários \u0026 Acesso (IAM)","count":8},{"language":"zh","tag":"安全、护栏与审计","count":8},{"language":"zh","tag":"用户与访问 (IAM)","count":8},{"language":"es","tag":"Endpoint Agent","count":7},{"language":"de","tag":"Endpoint Agent","count":7},{"language":"en","tag":"Endpoint Agent","count":7},{"language":"fr","tag":"Agent Endpoint","count":7},{"language":"ja","tag":"エンドポイントエージェント","count":7},{"language":"ko","tag":"엔드포인트 에이전트","count":7},{"language":"pt","tag":"Endpoint Agent","count":7},{"language":"zh","tag":"终端代理 (Endpoint Agent)","count":7},{"language":"es","tag":"Facturación, Cuotas y Webhooks","count":6},{"language":"es","tag":"Knowledge Base y RAG","count":6},{"language":"es","tag":"Cloud, NHI y gestión","count":6},{"language":"de","tag":"Abrechnung, Kontingente \u0026 Webhooks","count":6},{"language":"de","tag":"Knowledge Base \u0026 RAG","count":6},{"language":"en","tag":"Billing, Quotas \u0026 Webhooks","count":6},{"language":"en","tag":"Knowledge Base \u0026 RAG","count":6},{"language":"en","tag":"Cloud, NHI \u0026 Management","count":6},{"language":"fr","tag":"Facturation, Quotas \u0026 Webhooks","count":6},{"language":"fr","tag":"Base de Connaissances \u0026 RAG","count":6},{"language":"ja","tag":"請求、クォータ \u0026 Webhook","count":6},{"language":"ja","tag":"ナレッジベース \u0026 RAG","count":6},{"language":"ko","tag":"청구, 할당량 및 웹훅","count":6},{"language":"ko","tag":"지식 베이스 및 RAG","count":6},{"language":"pt","tag":"Faturamento, Cotas \u0026 Webhooks","count":6},{"language":"pt","tag":"Knowledge Base \u0026 RAG","count":6},{"language":"zh","tag":"计费、配额与 Webhook","count":6},{"language":"zh","tag":"知识库与 RAG","count":6},{"language":"de","tag":"Erste Schritte","count":5},{"language":"fr","tag":"Premiers Pas","count":5},{"language":"ja","tag":"はじめに","count":5},{"language":"ko","tag":"시작하기","count":5},{"language":"pt","tag":"Primeiros Passos","count":5},{"language":"zh","tag":"起步入门","count":5}]},"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark img[src$=\"/img/icons/openai.svg\"],.dark img[src$=\"/img/icons/anthropic.svg\"],.dark img[src$=\"/img/icons/splunk.svg\"]{filter:invert(1)}"}],"page":{"pagePath":"fr/api/images/edits","slug":"/fr/api/images/edits","pageMetadata":{"sidebar_position":2,"title":"Modifier les images","openapi":"POST /images/edits","description":"Edit existing images using Google Gemini 2.5 Flash Image with text instructions.\nAll requests and responses are processed through SMLTP for security and compliance.\n\nThis endpoint is specifically designed for **image-to-image editing** where:\n- An image file is **required** (unlike `/images/generations` where it's optional)\n- A text prompt describes how to edit or transform the image\n- The edited image is returned with the same quality and format options\n\nAll prompts and responses are automatically processed through SMLTP for audit logging and compliance.\n","href":"/fr/api/images/edits"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Edit existing images using Google Gemini 2.5 Flash Image with text instructions.\\nAll requests and responses are processed through SMLTP for security and compliance.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This endpoint is specifically designed for \", _jsx(_components.strong, {\n children: \"image-to-image editing\"\n }), \" where:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"An image file is \", _jsx(_components.strong, {\n children: \"required\"\n }), \" (unlike \", _jsx(_components.code, {\n children: \"/images/generations\"\n }), \" where it’s optional)\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"A text prompt describes how to edit or transform the image\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"The edited image is returned with the same quality and format options\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\"\n })]\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`modifier-les-images`,children:`Modifier les images`}),`\n`,_jsx(_components.p,{children:`Modifiez les images existantes à l’aide de Google Gemini 2.5 Flash Image avec des instructions textuelles.`}),`\n`,_jsx(Heading,{level:`2`,id:`point-de-terminaison`,children:`Point de terminaison`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /images/edits`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`description`,children:`Description`}),`\n`,_jsxs(_components.p,{children:[`Modifiez les images existantes à l’aide de Google Gemini 2.5 Flash Image avec des instructions textuelles. Ce point de terminaison est spécifiquement conçu pour la `,_jsx(_components.strong,{children:`édition d’image à image`}),` où\\xA0:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Un fichier image est `,_jsx(_components.strong,{children:`obligatoire`}),` (contrairement à `,_jsx(_components.code,{children:`/images/generations`}),` où il est facultatif)`]}),`\n`,_jsx(_components.li,{children:`Une invite textuelle décrit comment modifier ou transformer l’image`}),`\n`,_jsx(_components.li,{children:`L’image éditée est renvoyée avec les mêmes options de qualité et de format`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Toutes les invites et réponses sont automatiquement traitées via SMLTP pour la journalisation des audits et la conformité.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentification`,children:`Authentification`}),`\n`,_jsx(_components.p,{children:`Obligatoire\\xA0: clé API`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sk-your-api-key-here`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`corps-de-la-demande`,children:`Corps de la demande`}),`\n`,_jsxs(_components.p,{children:[`Ce point de terminaison accepte le format `,_jsx(_components.code,{children:`multipart/form-data`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`paramètres`,children:`Paramètres`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Paramètre`}),_jsx(_components.th,{children:`Tapez`}),_jsx(_components.th,{children:`Obligatoire`}),_jsx(_components.th,{children:`Descriptif`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Oui`}),_jsx(_components.td,{children:`Instructions textuelles décrivant comment modifier ou transformer l’image téléchargée (1 à 4 000 caractères)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image`})}),_jsx(_components.td,{children:`binaire`}),_jsx(_components.td,{children:`Oui`}),_jsx(_components.td,{children:`Fichier image à modifier (JPEG, PNG, WEBP ou GIF, max 10 Mo)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_policy`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Non`}),_jsx(_components.td,{children:`Politique de sécurité SMLTP (par défaut\\xA0: “interne”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response_format`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Non`}),_jsx(_components.td,{children:`Format de réponse\\xA0: “url” ou “b64_json” (par défaut\\xA0: “url”)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`exemples-de-requêtes`,children:`Exemples de requêtes`}),`\n`,_jsx(Heading,{level:`3`,id:`boucle`,children:`boucle`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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://{customer.name}.hiperai.ai/api/external/images/edits\"`}),_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 sk-your-api-key-here\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt=Add dramatic sunset colors to the sky and enhance the overall atmosphere\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image=@/path/to/image.jpg\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"smltp_policy=internal\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"response_format=url\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`javascript/node-js`,children:`JavaScript/Node.js`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` formData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FormData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'prompt'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Add dramatic sunset colors to the sky and enhance the overall atmosphere'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fileInput`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'smltp_policy'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'internal'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'response_format'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'url'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://{customer.name}.hiperai.ai/api/external/images/edits'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer sk-your-api-key-here'`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formData`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Edited image URL:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`###Python`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{customer.name}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.hiperai.ai/api/external/images/edits\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer sk-your-api-key-here\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image.jpg'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'rb'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` files `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'image'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: f}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'prompt'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Add dramatic sunset colors to the sky and enhance the overall atmosphere'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'smltp_policy'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'internal'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'response_format'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'url'`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`files, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Edited image URL:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'data'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'url'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`réponse`,children:`Réponse`}),`\n`,_jsx(Heading,{level:`3`,id:`réponse-réussie-200`,children:`Réponse réussie (200)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,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:`22`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806\"`}),_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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"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\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1705312200`}),_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:`\"http://localhost:5173/uploads/secureai_image_api_edit_68c5c6d2d57c85b102eb05e2_f55bb4aa_0.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:` \"revised_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Add dramatic sunset colors to the sky and enhance the overall atmosphere\"`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_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:`\"google/gemini-2.5-flash-image-preview\"`}),_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:`\"Google\"`}),_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:` \"total_images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` \"is_image_to_image\"`}),_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:` \"text_response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"smltp_trace_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"trx-6caec994-73af-4f2c-9e13-572d53262f2a\"`}),_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:` \"smltp_bundle_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jti-26464307-d455-4a3d-9ca4-8ec144cb601c\"`}),_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:` \"smltp_policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"internal\"`})]}),`\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`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Champ`}),_jsx(_components.th,{children:`Tapez`}),_jsx(_components.th,{children:`Descriptif`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`success`})}),_jsx(_components.td,{children:`booléen`}),_jsx(_components.td,{children:`Toujours vrai pour les demandes réussies`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Identifiant unique de la demande`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Type d’objet : “image.edit”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created`})}),_jsx(_components.td,{children:`entier`}),_jsx(_components.td,{children:`Horodatage Unix du moment où l’image a été modifiée`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`tableau`}),_jsx(_components.td,{children:`Tableau d’images éditées`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`objet`}),_jsx(_components.td,{children:`Métadonnées supplémentaires, y compris le suivi SMLTP`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`objet-image`,children:`Objet image`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Champ`}),_jsx(_components.th,{children:`Tapez`}),_jsx(_components.th,{children:`Descriptif`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`URL pour accéder à l’image modifiée (lorsque format_réponse est “url”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`b64_json`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Données d’image codées en base64 (lorsque format_réponse est “b64_json”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revised_prompt`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`L’invite réellement utilisée pour l’édition (peut différer de l’entrée)`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`objet-de-métadonnées`,children:`Objet de métadonnées`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Champ`}),_jsx(_components.th,{children:`Tapez`}),_jsx(_components.th,{children:`Descriptif`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Modèle utilisé\\xA0: “google/gemini-2.5-flash-image-preview”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Fournisseur\\xA0: “Google”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_images`})}),_jsx(_components.td,{children:`entier`}),_jsx(_components.td,{children:`Nombre total d’images (toujours 1 pour les modifications)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_image_to_image`})}),_jsx(_components.td,{children:`booléen`}),_jsx(_components.td,{children:`Toujours vrai pour ce point de terminaison`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text_response`})}),_jsx(_components.td,{children:`chaîne|null`}),_jsx(_components.td,{children:`Réponse textuelle facultative du modèle`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_trace_id`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`ID de trace SMLTP pour le suivi des audits`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_bundle_id`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`ID du bundle SMLTP pour le suivi des audits`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_policy`})}),_jsx(_components.td,{children:`chaîne`}),_jsx(_components.td,{children:`Stratégie SMLTP appliquée`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`réponses-d’erreur`,children:`Réponses d’erreur`}),`\n`,_jsx(Heading,{level:`3`,id:`400-requête-incorrecte`,children:`400 Requête incorrecte`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing 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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"An image file is required for image-to-image editing\"`}),_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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`401-non-autorisé`,children:`401 Non autorisé`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid API key\"`}),_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:`\"The provided API key is invalid or has been revoked\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`403-interdit`,children:`403 Interdit`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Access denied\"`}),_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:`\"SMLTP policy not allowed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`413-charge-utile-trop-importante`,children:`413 Charge utile trop importante`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"File too large\"`}),_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:`\"Maximum image size is 10MB\"`}),_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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`500-erreur-de-serveur-interne`,children:`500 Erreur de serveur interne`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Internal server 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:`\"Image editing failed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`503-service-indisponible`,children:`503 Service indisponible`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Service unavailable\"`}),_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:`\"Image generation service is not configured\"`}),_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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`remarques`,children:`Remarques`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Formats d’images pris en charge\\xA0: JPEG, PNG, WEBP, GIF`}),`\n`,_jsx(_components.li,{children:`Taille maximale du fichier\\xA0: 10\\xA0Mo par image`}),`\n`,_jsxs(_components.li,{children:[`Le fichier image est `,_jsx(_components.strong,{children:`obligatoire`}),` pour ce point de terminaison (contrairement à `,_jsx(_components.code,{children:`/images/generations`}),`)`]}),`\n`,_jsx(_components.li,{children:`L’invite décrit comment modifier ou transformer l’image téléchargée`}),`\n`,_jsx(_components.li,{children:`Toutes les demandes sont traitées via SMLTP pour des raisons de sécurité et de conformité`}),`\n`,_jsxs(_components.li,{children:[`Utilisez `,_jsx(_components.code,{children:`response_format: \"b64_json\"`}),` pour recevoir des données d’image codées en base64 au lieu d’URL`]}),`\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":{"sidebar_position":2,"title":"Modifier les images","openapi":"POST /images/edits","description":"Edit existing images using Google Gemini 2.5 Flash Image with text instructions.\nAll requests and responses are processed through SMLTP for security and compliance.\n\nThis endpoint is specifically designed for **image-to-image editing** where:\n- An image file is **required** (unlike `/images/generations` where it's optional)\n- A text prompt describes how to edit or transform the image\n- The edited image is returned with the same quality and format options\n\nAll prompts and responses are automatically processed through SMLTP for audit logging and compliance.\n","href":"/fr/api/images/edits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Modifier les images","slug":"modifier-les-images","depth":1,"children":[]},{"title":"Point de terminaison","slug":"point-de-terminaison","depth":2,"children":[]},{"title":"Description","slug":"description","depth":2,"children":[]},{"title":"Authentification","slug":"authentification","depth":2,"children":[]},{"title":"Corps de la demande","slug":"corps-de-la-demande","depth":2,"children":[{"title":"Paramètres","slug":"paramètres","depth":3,"children":[]}]},{"title":"Exemples de requêtes","slug":"exemples-de-requêtes","depth":2,"children":[{"title":"boucle","slug":"boucle","depth":3,"children":[]},{"title":"JavaScript/Node.js","slug":"javascript/node-js","depth":3,"children":[]}]},{"title":"Réponse","slug":"réponse","depth":2,"children":[{"title":"Réponse réussie (200)","slug":"réponse-réussie-200","depth":3,"children":[]},{"title":"Champs de réponse","slug":"champs-de-réponse","depth":3,"children":[]},{"title":"Objet image","slug":"objet-image","depth":3,"children":[]},{"title":"Objet de métadonnées","slug":"objet-de-métadonnées","depth":3,"children":[]}]},{"title":"Réponses d’erreur","slug":"réponses-d’erreur","depth":2,"children":[{"title":"400 Requête incorrecte","slug":"400-requête-incorrecte","depth":3,"children":[]},{"title":"401 Non autorisé","slug":"401-non-autorisé","depth":3,"children":[]},{"title":"403 Interdit","slug":"403-interdit","depth":3,"children":[]},{"title":"413 Charge utile trop importante","slug":"413-charge-utile-trop-importante","depth":3,"children":[]},{"title":"500 Erreur de serveur interne","slug":"500-erreur-de-serveur-interne","depth":3,"children":[]},{"title":"503 Service indisponible","slug":"503-service-indisponible","depth":3,"children":[]}]},{"title":"Remarques","slug":"remarques","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Image-to-Image Editing","description":"Edit existing images using Google Gemini 2.5 Flash Image with text instructions.\nAll requests and responses are processed through SMLTP for security and compliance.\n\nThis endpoint is specifically designed for **image-to-image editing** where:\n- An image file is **required** (unlike `/images/generations` where it's optional)\n- A text prompt describes how to edit or transform the image\n- The edited image is returned with the same quality and format options\n\nAll prompts and responses are automatically processed through SMLTP for audit logging and compliance.\n","tags":["Images"],"security":["c2015ec2-dc0d-4b76-a9e0-5e49e82a047a"],"requestBody":"79d59904-a59d-4bfc-a6c9-b91af9aa955f","responses":{"200":"1a8e6141-0bc9-4ffe-9819-5baee20e20f0","400":"6cf7d63c-3ff9-47e7-8763-85d72e0f76e6","401":"df05426d-2301-47fd-9b91-4d36be75332e","403":"fb3d9c7c-8941-4b62-b9db-ddd344f31e19","413":"e6cb4a63-9c8b-4938-9749-b9efb0debb56","500":"76d1f54f-37b9-48d5-8c6a-0a9d3219b875","503":"f2cc75cb-85dc-4f0d-bcc0-f6a1aa7c27a0"},"method":"post","type":"path","servers":["fbd72946-9886-4e81-9a8d-c4d03a0f013a","c25ed417-4e80-41d3-81a9-ad22193527d3"],"path":"/images/edits","baseUrlOptions":["https://secureai.hiperai.ai/api/external","http://localhost:3010/api/external"],"title":"Image-to-Image Editing","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["prompt","image"],"properties":{"prompt":{"type":"string","description":"Text instructions describing how to edit or transform the uploaded image","example":"Add dramatic sunset colors to the sky and enhance the overall atmosphere","minLength":1,"maxLength":4000,"isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"image":{"type":"string","format":"binary","description":"Image file to edit (required, JPEG, PNG, WEBP, or GIF, max 10MB)","isRequired":true,"uniqueKey":"image","typeLabel":"file"},"smltp_policy":{"type":"string","description":"SMLTP security policy to apply (e.g., 'internal', 'public', 'confidential', 'hipaa', 'gdpr')","default":"internal","example":"internal","uniqueKey":"smltp_policy","typeLabel":"string"},"response_format":{"type":"string","description":"The format of the response images","enum":["url","b64_json"],"default":"url","example":"url","uniqueKey":"response_format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"prompt":"Add dramatic sunset colors to the sky and enhance the overall atmosphere","image":"\u003cstring>","smltp_policy":"internal","response_format":"url"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1a8e6141-0bc9-4ffe-9819-5baee20e20f0":{"description":"Image edited successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"id":{"type":"string","description":"Unique request identifier","example":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806","uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","example":"image.edit","uniqueKey":"object","typeLabel":"string"},"created":{"type":"integer","description":"Unix timestamp of when the image was edited","example":1705312200,"uniqueKey":"created","typeLabel":"integer"},"data":{"type":"array","description":"Array of edited images","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"URL to access the edited image (when response_format is 'url')","example":"http://localhost:5173/uploads/secureai_image_api_edit_68c5c6d2d57c85b102eb05e2_f55bb4aa_0.png","uniqueKey":"data.items.[INDEX].url","typeLabel":"string\u003curi>"},"b64_json":{"type":"string","description":"Base64-encoded image data (when response_format is 'b64_json')","example":"iVBORw0KGgoAAAANSUhEUgAA...","uniqueKey":"data.items.[INDEX].b64_json","typeLabel":"string"},"revised_prompt":{"type":"string","description":"The prompt that was actually used for editing (may differ from input)","example":"Add dramatic sunset colors to the sky and enhance the overall atmosphere","uniqueKey":"data.items.[INDEX].revised_prompt","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data","typeLabel":"object[]"},"metadata":{"type":"object","properties":{"model":{"type":"string","example":"google/gemini-2.5-flash-image-preview","uniqueKey":"metadata.model","typeLabel":"string"},"provider":{"type":"string","example":"Google","uniqueKey":"metadata.provider","typeLabel":"string"},"total_images":{"type":"integer","example":1,"uniqueKey":"metadata.total_images","typeLabel":"integer"},"is_image_to_image":{"type":"boolean","description":"Always true for this endpoint","example":true,"uniqueKey":"metadata.is_image_to_image","typeLabel":"boolean"},"text_response":{"oneOf":[{"type":"string","description":"Optional text response from the model","example":null,"uniqueKey":"metadata.text_response.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional text response from the model","example":null,"uniqueKey":"metadata.text_response.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.text_response","typeLabel":"string | null"},"smltp_trace_id":{"type":"string","description":"SMLTP trace ID for audit tracking","example":"trx-6caec994-73af-4f2c-9e13-572d53262f2a","uniqueKey":"metadata.smltp_trace_id","typeLabel":"string"},"smltp_bundle_id":{"type":"string","description":"SMLTP bundle ID for audit tracking","example":"jti-26464307-d455-4a3d-9ca4-8ec144cb601c","uniqueKey":"metadata.smltp_bundle_id","typeLabel":"string"},"smltp_policy":{"type":"string","description":"SMLTP policy that was applied","example":"internal","uniqueKey":"metadata.smltp_policy","typeLabel":"string"}},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806","object":"image.edit","created":1705312200,"data":[{"url":"http://localhost:5173/uploads/secureai_image_api_edit_68c5c6d2d57c85b102eb05e2_f55bb4aa_0.png","revised_prompt":"Add dramatic sunset colors to the sky and enhance the overall atmosphere"}],"metadata":{"model":"google/gemini-2.5-flash-image-preview","provider":"Google","total_images":1,"is_image_to_image":true,"text_response":null,"smltp_trace_id":"trx-6caec994-73af-4f2c-9e13-572d53262f2a","smltp_bundle_id":"jti-26464307-d455-4a3d-9ca4-8ec144cb601c","smltp_policy":"internal"}},"examples":{"Example":{"title":"Example","value":{"success":true,"id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806","object":"image.edit","created":1705312200,"data":[{"url":"http://localhost:5173/uploads/secureai_image_api_edit_68c5c6d2d57c85b102eb05e2_f55bb4aa_0.png","revised_prompt":"Add dramatic sunset colors to the sky and enhance the overall atmosphere"}],"metadata":{"model":"google/gemini-2.5-flash-image-preview","provider":"Google","total_images":1,"is_image_to_image":true,"text_response":null,"smltp_trace_id":"trx-6caec994-73af-4f2c-9e13-572d53262f2a","smltp_bundle_id":"jti-26464307-d455-4a3d-9ca4-8ec144cb601c","smltp_policy":"internal"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6cf7d63c-3ff9-47e7-8763-85d72e0f76e6":{"description":"Invalid request parameters (missing prompt, missing image, invalid image format, etc.)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":"Missing image","message":"An image file is required for image-to-image editing","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Missing image","message":"An image file is required for image-to-image editing","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"}}},"exampleType":"examples"}},"exampleType":"examples"},"df05426d-2301-47fd-9b91-4d36be75332e":{"description":"Invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Invalid API key","message":"The provided API key is invalid or has been revoked","request_id":"req-abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"fb3d9c7c-8941-4b62-b9db-ddd344f31e19":{"description":"Access denied (SMLTP policy not allowed)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Invalid API key","message":"The provided API key is invalid or has been revoked","request_id":"req-abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"e6cb4a63-9c8b-4938-9749-b9efb0debb56":{"description":"Image file too large (maximum 10MB)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":"File too large","message":"Maximum image size is 10MB","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"File too large","message":"Maximum image size is 10MB","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"}}},"exampleType":"examples"}},"exampleType":"examples"},"76d1f54f-37b9-48d5-8c6a-0a9d3219b875":{"description":"Internal server error or image editing failed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Invalid API key","message":"The provided API key is invalid or has been revoked","request_id":"req-abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"f2cc75cb-85dc-4f0d-bcc0-f6a1aa7c27a0":{"description":"Image generation service unavailable (Gemini service not configured)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Invalid API key","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The provided API key is invalid or has been revoked","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","example":"req-abc123","description":"Request ID for tracking (if available)","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":"Service unavailable","message":"Image generation service is not configured","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Service unavailable","message":"Image generation service is not configured","request_id":"f55bb4aa-ad9a-4b5a-9c94-511bf6fce806"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"c2015ec2-dc0d-4b76-a9e0-5e49e82a047a":{"ApiKeyAuth":{"type":"http","scheme":"bearer","description":"API key authentication using Bearer token format.\nExample: `Authorization: Bearer sk-your-api-key-here`\n","scopes":[]}}},"servers":{"fbd72946-9886-4e81-9a8d-c4d03a0f013a":{"url":"https://secureai.hiperai.ai/api/external","description":"Production server"},"c25ed417-4e80-41d3-81a9-ad22193527d3":{"url":"http://localhost:3010/api/external","description":"Development server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key authentication using Bearer token format.\nExample: `Authorization: Bearer sk-your-api-key-here`\n","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key authentication using Bearer token format.\nExample: `Authorization: Bearer sk-your-api-key-here`\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"hiper-ai","siteName":"SecureAI","title":"Modifier les images - SecureAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api/images/edits","matchLevel":1},"en":{"href":"/en/api/images/edits","matchLevel":1},"zh":{"href":"/zh/api/images/edits","matchLevel":1},"pt":{"href":"/pt/api/images/edits","matchLevel":1},"ja":{"href":"/ja/api/images/edits","matchLevel":1},"fr":{"href":"/fr/api/images/edits","matchLevel":0},"de":{"href":"/de/api/images/edits","matchLevel":1},"ko":{"href":"/ko/api/images/edits","matchLevel":1}}},"lastModified":"2026-09-03T22:54:35.139Z","originalFileLocation":"fr/api/images/edits.md","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 existing images using Google Gemini 2.5 Flash Image with text instructions. All requests and responses are processed through SMLTP for security and compliance. This endpoint is specifically designed for image-to-image editing where: - An image file is required (unlike /images/generations where it\u0026#x27;s optional) - A text prompt describes how to edit or transform the image - The edited image is returned with the same quality and format options All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SecureAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_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/hiper-ai/bbh9RI4BzTPVkV_e/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Modifier les images - SecureAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Edit existing images using Google Gemini 2.5 Flash Image with text instructions. All requests and responses are processed through SMLTP for security and compliance. This endpoint is specifically designed for image-to-image editing where: - An image file is required (unlike /images/generations where it\u0026#x27;s optional) - A text prompt describes how to edit or transform the image - The edited image is returned with the same quality and format options All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SecureAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hiperai.com/fr/api/images/edits\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hiper-ai.mintlify.site/_mintlify/api/og/v2?division=Mod%C3%A8les+%26+G%C3%A9n%C3%A9ration+IA\u0026amp;title=Modifier+les+images\u0026amp;description=Edit+existing+images+using+Google+Gemini+2.5+Flash+Image+with+text+instructions.%0AAll+requests+and+responses+are+processed+through+SMLTP+for+security+and+complia\u0026amp;theme=0bcb0b610d6380443097ef7f\u0026amp;signature=03c433d6dbe5ca56dca75a47625d6cd2f0c9d47a3dec89648d57024a65c00504\">\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=\"Modifier les images - SecureAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Edit existing images using Google Gemini 2.5 Flash Image with text instructions. All requests and responses are processed through SMLTP for security and compliance. This endpoint is specifically designed for image-to-image editing where: - An image file is required (unlike /images/generations where it\u0026#x27;s optional) - A text prompt describes how to edit or transform the image - The edited image is returned with the same quality and format options All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hiper-ai.mintlify.site/_mintlify/api/og/v2?division=Mod%C3%A8les+%26+G%C3%A9n%C3%A9ration+IA\u0026amp;title=Modifier+les+images\u0026amp;description=Edit+existing+images+using+Google+Gemini+2.5+Flash+Image+with+text+instructions.%0AAll+requests+and+responses+are+processed+through+SMLTP+for+security+and+complia\u0026amp;theme=0bcb0b610d6380443097ef7f\u0026amp;signature=03c433d6dbe5ca56dca75a47625d6cd2f0c9d47a3dec89648d57024a65c00504\">\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/hiper-ai/bbh9RI4BzTPVkV_e/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SecureAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hiperai.com/fr/api/images/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/images/edits.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.hiperai.com/fr/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.hiperai.com/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.hiperai.com/en/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.hiperai.com/zh/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.hiperai.com/pt/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.hiperai.com/ja/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.hiperai.com/de/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.hiperai.com/ko/api/images/edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.hiperai.com/api/images/edits\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hiperai.com/#organization\",\"name\":\"SecureAI\",\"url\":\"https://docs.hiperai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hiper-ai/OxdQRluHRfLLri8S/img/hiper_ai_official.png?fit=max\u0026auto=format\u0026n=OxdQRluHRfLLri8S\u0026q=85\u0026s=497afb0927d9949816a66f9bb841682b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hiperai.com#website\",\"name\":\"SecureAI\",\"url\":\"https://docs.hiperai.com\",\"publisher\":{\"@id\":\"https://docs.hiperai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hiperai.com/fr/api/images/edits#webpage\",\"url\":\"https://docs.hiperai.com/fr/api/images/edits\",\"name\":\"Modifier les images\",\"description\":\"Edit existing images using Google Gemini 2.5 Flash Image with text instructions. All requests and responses are processed through SMLTP for security and compliance. This endpoint is specifically designed for image-to-image editing where: - An image file is required (unlike /images/generations where it's optional) - A text prompt describes how to edit or transform the image - The edited image is returned with the same quality and format options All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\",\"dateModified\":\"2026-09-03T22:54:35.139Z\",\"isPartOf\":{\"@id\":\"https://docs.hiperai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hiperai.com/fr/api/images/edits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hiperai.com/fr/api/images/edits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Modèles \u0026 Génération IA\",\"item\":\"https://docs.hiperai.com/fr/api/chat/completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Modifier les images\",\"item\":\"https://docs.hiperai.com/fr/api/images/edits\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hiperai.com/fr/api/images/edits#apireference\",\"headline\":\"Modifier les images\",\"name\":\"Modifier les images\",\"description\":\"Edit existing images using Google Gemini 2.5 Flash Image with text instructions. All requests and responses are processed through SMLTP for security and compliance. This endpoint is specifically designed for image-to-image editing where: - An image file is required (unlike /images/generations where it's optional) - A text prompt describes how to edit or transform the image - The edited image is returned with the same quality and format options All prompts and responses are automatically processed through SMLTP for audit logging and compliance.\",\"url\":\"https://docs.hiperai.com/fr/api/images/edits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hiperai.com/fr/api/images/edits#webpage\"},\"dateModified\":\"2026-09-03T22:54:35.139Z\",\"publisher\":{\"@id\":\"https://docs.hiperai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hiperai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SecureAI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SecureAI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/fr/api/images/edits.md","siteName":"SecureAI","nav":{"global":null,"languages":[{"language":"es","default":true,"navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Soporte"}]},"pages":[{"title":"es","href":"/api/images/edits"}]},{"language":"en","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"pages":[{"title":"en","href":"/en/api/images/edits"}]},{"language":"zh","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"技术支持"}]},"pages":[{"title":"zh","href":"/zh/api/images/edits"}]},{"language":"pt","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Suporte"}]},"pages":[{"title":"pt","href":"/pt/api/images/edits"}]},{"language":"ja","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"サポート"}]},"pages":[{"title":"ja","href":"/ja/api/images/edits"}]},{"language":"fr","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/fr/intro"}]},{"tab":"Intégrations","pages":[{"title":"Intégrations","href":"/fr/integrations/files/google-drive"}]},{"tab":"Référence API","groups":[{"group":"Premiers Pas \u0026 Configuration","pages":[{"title":"Référence API","href":"/fr/api"},{"title":"Présentation de l'authentification","href":"/fr/api/auth/overview"},{"title":"Bilan de santé","openapi":"GET /health","href":"/fr/api/system/health"}]},{"group":"Modèles \u0026 Génération IA","pages":[{"title":"Achèvement du chat","openapi":"POST /chat/completions","href":"/fr/api/chat/completions"},{"title":"Point de terminaison compatible OpenAI","openapi":"POST /v1/chat/completions","href":"/fr/api/chat/openai-compatible"},{"title":"Redondance et basculement","href":"/fr/api/redundancy"},{"title":"Générer des images","openapi":"POST /images/generations","description":"Generate new images from text prompts or transform existing images using Google Gemini 2.5 Flash Image.\nAll requests and responses are processed through SMLTP for security and compliance.\n\nThis endpoint supports:\n- **Text-to-Image**: Generate images from text descriptions\n- **Image-to-Image**: Transform or edit existing images (upload an image file)\n\nAll prompts and responses are automatically processed through SMLTP for audit logging and compliance.\n","href":"/fr/api/images/generations"},{"title":"Modifier les images","openapi":"POST /images/edits","href":"/fr/api/images/edits"},{"title":"Lancer une session WebRTC de synthèse vocale","openapi":"POST /speech/s2s/webrtc","description":"Establishes a WebRTC connection for real-time speech-to-speech conversations using OpenAI Realtime API.\nThis endpoint accepts a WebRTC SDP offer and returns an SDP answer that can be used to establish\na peer connection with OpenAI's Realtime API.\n\n**Usage Flow:**\n1. Client creates a WebRTC offer (RTCPeerConnection.createOffer)\n2. Client sends the SDP offer to this endpoint\n3. This endpoint proxies the offer to OpenAI Realtime API\n4. Client receives SDP answer and establishes WebRTC connection\n5. Client can then have real-time voice conversations with the AI\n\n**S2S Time Tracking:**\n- Each user has a monthly S2S time quota based on their license\n- Time is tracked in minutes and deducted when sessions are logged\n- Use `/speech/s2s/status` to check remaining time\n- Use `/speech/s2s/log-session` to log session duration and deduct time\n\n**SMLTP Integration:**\n- All requests are processed through SMLTP for security and compliance\n- Model validation is enforced based on the specified SMLTP policy\n- Requests are audited and logged for compliance tracking\n","href":"/fr/api/speech/webrtc"},{"title":"Obtenir l'état de l'heure S2S","openapi":"GET /speech/s2s/status","href":"/fr/api/speech/status"},{"title":"Durée de la session S2S","openapi":"POST /speech/s2s/log-session","href":"/fr/api/speech/log-session"},{"title":"Modèles disponibles","openapi":"GET /models","href":"/fr/api/discovery/models"}]},{"group":"Base de Connaissances \u0026 RAG","pages":[{"title":"Répertorier tous les index","openapi":"GET /indexes/all","href":"/fr/api/indexes/list"},{"title":"Créer un index","openapi":"POST /indexes/all","href":"/fr/api/indexes/create"},{"title":"Mettre à jour l'index","openapi":"PUT /indexes/{indexId}","href":"/fr/api/indexes/update"},{"title":"Index de recherche de documents","openapi":"GET /indexes/{indexName}/search","href":"/fr/api/indexes/search"},{"title":"Index des trains avec documents","openapi":"POST /indexes/{indexName}/train","href":"/fr/api/indexes/train"},{"title":"Bases de connaissances disponibles","openapi":"GET /indexes","href":"/fr/api/discovery/indexes"}]},{"group":"Sécurité, Guardrails \u0026 Audit","pages":[{"title":"Vérification de la politique (essai à sec)","openapi":"POST /policy-check","href":"/fr/api/policy-check"},{"title":"API du bouclier d'invite","href":"/fr/api/threat-defense/prompt-shield"},{"title":"Politiques SMLTP","openapi":"GET /smltp-policies/all","href":"/fr/api/smltp/policies"},{"title":"Politiques SMLTP actives","openapi":"GET /smltp-policies/active","href":"/fr/api/smltp/active"},{"title":"Créer une stratégie SMLTP","openapi":"POST /smltp-policies/active","href":"/fr/api/smltp/create"},{"title":"Reçus de conformité","openapi":"GET /receipts/{bundleId}","href":"/fr/api/receipts"},{"title":"Journaux d'audit","openapi":"GET /audit-logs","href":"/fr/api/smltp/audit-logs"},{"title":"Politiques de sécurité","openapi":"GET /smltp-policies","href":"/fr/api/discovery/smltp-policies"}]},{"group":"Utilisateurs \u0026 Accès (IAM)","pages":[{"title":"Obtenir tous les utilisateurs","openapi":"GET /users","href":"/fr/api/users/list"},{"title":"Créer un nouvel utilisateur","openapi":"POST /users","href":"/fr/api/users/create"},{"title":"Mettre à jour l'utilisateur","openapi":"PUT /users/{userId}","href":"/fr/api/users/update"},{"title":"Répertorier les rôles","openapi":"GET /roles","href":"/fr/api/roles/list"},{"title":"Créer un rôle","openapi":"POST /roles","href":"/fr/api/roles/create"},{"title":"Liste des groupes","openapi":"GET /groups","href":"/fr/api/groups/list"},{"title":"Créer un groupe","openapi":"POST /groups","href":"/fr/api/groups/create"},{"title":"Mettre à jour le groupe","openapi":"PUT /groups/{groupId}","href":"/fr/api/groups/update"}]},{"group":"Facturation, Quotas \u0026 Webhooks","pages":[{"title":"Utilisation et quotas","openapi":"GET /usage","href":"/fr/api/usage"},{"title":"Clés API du mode de facturation","href":"/fr/api/billing-modes"},{"title":"Référence rapide des modes de facturation","href":"/fr/api/billing-modes/quick-reference"},{"title":"Disponibilité des licences","openapi":"GET /licenses/availability","href":"/fr/api/billing-modes/licenses-availability"},{"title":"Présentation des webhooks","href":"/fr/api/webhooks/overview"},{"title":"Événements Webhook","href":"/fr/api/webhooks/events"}]}]}]},{"language":"de","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"Support"}]},"pages":[{"title":"de","href":"/de/api/images/edits"}]},{"language":"ko","navbar":{"links":[{"href":"https://hiperai.com/contacts","label":"고객지원"}]},"pages":[{"title":"ko","href":"/ko/api/images/edits"}]}]},"basePath":"","title":"Modifier les images - SecureAI","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}