import { AtomaSDK } from "atoma-sdk";const atomaSDK = new AtomaSDK({ bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",});async function run() { const result = await atomaSDK.confidentialEmbeddings.create({ model: "intfloat/multilingual-e5-large-instruct", input: "The quick brown fox jumped over the lazy dog", encoding_format: "float", }); // 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_embeddings.create(
input_="The quick brown fox jumped over the lazy dog",
model="intfloat/multilingual-e5-large-instruct",
encoding_format="float"
)
print(res)
This endpoint follows the OpenAI API format for generating vector embeddings from input text,
but with confidential processing (through AEAD encryption and TEE hardware).
The handler receives pre-processed metadata from middleware and forwards the request to
the selected node.
Returns
Ok(Response) - The embeddings response from the processing node
Err(AtomaProxyError) - An error status code if any step fails
Errors
INTERNAL_SERVER_ERROR - Processing or node communication failures
POST
/
v1
/
confidential
/
embeddings
TypeScript
import { AtomaSDK } from "atoma-sdk";const atomaSDK = new AtomaSDK({ bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",});async function run() { const result = await atomaSDK.confidentialEmbeddings.create({ model: "intfloat/multilingual-e5-large-instruct", input: "The quick brown fox jumped over the lazy dog", encoding_format: "float", }); // 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_embeddings.create(
input_="The quick brown fox jumped over the lazy dog",
model="intfloat/multilingual-e5-large-instruct",
encoding_format="float"
)
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":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cloud-api-reference/confidential-embeddings/create-confidential-embeddings","slug":"/cloud-api-reference/confidential-embeddings/create-confidential-embeddings","pageMetadata":{"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","autogeneratedByOpenApi":true},"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 h2: \"h2\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"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\", _jsx(_components.h2, {\n children: \"Returns\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"Ok(Response)\"\n }), \" - The embeddings response from the processing node\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"Err(AtomaProxyError)\"\n }), \" - An error status code if any step fails\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Errors\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"INTERNAL_SERVER_ERROR\"\n }), \" - Processing or node communication failures\"]\n }), \"\\n\"]\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}=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 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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Confidential Embeddings"],"summary":"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","operationId":"confidential_embeddings_create","requestBody":"6f233dd0-e56b-44bd-beb0-be748846fbc6","responses":{"200":"628f615e-7efa-43c3-bba8-407649d194e1","400":"026ec5fb-6481-402c-bdff-bd94658512f8","401":"e1195a39-dc70-49ce-8648-9a38607cc1be","500":"a4be7fc2-5228-4704-bd05-8e29d9086499"},"security":["90fd51b5-599c-4187-8051-e60dcc4a1e87"],"x-codeSamples":[{"lang":"typescript","label":"confidential_embeddings_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.confidentialEmbeddings.create({\n model: \"intfloat/multilingual-e5-large-instruct\",\n input: \"The quick brown fox jumped over the lazy dog\",\n encoding_format: \"float\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"lang":"python","label":"confidential_embeddings_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_embeddings.create(\n input_=\"The quick brown fox jumped over the lazy dog\",\n model=\"intfloat/multilingual-e5-large-instruct\",\n encoding_format=\"float\"\n )\n\n print(res)"}],"method":"post","type":"path","servers":["dfb8e2f7-db43-4d17-8dd7-eba4e1b68421"],"path":"/v1/confidential/embeddings","baseUrlOptions":["https://api.atoma.network"],"title":"Create confidential embeddings","codeSamples":[{"label":"confidential_embeddings_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.confidentialEmbeddings.create({\n model: \"intfloat/multilingual-e5-large-instruct\",\n input: \"The quick brown fox jumped over the lazy dog\",\n encoding_format: \"float\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"label":"confidential_embeddings_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_embeddings.create(\n input_=\"The quick brown fox jumped over the lazy dog\",\n model=\"intfloat/multilingual-e5-large-instruct\",\n encoding_format=\"float\"\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":{"628f615e-7efa-43c3-bba8-407649d194e1":{"description":"Confidential embeddings generated successfully","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"},"026ec5fb-6481-402c-bdff-bd94658512f8":{"description":"Bad request","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"e1195a39-dc70-49ce-8648-9a38607cc1be":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"a4be7fc2-5228-4704-bd05-8e29d9086499":{"description":"Internal server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"90fd51b5-599c-4187-8051-e60dcc4a1e87":{"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 embeddings - Atoma","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-27T12:14:43.579Z","originalFileLocation":"cloud-api-reference/confidential-embeddings/create-confidential-embeddings.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 endpoint follows the OpenAI API format for generating vector embeddings from input text, but with confidential processing (through AEAD encryption and TEE hardware). The handler receives pre-processed metadata from middleware and forwards the request to the selected node. ## Returns Ok(Response) - The embeddings response from the processing node Err(AtomaProxyError) - An error status code if any step fails ## Errors * INTERNAL_SERVER_ERROR - Processing or node communication failures\">\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 embeddings - Atoma\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint follows the OpenAI API format for generating vector embeddings from input text, but with confidential processing (through AEAD encryption and TEE hardware). The handler receives pre-processed metadata from middleware and forwards the request to the selected node. ## Returns Ok(Response) - The embeddings response from the processing node Err(AtomaProxyError) - An error status code if any step fails ## Errors * INTERNAL_SERVER_ERROR - Processing or node communication failures\">\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-embeddings/create-confidential-embeddings\">\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+Embeddings\u0026amp;title=Create+confidential+embeddings\u0026amp;description=This+endpoint+follows+the+OpenAI+API+format+for+generating+vector+embeddings+from+input+text%2C%0Abut+with+confidential+processing+%28through+AEAD+encryption+and+TEE+\u0026amp;theme=cafd4bab465c83e2db0edc73\u0026amp;signature=cd18e6d6be0ecf8a24b9fe41ad576e6f991c5db25c7e9910b9db3badac6be3ec\">\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 embeddings - Atoma\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint follows the OpenAI API format for generating vector embeddings from input text, but with confidential processing (through AEAD encryption and TEE hardware). The handler receives pre-processed metadata from middleware and forwards the request to the selected node. ## Returns Ok(Response) - The embeddings response from the processing node Err(AtomaProxyError) - An error status code if any step fails ## Errors * INTERNAL_SERVER_ERROR - Processing or node communication failures\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atoma.mintlify.site/_mintlify/api/og/v2?division=Confidential+Embeddings\u0026amp;title=Create+confidential+embeddings\u0026amp;description=This+endpoint+follows+the+OpenAI+API+format+for+generating+vector+embeddings+from+input+text%2C%0Abut+with+confidential+processing+%28through+AEAD+encryption+and+TEE+\u0026amp;theme=cafd4bab465c83e2db0edc73\u0026amp;signature=cd18e6d6be0ecf8a24b9fe41ad576e6f991c5db25c7e9910b9db3badac6be3ec\">\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-embeddings/create-confidential-embeddings\">\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-embeddings/create-confidential-embeddings.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-embeddings/create-confidential-embeddings#webpage\",\"url\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings\",\"name\":\"Create confidential embeddings\",\"description\":\"This endpoint follows the OpenAI API format for generating vector embeddings from input text, but with confidential processing (through AEAD encryption and TEE hardware). The handler receives pre-processed metadata from middleware and forwards the request to the selected node. ## Returns Ok(Response) - The embeddings response from the processing node Err(AtomaProxyError) - An error status code if any step fails ## Errors * INTERNAL_SERVER_ERROR - Processing or node communication failures\",\"dateModified\":\"2025-08-27T12:14:43.579Z\",\"isPartOf\":{\"@id\":\"https://docs.atoma.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Atoma\",\"item\":\"https://docs.atoma.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create confidential embeddings\",\"item\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings#apireference\",\"headline\":\"Create confidential embeddings\",\"name\":\"Create confidential embeddings\",\"description\":\"This endpoint follows the OpenAI API format for generating vector embeddings from input text, but with confidential processing (through AEAD encryption and TEE hardware). The handler receives pre-processed metadata from middleware and forwards the request to the selected node. ## Returns Ok(Response) - The embeddings response from the processing node Err(AtomaProxyError) - An error status code if any step fails ## Errors * INTERNAL_SERVER_ERROR - Processing or node communication failures\",\"url\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings\",\"mainEntityOfPage\":{\"@id\":\"https://docs.atoma.ai/cloud-api-reference/confidential-embeddings/create-confidential-embeddings#webpage\"},\"dateModified\":\"2025-08-27T12:14:43.579Z\",\"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","description":"This handler processes chat completion 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## Returns\n\nReturns a `Result` containing either:\n* An HTTP response with the chat completion result\n* A streaming SSE connection for real-time completions\n* An `AtomaProxyError` error if the request processing fails\n\n## Errors\n\nReturns `AtomaProxyError::InvalidBody` if:\n* The 'stream' field is missing or invalid in the payload\n\nReturns `AtomaProxyError::InternalError` if:\n* The inference service request fails\n* Response processing encounters errors\n* State manager updates fail\n\n## Security Features\n\n* Utilizes AEAD encryption for request/response data\n* Supports TEE (Trusted Execution Environment) processing\n* Implements secure key exchange using X25519\n* Maintains confidentiality throughout the request lifecycle","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","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","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"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","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 embeddings - 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"]}