Skip to main content
Glama

AI Studio: generate image/video (async)

studio_generate

Generate AI images or videos with a model from list_studio_models — or apply a preset from list_studio_presets (then model_key and params default to the preset's, and prompt describes the {subject}). Image-to-video and edits need start_upload_id (an image uploaded with POST /api/v1/uploads). Costs the model's price × count (check with estimate_credits, action=studio); failed generations are refunded. Returns generation ids immediately; poll get_generation until status is complete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of variations (image models only, 1–4).
paramsNoModel params by key (duration, resolution, aspect_ratio, audio, seed…), see list_studio_models.
promptNoWhat to generate. With a preset: who/what the {subject} is (e.g. “a young singer in a red dress”).
model_keyNoModel key from list_studio_models (optional with preset_id).
preset_idNoPreset id from list_studio_presets.
end_upload_idNoEnd frame upload id (models that support it).
preset_valuesNoValues for other template placeholders, e.g. {"outfit": "a gold suit"}.
idempotency_keyNoOptional unique key (e.g. a uuid) — repeating the same call with the same key within 24 h returns the first result instead of charging again.
negative_promptNoWhat to avoid (models that support it).
start_upload_idNoStart frame / source image upload id.
reference_upload_idsNoReference image upload ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources