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

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

async function run() {
const completion = await atomaSDK.confidentialCompletions.create({
model: "meta-llama/Llama-3.3-70B-Instruct",
prompt: "Hello, world!",
});

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