Get Model
const url = 'https://agents.lumalabs.ai/v1/models/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://agents.lumalabs.ai/v1/models/example \ --header 'Authorization: Bearer <token>'One model row, addressed by model id or public brand alias.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Responses
Section titled “ Responses ”Successful Response
A public model id and everything an SDK caller needs to plan against it.
object
One registry action exposed under a model row.
object
What one action — or the union of a model's create actions — can produce.
object
Durations one action accepts — a continuous slider or a fixed picker.
Media type an action produces.
Public name for what one action does to media.
Credit rates keyed by pricing variant, from the action's pricing schema.
object
Credits per unit, keyed by variant (such as a resolution, or key=value pairs joined by |); default when there is one rate.
object
True when the charge settles on what the run used (such as tokens), so these credits are an estimate and the charge can differ.
What one rate is charged per, named for what it counts: such as flat for one output, per_second for each second of output duration, or per_megapixel_second for output area times duration.
Whether the caller may run the model right now.
What one action — or the union of a model's create actions — can produce.
object
Durations one action accepts — a continuous slider or a fixed picker.
Media type an action produces.
What a model row is for, in the vocabulary the SDK contract publishes.
Credit rates keyed by pricing variant, from the action's pricing schema.
object
Credits per unit, keyed by variant (such as a resolution, or key=value pairs joined by |); default when there is one rate.
object
True when the charge settles on what the run used (such as tokens), so these credits are an estimate and the charge can differ.
What one rate is charged per, named for what it counts: such as flat for one output, per_second for each second of output duration, or per_megapixel_second for output area times duration.
Example
{ "actions": [ { "capabilities": { "audio": false, "custom_dimensions": false, "end_frame": false, "output_type": "image", "seed": false, "start_frame": false }, "kind": "create", "pricing": { "currency": "credits", "estimate": false } } ], "availability": "available", "capabilities": { "audio": false, "custom_dimensions": false, "end_frame": false, "output_type": "image", "seed": false, "start_frame": false }, "modality": "image", "pricing": { "currency": "credits", "estimate": false }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}