POST
/
v1
/
confidential
/
images
/
generations
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();
{
  "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

Image generations

Represents a response from a confidential compute request