import { AtomaSDK } from "atoma-sdk";const atomaSDK = new AtomaSDK({ bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",});async function run() { const result = await atomaSDK.confidentialImages.generate({ model: "black-forest-labs/FLUX.1-schnell", prompt: "A cute baby sea otter", n: 1, size: "1024x1024" }); // Handle the result console.log(result);}run();
from atoma_sdk import AtomaSDK
import os
with AtomaSDK(
bearer_auth=os.getenv("ATOMASDK_BEARER_AUTH", ""),
) as atoma_sdk:
res = atoma_sdk.confidential_images.generate(
model="black-forest-labs/FLUX.1-schnell",
prompt="A cute baby sea otter floating on its back",
n=1,
quality="hd",
response_format="url",
size="1024x1024"
)
print(res)
This handler processes image generation requests in a confidential manner, providing additional
encryption and security measures for sensitive data processing. It supports both streaming and
non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware,
for full private AI compute.
POST
/
v1
/
confidential
/
images
/
generations
TypeScript
import { AtomaSDK } from "atoma-sdk";const atomaSDK = new AtomaSDK({ bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",});async function run() { const result = await atomaSDK.confidentialImages.generate({ model: "black-forest-labs/FLUX.1-schnell", prompt: "A cute baby sea otter", n: 1, size: "1024x1024" }); // Handle the result console.log(result);}run();
from atoma_sdk import AtomaSDK
import os
with AtomaSDK(
bearer_auth=os.getenv("ATOMASDK_BEARER_AUTH", ""),
) as atoma_sdk:
res = atoma_sdk.confidential_images.generate(
model="black-forest-labs/FLUX.1-schnell",
prompt="A cute baby sea otter floating on its back",
n=1,
quality="hd",
response_format="url",
size="1024x1024"
)
print(res)
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Atoma","colors":{"primary":"#87CEFA","light":"#87CEFA","dark":"#87CEFA"},"favicon":"/logo/Favicon_Atoma.svg","logo":{"light":"https://mintcdn.com/atoma/tjjv1G2ZJctJbnbW/logo/Favicon_Atoma.svg?fit=max\u0026auto=format\u0026n=tjjv1G2ZJctJbnbW\u0026q=85\u0026s=fb271bbe709375a10927262bb6bc73a1","dark":"https://mintcdn.com/atoma/tjjv1G2ZJctJbnbW/logo/Favicon_Atoma.svg?fit=max\u0026auto=format\u0026n=tjjv1G2ZJctJbnbW\u0026q=85\u0026s=fb271bbe709375a10927262bb6bc73a1"},"navbar":{"links":[{"label":"Support","href":"mailto:support@atoma.ai"}],"primary":null},"footer":{"socials":{"x":"https://x.com/Atoma_AI","github":"https://github.com/atoma-ai","linkedin":"https://www.linkedin.com/company/atoma-ai-2025"}},"navigation":{"global":{"anchors":[{"anchor":"Website","href":"https://www.atoma.ai","icon":"globe"},{"anchor":"Community","href":"https://discord.gg/atoma","icon":"discord"},{"anchor":"Blog","href":"https://atomanetwork.medium.com","icon":"newspaper"},{"anchor":"Github","href":"https://github.com/atoma-ai","icon":"github"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"atoma","hasAudioNarration":false,"actualSubdomain":"atoma","customDomains":["docs.atoma.ai"],"gitSource":{"type":"github","owner":"atomaai","repo":"atoma-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9237ce0bf2909fa98acd1:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Cloud API Reference","count":14},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Changelog","count":2},{"language":"default","tag":"Models","count":2},{"language":"default","tag":"Nodes","count":2},{"language":"default","tag":"API Reference","count":1},{"language":"default","tag":"Chat","count":1},{"language":"default","tag":"Completions","count":1},{"language":"default","tag":"Confidential Chat","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cloud-api-reference/confidential-images/create-confidential-image","slug":"/cloud-api-reference/confidential-images/create-confidential-image","pageMetadata":{"title":"Create confidential image","description":"This handler processes image generation requests in a confidential manner, providing additional\nencryption and security measures for sensitive data processing. It supports both streaming and\nnon-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware,\nfor full private AI compute.","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/images/generations","href":"/cloud-api-reference/confidential-images/create-confidential-image","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This handler processes image generation requests in a confidential manner, providing additional\\nencryption and security measures for sensitive data processing. It supports both streaming and\\nnon-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware,\\nfor full private AI compute.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create confidential image","description":"This handler processes image generation requests in a confidential manner, providing additional\nencryption and security measures for sensitive data processing. It supports both streaming and\nnon-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware,\nfor full private AI compute.","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/images/generations","href":"/cloud-api-reference/confidential-images/create-confidential-image","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Confidential Images"],"summary":"Create confidential image","description":"This handler processes image generation requests in a confidential manner, providing additional\nencryption and security measures for sensitive data processing. It supports both streaming and\nnon-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware,\nfor full private AI compute.","operationId":"confidential_image_generations_create","requestBody":"9fc17db0-f0b7-49c0-86ae-1589966fed64","responses":{"200":"17bded7e-f887-4df3-a66e-6b15374298c2","400":"91970838-55b5-42b9-9d3d-b61b9a3d2366","401":"e5e0dc4a-49de-4865-91ff-9348a41f9120","500":"637b9813-a9b1-4c33-9ef8-c0b21250de2a"},"security":["13170fa1-ab3d-452f-85c1-1e4dd2da5b4b"],"x-codeSamples":[{"lang":"typescript","label":"confidential_image_generations_create","source":"import { AtomaSDK } from \"atoma-sdk\";\n\nconst atomaSDK = new AtomaSDK({\n bearerAuth: process.env[\"ATOMASDK_BEARER_AUTH\"] ?? \"\",\n});\n\nasync function run() {\n const result = await atomaSDK.confidentialImages.generate({\n model: \"black-forest-labs/FLUX.1-schnell\",\n prompt: \"A cute baby sea otter\",\n n: 1,\n size: \"1024x1024\"\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"lang":"python","label":"confidential_image_generations_create","source":"from atoma_sdk import AtomaSDK\nimport os\n\nwith AtomaSDK(\n bearer_auth=os.getenv(\"ATOMASDK_BEARER_AUTH\", \"\"),\n) as atoma_sdk:\n\n res = atoma_sdk.confidential_images.generate(\n model=\"black-forest-labs/FLUX.1-schnell\",\n prompt=\"A cute baby sea otter floating on its back\",\n n=1,\n quality=\"hd\",\n response_format=\"url\",\n size=\"1024x1024\"\n )\n\n print(res)"}],"method":"post","type":"path","servers":["dfb8e2f7-db43-4d17-8dd7-eba4e1b68421"],"path":"/v1/confidential/images/generations","baseUrlOptions":["https://api.atoma.network"],"title":"Create confidential image","codeSamples":[{"label":"confidential_image_generations_create","lang":"typescript","source":"import { AtomaSDK } from \"atoma-sdk\";\n\nconst atomaSDK = new AtomaSDK({\n bearerAuth: process.env[\"ATOMASDK_BEARER_AUTH\"] ?? \"\",\n});\n\nasync function run() {\n const result = await atomaSDK.confidentialImages.generate({\n model: \"black-forest-labs/FLUX.1-schnell\",\n prompt: \"A cute baby sea otter\",\n n: 1,\n size: \"1024x1024\"\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"label":"confidential_image_generations_create","lang":"python","source":"from atoma_sdk import AtomaSDK\nimport os\n\nwith AtomaSDK(\n bearer_auth=os.getenv(\"ATOMASDK_BEARER_AUTH\", \"\"),\n) as atoma_sdk:\n\n res = atoma_sdk.confidential_images.generate(\n model=\"black-forest-labs/FLUX.1-schnell\",\n prompt=\"A cute baby sea otter floating on its back\",\n n=1,\n quality=\"hd\",\n response_format=\"url\",\n size=\"1024x1024\"\n )\n\n print(res)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"A request for confidential computation that includes encrypted data and associated cryptographic parameters","required":["ciphertext","stack_small_id","nonce","salt","client_dh_public_key","node_dh_public_key","plaintext_body_hash","model_name"],"properties":{"ciphertext":{"type":"string","description":"The encrypted payload that needs to be processed (base64 encoded)","isRequired":true,"uniqueKey":"ciphertext","typeLabel":"string"},"client_dh_public_key":{"type":"string","description":"Client's public key for Diffie-Hellman key exchange (base64 encoded)","isRequired":true,"uniqueKey":"client_dh_public_key","typeLabel":"string"},"model_name":{"type":"string","description":"Model name","isRequired":true,"uniqueKey":"model_name","typeLabel":"string"},"node_dh_public_key":{"type":"string","description":"Node's public key for Diffie-Hellman key exchange (base64 encoded)","isRequired":true,"uniqueKey":"node_dh_public_key","typeLabel":"string"},"nonce":{"type":"string","description":"Cryptographic nonce used for encryption (base64 encoded)","isRequired":true,"uniqueKey":"nonce","typeLabel":"string"},"plaintext_body_hash":{"type":"string","description":"Hash of the original plaintext body for integrity verification (base64 encoded)","isRequired":true,"uniqueKey":"plaintext_body_hash","typeLabel":"string"},"salt":{"type":"string","description":"Salt value used in key derivation (base64 encoded)","isRequired":true,"uniqueKey":"salt","typeLabel":"string"},"stack_small_id":{"type":"integer","format":"int64","description":"Unique identifier for the small stack being used","minimum":0,"isRequired":true,"uniqueKey":"stack_small_id","typeLabel":"integer\u003cint64>"},"num_compute_units":{"oneOf":[{"type":"integer","format":"int64","description":"Number of compute units to be used for the request, for image generations,\nas this value is known in advance (the number of pixels to generate)","minimum":0,"uniqueKey":"num_compute_units.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Number of compute units to be used for the request, for image generations,\nas this value is known in advance (the number of pixels to generate)","minimum":0,"uniqueKey":"num_compute_units.oneOf.1","typeLabel":"null"}],"uniqueKey":"num_compute_units","typeLabel":"integer\u003cint64> | null"},"stream":{"oneOf":[{"type":"boolean","description":"Indicates whether this is a streaming request","uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Indicates whether this is a streaming request","uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"ciphertext":"\u003cstring>","client_dh_public_key":"\u003cstring>","model_name":"\u003cstring>","node_dh_public_key":"\u003cstring>","nonce":"\u003cstring>","plaintext_body_hash":"\u003cstring>","salt":"\u003cstring>","stack_small_id":1,"num_compute_units":1,"stream":true}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"17bded7e-f887-4df3-a66e-6b15374298c2":{"description":"Image generations","content":{"application/json":{"schema":{"type":"object","description":"Represents a response from a confidential compute request","required":["ciphertext","nonce"],"properties":{"ciphertext":{"type":"string","description":"Encrypted response body (base64 encoded)","isRequired":true,"uniqueKey":"ciphertext","typeLabel":"string"},"nonce":{"type":"string","description":"Nonce used for encryption (base64 encoded)","isRequired":true,"uniqueKey":"nonce","typeLabel":"string"},"response_hash":{"oneOf":[{"type":"string","description":"Hash of the response body (base64 encoded)","uniqueKey":"response_hash.oneOf.0","typeLabel":"string"},{"type":"null","description":"Hash of the response body (base64 encoded)","uniqueKey":"response_hash.oneOf.1","typeLabel":"null"}],"uniqueKey":"response_hash","typeLabel":"string | null"},"signature":{"oneOf":[{"type":"string","description":"Signature of the response body (base64 encoded)","uniqueKey":"signature.oneOf.0","typeLabel":"string"},{"type":"null","description":"Signature of the response body (base64 encoded)","uniqueKey":"signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"signature","typeLabel":"string | null"},"usage":{"oneOf":[{"type":"null","uniqueKey":"usage.oneOf.0","typeLabel":"null"},{"type":"object","description":"Usage statistics for the request","required":["prompt_tokens","completion_tokens","total_tokens","completion_tokens_details","prompt_tokens_details"],"properties":{"completion_tokens":{"type":"integer","format":"int32","description":"The number of completion tokens used","example":10,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens","typeLabel":"integer\u003cint32>"},"completion_tokens_details":{"type":"object","description":"The details of the completion tokens","required":["accepted_prediction_tokens","audio_tokens","reasoning_tokens","rejected_prediction_tokens"],"properties":{"accepted_prediction_tokens":{"type":"integer","format":"int32","description":"The number of tokens in the completion","example":10,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens_details.accepted_prediction_tokens","typeLabel":"integer\u003cint32>"},"audio_tokens":{"type":"integer","format":"int32","description":"The number of audio tokens","example":0,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens_details.audio_tokens","typeLabel":"integer\u003cint32>"},"reasoning_tokens":{"type":"integer","format":"int32","description":"The number of reasoning tokens","example":10,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens_details.reasoning_tokens","typeLabel":"integer\u003cint32>"},"rejected_prediction_tokens":{"type":"integer","format":"int32","description":"The number of rejected prediction tokens","example":0,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens_details.rejected_prediction_tokens","typeLabel":"integer\u003cint32>"}},"isRequired":true,"uniqueKey":"usage.oneOf.1.completion_tokens_details","typeLabel":"object"},"prompt_tokens":{"type":"integer","format":"int32","description":"The number of prompt tokens used","example":10,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.prompt_tokens","typeLabel":"integer\u003cint32>"},"prompt_tokens_details":{"type":"object","required":["audio_tokens","cached_tokens"],"properties":{"audio_tokens":{"type":"integer","format":"int32","description":"The number of audio tokens","example":0,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.prompt_tokens_details.audio_tokens","typeLabel":"integer\u003cint32>"},"cached_tokens":{"type":"integer","format":"int32","description":"The number of cached tokens","example":10,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.prompt_tokens_details.cached_tokens","typeLabel":"integer\u003cint32>"}},"description":"The details of the prompt tokens","isRequired":true,"uniqueKey":"usage.oneOf.1.prompt_tokens_details","typeLabel":"object"},"total_tokens":{"type":"integer","format":"int32","description":"The total number of tokens used","example":20,"minimum":0,"isRequired":true,"uniqueKey":"usage.oneOf.1.total_tokens","typeLabel":"integer\u003cint32>"}},"uniqueKey":"usage.oneOf.1","typeLabel":"object"}],"uniqueKey":"usage","typeLabel":"null | object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"ciphertext":"\u003cstring>","nonce":"\u003cstring>","response_hash":"\u003cstring>","signature":"\u003cstring>","usage":{"completion_tokens":10,"completion_tokens_details":{"accepted_prediction_tokens":10,"audio_tokens":0,"reasoning_tokens":10,"rejected_prediction_tokens":0},"prompt_tokens":10,"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":10},"total_tokens":20}}}},"exampleType":"generated"}},"exampleType":"generated"},"91970838-55b5-42b9-9d3d-b61b9a3d2366":{"description":"Bad request","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"e5e0dc4a-49de-4865-91ff-9348a41f9120":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"637b9813-a9b1-4c33-9ef8-c0b21250de2a":{"description":"Internal server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"13170fa1-ab3d-452f-85c1-1e4dd2da5b4b":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"dfb8e2f7-db43-4d17-8dd7-eba4e1b68421":{"url":"https://api.atoma.network"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"cloud-api-reference/openapi.yml"},"subdomain":"atoma","siteName":"Atoma","title":"Create confidential image - Atoma","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-27T12:14:43.590Z","originalFileLocation":"cloud-api-reference/confidential-images/create-confidential-image.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This handler processes image generation requests in a confidential manner, providing additional encryption and security measures for sensitive data processing. It supports both streaming and non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware, for full private AI compute.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Atoma\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_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/atoma/HSkPayHGWCvocihP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create confidential image - Atoma\">\u003cmeta data-mint-head property=\"og:description\" content=\"This handler processes image generation requests in a confidential manner, providing additional encryption and security measures for sensitive data processing. It supports both streaming and non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware, for full private AI compute.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Atoma\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://atoma.mintlify.site/_mintlify/api/og/v2?division=Confidential+Images\u0026amp;title=Create+confidential+image\u0026amp;description=This+handler+processes+image+generation+requests+in+a+confidential+manner%2C+providing+additional%0Aencryption+and+security+measures+for+sensitive+data+processing.+\u0026amp;theme=cafd4bab465c83e2db0edc73\u0026amp;signature=cd491d3d7c1ed79dac7a27a2ca613a60b83d47d321f9a6e6c48177ed6062386b\">\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=\"Create confidential image - Atoma\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This handler processes image generation requests in a confidential manner, providing additional encryption and security measures for sensitive data processing. It supports both streaming and non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware, for full private AI compute.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atoma.mintlify.site/_mintlify/api/og/v2?division=Confidential+Images\u0026amp;title=Create+confidential+image\u0026amp;description=This+handler+processes+image+generation+requests+in+a+confidential+manner%2C+providing+additional%0Aencryption+and+security+measures+for+sensitive+data+processing.+\u0026amp;theme=cafd4bab465c83e2db0edc73\u0026amp;signature=cd491d3d7c1ed79dac7a27a2ca613a60b83d47d321f9a6e6c48177ed6062386b\">\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/atoma/HSkPayHGWCvocihP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Atoma\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#87CEFA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cloud-api-reference/confidential-images/create-confidential-image.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.atoma.ai/#organization\",\"name\":\"Atoma\",\"url\":\"https://docs.atoma.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/atoma/tjjv1G2ZJctJbnbW/logo/Favicon_Atoma.svg?fit=max\u0026auto=format\u0026n=tjjv1G2ZJctJbnbW\u0026q=85\u0026s=fb271bbe709375a10927262bb6bc73a1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.atoma.ai#website\",\"name\":\"Atoma\",\"url\":\"https://docs.atoma.ai\",\"publisher\":{\"@id\":\"https://docs.atoma.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image#webpage\",\"url\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image\",\"name\":\"Create confidential image\",\"description\":\"This handler processes image generation requests in a confidential manner, providing additional encryption and security measures for sensitive data processing. It supports both streaming and non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware, for full private AI compute.\",\"dateModified\":\"2025-08-27T12:14:43.590Z\",\"isPartOf\":{\"@id\":\"https://docs.atoma.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Atoma\",\"item\":\"https://docs.atoma.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create confidential image\",\"item\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image#apireference\",\"headline\":\"Create confidential image\",\"name\":\"Create confidential image\",\"description\":\"This handler processes image generation requests in a confidential manner, providing additional encryption and security measures for sensitive data processing. It supports both streaming and non-streaming responses while maintaining data confidentiality through AEAD encryption and TEE hardware, for full private AI compute.\",\"url\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image\",\"mainEntityOfPage\":{\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-images/create-confidential-image#webpage\"},\"dateModified\":\"2025-08-27T12:14:43.590Z\",\"publisher\":{\"@id\":\"https://docs.atoma.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.atoma.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Atoma\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Atoma","nav":{"global":{"anchors":[{"anchor":"Website","href":"https://www.atoma.ai","icon":"globe"},{"anchor":"Community","href":"https://discord.gg/atoma","icon":"discord"},{"anchor":"Blog","href":"https://atomanetwork.medium.com","icon":"newspaper"},{"anchor":"Github","href":"https://github.com/atoma-ai","icon":"github"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/documentation/get-started/overview"}]},{"tab":"Cloud API Reference","groups":[{"group":"API Reference","pages":[{"title":"Get Started","href":"/cloud-api-reference/get-started"}]},{"group":"Completions","pages":[{"title":"Create completions","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/completions","href":"/cloud-api-reference/completions/create-completions"}]},{"group":"Confidential Completions","pages":[{"title":"Create confidential completions","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/completions","href":"/cloud-api-reference/confidential-completions/create-confidential-completions"}]},{"group":"Chat","pages":[{"title":"Create chat completions","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/chat/completions","href":"/cloud-api-reference/chat/create-chat-completions"}]},{"group":"Confidential Chat","pages":[{"title":"Create confidential chat completions","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/chat/completions","href":"/cloud-api-reference/confidential-chat/create-confidential-chat-completions"}]},{"group":"Confidential Embeddings","pages":[{"title":"Create confidential embeddings","description":"This endpoint follows the OpenAI API format for generating vector embeddings from input text,\nbut with confidential processing (through AEAD encryption and TEE hardware).\nThe handler receives pre-processed metadata from middleware and forwards the request to\nthe selected node.\n\n## Returns\n* `Ok(Response)` - The embeddings response from the processing node\n* `Err(AtomaProxyError)` - An error status code if any step fails\n\n## Errors\n* `INTERNAL_SERVER_ERROR` - Processing or node communication failures","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/embeddings","href":"/cloud-api-reference/confidential-embeddings/create-confidential-embeddings"}]},{"group":"Confidential Images","pages":[{"title":"Create confidential image","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/confidential/images/generations","href":"/cloud-api-reference/confidential-images/create-confidential-image"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","description":"This endpoint follows the OpenAI API format for generating vector embeddings from input text.\nThe handler receives pre-processed metadata from middleware and forwards the request to\nthe selected node.\n\n# Returns\n* `Ok(Response)` - The embeddings response from the processing node\n* `Err(AtomaProxyError)` - An error status code if any step fails\n\n## Errors\n* `INTERNAL_SERVER_ERROR` - Processing or node communication failures","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/embeddings","href":"/cloud-api-reference/embeddings/create-embeddings"}]},{"group":"Health","pages":[{"title":"Health","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml get /health","href":"/cloud-api-reference/health/health"}]},{"group":"Images","pages":[{"title":"Create image","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/images/generations","href":"/cloud-api-reference/images/create-image"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml get /v1/models","href":"/cloud-api-reference/models/list-models"},{"title":"OpenRouter models listing endpoint","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml get /v1/open_router/models","href":"/cloud-api-reference/models/openrouter-models-listing-endpoint"}]},{"group":"Nodes","pages":[{"title":"Create node","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/nodes","href":"/cloud-api-reference/nodes/create-node"},{"title":"Create a node lock for confidential compute","deprecated":null,"version":null,"openapi":"cloud-api-reference/openapi.yml post /v1/nodes/lock","href":"/cloud-api-reference/nodes/create-a-node-lock-for-confidential-compute"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/overview"}]}]},"basePath":"","title":"Create confidential image - Atoma","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}