GET
/
v1
/
models
import { AtomaSDK } from "atoma-sdk";

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

async function run() {
  const result = await atomaSDK.models.modelsList();

  // Handle the result
  console.log(result);
}

run();
{
  "data": [
    {
      "created": 123,
      "id": "<string>",
      "object": "<string>",
      "owned_by": "<string>"
    }
  ],
  "object": "<string>"
}

Authorizations

Authorization
string
header
required

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

Response

200
application/json
List of available models

Response object for the models listing endpoint

data
object[]
required

List of model objects

Individual model object in the response

object
string
required

The object type, which is always "list"