Core concepts

Models

Find a model and read the input it accepts.

Each model has an ID, a type, a price and an input schema. You need the ID to run it and the schema to build its input.

Listing models

GET /v1/models returns the whole catalog in one response, with no paging. It holds at most 200 entries.

import { Astorie } from "@astorie/client";

const client = new Astorie();

const { data } = await client.listModels();
for (const model of data) {
  if (model.enabled) console.log(model.id, model.type, model.price);
}

The fields you will use most:

FieldMeaning
idWhat you send as model. Always use this exact string, never the name.
nameA readable name for display.
typeimage or video today. More types may be added.
enabledWhether the model is for sale. The list only holds models that are, so this is true today. If it is ever false, don't offer the model. A key limited to certain models still sees the whole list and gets 403 model_not_available for the others.
priceThe lowest price as { currency, amount, unit }, set for every model listed today. amount drops trailing zeros here ("0.08"), unlike other money fields.
input_schemaJSON Schema for the input object.
output_schemaWhat the finished job's output looks like for this model.

Reading a model's input

GET /v1/capabilities?model=ID returns one model's pinned input schema, its pricing rules and limits. URL-encode the ID: google/nano-banana-2 becomes google%2Fnano-banana-2. The clients do this for you.

import { Astorie } from "@astorie/client";

const client = new Astorie();

const { model } = await client.getModel("google/nano-banana-2");
console.log(model.input_schema);

Send only the fields the schema lists. An unknown field gets 400 invalid_input with reason unknown_field, and the error points at the field so you can fix it.

Fields that change the price

Some fields set the price, such as mode, duration, resolution or the number of outputs. Not all of them are required: when you leave one out, its default applies and sets the price. For example, a model may default to 4 seconds at 480p. Send these fields explicitly so you know what you are paying for. A model's capabilities.billing.rate_fields, capabilities.billing.seconds_from and capabilities.output_count_field list them, and a quote shows the exact price.

If you pick a value that isn't sold, you get 400 invalid_input with reason unpriced_value. If you leave out an optional field and its default isn't sold, the reason is required. Either way, limit.allowed lists the values you can use.

Model families

The catalog changes as we add models. The list below shows the families available at the time of writing. GET /v1/models and the console are always current.

FamilyTypeExample IDs
Nano BananaImagegoogle/nano-banana-2 google/nano-banana-pro
GPT ImageImageopenai/gpt-image-2.5-flare
FLUX 3Image, videoblackforestlabs/flux-3-image blackforestlabs/flux-3-video
KlingImage, videokling/kling-3.0-t2v kling/kling-o3-pro-i2v kling/kling-image-o1
SeedanceVideobytedance/seedance-2.0 bytedance/seedance-2.0-fast bytedance/seedance-2.5
WanVideoalibaba/wan-3.0 alibaba/wan-3.0-prime
ViduVideovidu/vidu-q3-pro-t2v vidu/vidu-q3-turbo-i2v
HailuoVideominimax/h3

Many video families have separate IDs per mode, for example t2v (text to video), i2v (image to video), startend (first and last frame) and ref (reference images).