POST
/
v1
/
confidential
/
chat
/
completions
import { AtomaSDK } from "atoma-sdk";

const atomaSDK = new AtomaSDK({
bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",
});

async function run() {
const completion = await atomaSDK.confidentialChat.create({
messages: [
{"role": "developer", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
model: "meta-llama/Llama-3.3-70B-Instruct"
});

console.log(completion.choices[0]);
}

run();
{
  "ciphertext": "<string>",
  "nonce": "<string>",
  "response_hash": "<string>",
  "signature": "<string>",
  "usage": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

A request for confidential computation that includes encrypted data and associated cryptographic parameters

Response

200
application/json

Confidential chat completions

Represents a response from a confidential compute request