{
"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"
}
Models & AI Generation
Edit 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
Edit existing images using Google Gemini 2.5 Flash Image with text instructions. 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.
{ "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":"en/api/images/edits","slug":"/en/api/images/edits","pageMetadata":{"sidebar_position":2,"title":"Edit 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":"/en/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:`edit-images`,children:`Edit Images`}),`\n`,_jsx(_components.p,{children:`Edit existing images using Google Gemini 2.5 Flash Image with text instructions.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\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:[`Edit existing images using Google Gemini 2.5 Flash Image with text instructions. This endpoint is specifically designed for `,_jsx(_components.strong,{children:`image-to-image editing`}),` where:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An image file is `,_jsx(_components.strong,{children:`required`}),` (unlike `,_jsx(_components.code,{children:`/images/generations`}),` where it’s optional)`]}),`\n`,_jsx(_components.li,{children:`A text prompt describes how to edit or transform the image`}),`\n`,_jsx(_components.li,{children:`The edited image is returned with the same quality and format options`}),`\n`]}),`\n`,_jsx(_components.p,{children:`All prompts and responses are automatically processed through SMLTP for audit logging and compliance.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Required: API Key`}),`\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:`request-body`,children:`Request Body`}),`\n`,_jsxs(_components.p,{children:[`This endpoint accepts `,_jsx(_components.code,{children:`multipart/form-data`}),` format.`]}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Text instructions describing how to edit or transform the uploaded image (1-4000 characters)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image`})}),_jsx(_components.td,{children:`binary`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Image file to edit (JPEG, PNG, WEBP, or GIF, max 10MB)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_policy`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`SMLTP security policy (default: “internal”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response_format`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Response format: “url” or “b64_json” (default: “url”)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`curl`,children:`cURL`}),`\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(Heading,{level:`3`,id:`python`,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:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-response-200`,children:`Success Response (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:`response-fields`,children:`Response Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`success`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Always true for successful requests`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique request identifier`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Object type: “image.edit”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Unix timestamp of when image was edited`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Array of edited images`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Additional metadata including SMLTP tracking`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`image-object`,children:`Image Object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`URL to access the edited image (when response_format is “url”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`b64_json`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Base64-encoded image data (when response_format is “b64_json”)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revised_prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The prompt actually used for editing (may differ from input)`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`metadata-object`,children:`Metadata Object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Model used: “google/gemini-2.5-flash-image-preview”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Provider: “Google”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_images`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Total number of images (always 1 for edits)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`is_image_to_image`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Always true for this endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text_response`})}),_jsx(_components.td,{children:`string|null`}),_jsx(_components.td,{children:`Optional text response from the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_trace_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`SMLTP trace ID for audit tracking`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_bundle_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`SMLTP bundle ID for audit tracking`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smltp_policy`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`SMLTP policy that was applied`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(Heading,{level:`3`,id:`400-bad-request`,children:`400 Bad Request`}),`\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-unauthorized`,children:`401 Unauthorized`}),`\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-forbidden`,children:`403 Forbidden`}),`\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-payload-too-large`,children:`413 Payload Too Large`}),`\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-internal-server-error`,children:`500 Internal Server Error`}),`\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-unavailable`,children:`503 Service Unavailable`}),`\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:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Supported image formats: JPEG, PNG, WEBP, GIF`}),`\n`,_jsx(_components.li,{children:`Maximum file size: 10MB per image`}),`\n`,_jsxs(_components.li,{children:[`The image file is `,_jsx(_components.strong,{children:`required`}),` for this endpoint (unlike `,_jsx(_components.code,{children:`/images/generations`}),`)`]}),`\n`,_jsx(_components.li,{children:`The prompt describes how to edit or transform the uploaded image`}),`\n`,_jsx(_components.li,{children:`All requests are processed through SMLTP for security and compliance`}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.code,{children:`response_format: \"b64_json\"`}),` to receive base64-encoded image data instead of URLs`]}),`\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":"Edit 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":"/en/api/images/edits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Edit Images","slug":"edit-images","depth":1,"children":[]},{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Description","slug":"description","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]}]},{"title":"Request Examples","slug":"request-examples","depth":2,"children":[{"title":"cURL","slug":"curl","depth":3,"children":[]},{"title":"JavaScript/Node.js","slug":"javascript/node-js","depth":3,"children":[]},{"title":"Python","slug":"python","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success Response (200)","slug":"success-response-200","depth":3,"children":[]},{"title":"Response Fields","slug":"response-fields","depth":3,"children":[]},{"title":"Image Object","slug":"image-object","depth":3,"children":[]},{"title":"Metadata Object","slug":"metadata-object","depth":3,"children":[]}]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[{"title":"400 Bad Request","slug":"400-bad-request","depth":3,"children":[]},{"title":"401 Unauthorized","slug":"401-unauthorized","depth":3,"children":[]},{"title":"403 Forbidden","slug":"403-forbidden","depth":3,"children":[]},{"title":"413 Payload Too Large","slug":"413-payload-too-large","depth":3,"children":[]},{"title":"500 Internal Server Error","slug":"500-internal-server-error","depth":3,"children":[]},{"title":"503 Service Unavailable","slug":"503-service-unavailable","depth":3,"children":[]}]},{"title":"Notes","slug":"notes","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":"Edit Images - SecureAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api/images/edits","matchLevel":1},"en":{"href":"/en/api/images/edits","matchLevel":0},"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":1},"de":{"href":"/de/api/images/edits","matchLevel":1},"ko":{"href":"/ko/api/images/edits","matchLevel":1}}},"lastModified":"2026-09-03T22:54:39.032Z","originalFileLocation":"en/api/images/edits.md","locale":"en"},"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=\"Edit 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/en/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=Models+%26+AI+Generation\u0026amp;title=Edit+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=1e376c0085ba96d643c98e5462dfc4694ee94d118100032584cd15d1676fe09e\">\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=\"Edit 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=Models+%26+AI+Generation\u0026amp;title=Edit+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=1e376c0085ba96d643c98e5462dfc4694ee94d118100032584cd15d1676fe09e\">\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/en/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=\"/en/api/images/edits.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.hiperai.com/en/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=\"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=\"fr\" href=\"https://docs.hiperai.com/fr/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/en/api/images/edits#webpage\",\"url\":\"https://docs.hiperai.com/en/api/images/edits\",\"name\":\"Edit 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:39.032Z\",\"isPartOf\":{\"@id\":\"https://docs.hiperai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hiperai.com/en/api/images/edits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hiperai.com/en/api/images/edits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Models \u0026 AI Generation\",\"item\":\"https://docs.hiperai.com/en/api/chat/completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Edit Images\",\"item\":\"https://docs.hiperai.com/en/api/images/edits\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hiperai.com/en/api/images/edits#apireference\",\"headline\":\"Edit Images\",\"name\":\"Edit 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/en/api/images/edits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hiperai.com/en/api/images/edits#webpage\"},\"dateModified\":\"2026-09-03T22:54:39.032Z\",\"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":"/en/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"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/intro"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/files/google-drive"}]},{"tab":"API Reference","groups":[{"group":"Getting Started \u0026 Setup","pages":[{"title":"API Reference","href":"/en/api"},{"title":"Authentication Overview","href":"/en/api/auth/overview"},{"title":"Health Check","openapi":"GET /health","href":"/en/api/system/health"}]},{"group":"Models \u0026 AI Generation","pages":[{"title":"Chat Completion","openapi":"POST /chat/completions","href":"/en/api/chat/completions"},{"title":"OpenAI-Compatible Endpoint","openapi":"POST /v1/chat/completions","href":"/en/api/chat/openai-compatible"},{"title":"Redundancy \u0026 Failover","href":"/en/api/redundancy"},{"title":"Generate 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":"/en/api/images/generations"},{"title":"Edit Images","openapi":"POST /images/edits","href":"/en/api/images/edits"},{"title":"Initiate Speech-to-Speech WebRTC Session","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":"/en/api/speech/webrtc"},{"title":"Get S2S Time Status","openapi":"GET /speech/s2s/status","href":"/en/api/speech/status"},{"title":"Log S2S Session Duration","openapi":"POST /speech/s2s/log-session","href":"/en/api/speech/log-session"},{"title":"Available Models","openapi":"GET /models","href":"/en/api/discovery/models"}]},{"group":"Knowledge Base \u0026 RAG","pages":[{"title":"List All Indexes","openapi":"GET /indexes/all","href":"/en/api/indexes/list"},{"title":"Create Index","openapi":"POST /indexes/all","href":"/en/api/indexes/create"},{"title":"Update Index","openapi":"PUT /indexes/{indexId}","href":"/en/api/indexes/update"},{"title":"Search Index for Documents","openapi":"GET /indexes/{indexName}/search","href":"/en/api/indexes/search"},{"title":"Train Index with Documents","openapi":"POST /indexes/{indexName}/train","href":"/en/api/indexes/train"},{"title":"Available Knowledge Bases","openapi":"GET /indexes","href":"/en/api/discovery/indexes"}]},{"group":"Security, Guardrails \u0026 Auditing","pages":[{"title":"Policy Check (Dry Run)","openapi":"POST /policy-check","href":"/en/api/policy-check"},{"title":"Prompt Shield API","href":"/en/api/threat-defense/prompt-shield"},{"title":"SMLTP Policies","openapi":"GET /smltp-policies/all","href":"/en/api/smltp/policies"},{"title":"Active SMLTP Policies","openapi":"GET /smltp-policies/active","href":"/en/api/smltp/active"},{"title":"Create SMLTP Policy","openapi":"POST /smltp-policies/active","href":"/en/api/smltp/create"},{"title":"Compliance Receipts","openapi":"GET /receipts/{bundleId}","href":"/en/api/receipts"},{"title":"Audit Logs","openapi":"GET /audit-logs","href":"/en/api/smltp/audit-logs"},{"title":"Security Policies","openapi":"GET /smltp-policies","href":"/en/api/discovery/smltp-policies"}]},{"group":"Users \u0026 Access (IAM)","pages":[{"title":"Get All Users","openapi":"GET /users","href":"/en/api/users/list"},{"title":"Create New User","openapi":"POST /users","href":"/en/api/users/create"},{"title":"Update User","openapi":"PUT /users/{userId}","href":"/en/api/users/update"},{"title":"List Roles","openapi":"GET /roles","href":"/en/api/roles/list"},{"title":"Create Role","openapi":"POST /roles","href":"/en/api/roles/create"},{"title":"List Groups","openapi":"GET /groups","href":"/en/api/groups/list"},{"title":"Create Group","openapi":"POST /groups","href":"/en/api/groups/create"},{"title":"Update Group","openapi":"PUT /groups/{groupId}","href":"/en/api/groups/update"}]},{"group":"Billing, Quotas \u0026 Webhooks","pages":[{"title":"Usage \u0026 Quota","openapi":"GET /usage","href":"/en/api/usage"},{"title":"Billing Mode API Keys","href":"/en/api/billing-modes"},{"title":"Billing Modes Quick Reference","href":"/en/api/billing-modes/quick-reference"},{"title":"Licenses Availability","openapi":"GET /licenses/availability","href":"/en/api/billing-modes/licenses-availability"},{"title":"Webhooks Overview","href":"/en/api/webhooks/overview"},{"title":"Webhook Events","href":"/en/api/webhooks/events"}]}]}]},{"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"}]},"pages":[{"title":"fr","href":"/fr/api/images/edits"}]},{"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":"Edit 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"]}