Skip to main content
GET
Read a model

Authorizations

Authorization
string
header
required

A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.

Path Parameters

vendor
string
required

The company that makes the model, such as google

model
string
required

The model, such as nano-banana-2

operation
string
required

The operation, such as generate

Response

The model.

id
string
required
Maximum string length: 200
Pattern: ^[a-z0-9]+(?:[.-][a-z0-9]+)*\/[a-z0-9]+(?:[.-][a-z0-9]+)*\/[a-z0-9]+(?:[.-][a-z0-9]+)*$
name
string
required
capability
enum<string>
required
Available options:
image,
video
operation
enum<string>
required
Available options:
generate,
edit,
inpaint,
remix,
text-to-vector,
text-to-video,
image-to-video,
first-last-frame-to-video,
reference-to-video,
audio-to-video,
video-to-video,
extend-video,
motion-control,
clean-plate,
render-to-real,
hdr,
outpaint,
reference-video-to-video
status
enum<string>
required
Available options:
active,
deprecated
sunsetAt
string<date-time> | null
required

A deprecated model refuses new requests from this time

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
requestSchema
object
required

JSON Schema (2020-12) for POST /v1/generations with this model; x-roles lists each input role's accepted media and limits