[Go to site: main page, start]

Skip to main content
GET
List models

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Scopes

read_only
PersonalAccessTokenAuth
read_only
WorkspaceApiKeyAuth
read_only
WorkspaceApiKeyBearerAuth

Headers

X-Active-Branch-Id
string

ID of the branch the editor shows. Used when branch_id is omitted, for users who work on protected-main branches.

Path Parameters

app_id
string
required

ID of the app to generate media for.

Query Parameters

type
enum<string>

Only list models of this type: image, video, speech or music.

Available options:
image,
video,
speech,
music
limit
integer
default:100

Models per page, 1 to 100.

Required range: 1 <= x <= 100
cursor
string

next_cursor from the previous page. It carries type, so sending type beside it returns a 400.

Response

One page of models, filtered by type when given.

models
MediaModel · object[]
required

One page of models, ordered by id.

next_cursor
string | null

Send as cursor for the next page; null on the last page.

Example:

"gAAAAABn7vJ0q2kX"