Chat

List models

GET/v1/models

Every published model, in OpenAI's model-list shape. The id is the value to pass as model in a completion request. Unpublished, restricted and unlisted models never appear here.

Authentication

Requires a bearer API key on every call.

Authorization: Bearer ad_live_…

An API key, sent as Authorization: Bearer <key>.

Keys look like ad_live_… (production traffic, real spend) or ad_test_…. Create them in the dashboard under API keys. The full value is shown exactly once, at creation — only a SHA-256 hash is stored, so a lost key cannot be recovered, only rotated. Revoking a key takes effect immediately on the next request.

Returns200

A list object of models.

objectoptional
string
one of "list"
dataoptional
object[]
object[] attributes
idoptional
string

Pass this as model.

objectoptional
string
one of "model"
createdoptional
integer
owned_byoptional
string
Errorsswitch on code, never on the message
unauthorized
HTTP 401not retryable

Missing, malformed, or revoked API key.

Status codes returned by this endpoint: 401. Every code and what to do about it is on Errors.

Base URL
https://adversariallm.ai/v1/models
List models · API · AdversariaLLM