Generate
Models
Model IDs, input options, and prices differ by model. Check them in the API or in Explore models in the API console.
Look up models
GET /models returns the list of available models, and GET /models/MODEL_ID returns a single model, including its input options.
GET /models returns every model at once in the data array of the response. It is not paginated, so it takes no limit or cursor and has no next_cursor.
Model IDs contain a / (e.g. google/nano-banana-pro). You can put it in the URL as is or encode it as %2F.
name in the list is the full name and may include a version hash (e.g. nvidia/sana:HASH). The name without the hash (nvidia/sana) also works for GET /models/MODEL_ID and the model field of a generation request.
If the name without the hash matches more than one model, you get 400 invalid_request. In that case, send the full name from the list. The model field of a job response always has the full name.
Model IDs are case-sensitive.
GET /models/MODEL_ID returns 404 not_found for a model ID that does not exist or is closed.
curl https://openapi.aistudio.dropshot.io/v1/models \
-H "Authorization: Bearer $DROPSHOT_API_KEY"
# { "data": [...] }
curl https://openapi.aistudio.dropshot.io/v1/models/MODEL_ID \
-H "Authorization: Bearer $DROPSHOT_API_KEY"Model fields
| Field | Description |
|---|---|
name | Model ID to put in the model field of the request body. May be a full name with a version hash. |
display_name | Display name |
provider | Model provider |
type | image · video · audio. Voice is audio. |
description | Model description |
credit_cost | The lowest price you can get with this model (credits). The actual charge depends on the options. Can be a decimal. |
price_rules[] | Conditional prices. Rules with more conditions come first. The first rule whose conditions all match sets the price. Models without rules have a single price, credit_cost. |
price_rules[].conditions | Option names and values. The rule matches when all of these option values in the request are equal. |
price_rules[].credit_cost | Price when the conditions match (credits). Can be a decimal. |
price_rules[].price_addons | per_second, per_reference_video_second, and per_input_image added when this rule matches. per_prompt_character is not here; it exists only in the model's price_addons. |
price_addons | Per-character, per-second, and per-image rates. per_prompt_character is the per-character rate multiplied by the character count, and the matching rule's price (credit_cost if there are no rules) is the minimum charge. per_second, per_reference_video_second, and per_input_image are added. If they differ by rule, the value is null, so check price_rules[].price_addons. |
parameters[] | Input options. Only in the model details. |
Models billed by character count (such as voice models) cost prompt characters (Unicode code points) × per_prompt_character. The minimum charge is the matching rule's price (credit_cost if there are no rules). Credits for duration (seconds), reference video length, and input image count are added to that result.
Example: for a model priced at 10 with 0.05 per character, a 300-character prompt costs 300 × 0.05 = 15 credits. A 100-character prompt comes to 100 × 0.05 = 5, which is below the minimum charge of 10, so it costs 10 credits.
per_second is multiplied by the length of the video you put in input (seconds, rounded up), not by the output length. Example: for a 2.04-second video with per_second of 4, 3 seconds × 4 = 12 credits are added. per_reference_video_second is multiplied by the reference video (reference_video) length; with several reference videos, each video's length is rounded and the seconds are added up.
Character count is the number of Unicode code points. A precomposed Korean syllable, a space, and a single-code-point emoji like 😀 each count as 1 character. An emoji made of several code points that displays as one character, like 👨👩👧👦, counts as its number of code points (7 in this example). Emoji and symbols that aren't read aloud are not excluded; each one is billed as a character. The maximum length is not a fixed number; it is the max_length of the prompt item in each model's parameters.
A price_addons value is null when that price does not apply. per_prompt_character is also null for models without per-character pricing.
{
"name": "MODEL_ID",
"display_name": "Model Name",
"provider": "Provider",
"type": "video",
"description": null,
"credit_cost": 80,
"price_rules": [
{
"conditions": { "resolution": "1080p" },
"credit_cost": 120.5,
"price_addons": {
"per_second": null,
"per_reference_video_second": null,
"per_input_image": null
}
},
{
"conditions": { "resolution": "720p" },
"credit_cost": 80,
"price_addons": {
"per_second": null,
"per_reference_video_second": null,
"per_input_image": null
}
}
],
"price_addons": {
"per_prompt_character": null,
"per_second": null,
"per_reference_video_second": null,
"per_input_image": null
},
"parameters": [
{
"name": "reference_video",
"type": "string",
"is_array": true,
"is_required": false,
"enum": null,
"default": null,
"min": null,
"max": null,
"min_length": null,
"max_length": null,
"min_items": null,
"max_items": 1,
"description": null,
"media_input": {
"media_kind": "video",
"limit": {
"min_duration_second": 2,
"max_duration_second": 10,
"max_total_duration_second": null,
"max_total_duration_with_output_second": null,
"min_pixel_count": null,
"min_side_length": null,
"max_side_length": null,
"min_aspect_ratio": null,
"max_aspect_ratio": null,
"max_file_size_byte": 52428800
},
"requires_visual_anchor": null,
"excludes_frame_images": true,
"requires_output_duration_at_least_total": null
},
"constraints": [
{
"when": { "field_name": "resolution", "operator": "equal", "value": "1080p" },
"then": { "required": null, "is_supported": false, "exclude": null, "include": null }
}
]
}
]
}Input Options
Each item in parameters has name, type, is_array, is_required, enum, default, min, max, min_length, max_length, min_items, max_items, description, media_input and constraints.
| Field | Description |
|---|---|
media_input | Spec for an attachment option. null if the option is not an attachment or no spec is registered. |
media_input.media_kind | image · video · audio |
media_input.limit | Limits on length (seconds), pixel count, side length (px), aspect ratio (width ÷ height), and file size (bytes). Limits that don't apply are null, and limit itself is null when there are no limits. |
media_input.requires_visual_anchor | If true, must be sent together with a reference image, input image, or reference video. |
media_input.excludes_frame_images | If true, cannot be used with start or end frames. |
media_input.requires_output_duration_at_least_total | If true, the output length (duration) must be at least the total length of these attachments. |
constraints[] | Constraints on this option based on other option values. An empty array if none. |
constraints[].when | field_name (another option's name), operator (equal, exists, etc.), value (value to compare, or null) |
constraints[].then | Applied when when matches. required true means the option must be sent, and is_supported false means it can't be sent. exclude lists values you can't choose, and include lists values you can. Items that don't apply are null. |
A constraint whose when.field_name is isUnlimited is an internal condition for the web app's unlimited mode (e.g. excluding 4K in unlimited mode). The API has no unlimited mode, so this condition is treated as not matching. isUnlimited is not a request option, so putting it in input is rejected with 400 invalid_request.
Options not listed in parameters are rejected with 400 invalid_request.
If you send a decimal (e.g. 1.5) to an integer-only option such as video duration, it's rejected with 400 invalid_request before any credits are deducted. details.parameter is the option name (e.g. duration), and details.reason is Must be an integer.
The maximum prompt length is not the same for every model; it varies by model. Check max_length on the prompt item in parameters from GET /models/MODEL_ID. min_length and max_length also count Unicode code points, and requests outside that range are rejected with 400 invalid_request.
If the model in a generation request is closed or does not exist, you get 400 model_not_supported.