kindstringrequiredimage · video · voice · music.
promptstringrequiredWhat to create. For a voice, the exact words.
modelstringWhich model. A sensible default per kind.
settingsobjectResolution, duration, audio, voice, tempo…
imagestringA starting picture. Only for video and image.
storage · pathstringSave it rather than returning it.
The settings are checked against the grid
Audio on a model with no sound, or a resolution it does not produce, would otherwise fall back to the most expensive row of that model — generating one format while billing another. It is refused where you are still reading the message.
image on a voice or a music step is refused too: it would be accepted and then ignored, which is worse than failing — you would believe the picture counted.
{ id: "cover", type: "media.generate", config: {
kind: "image", prompt: "A quiet harbour at dawn, flat illustration",
settings: { resolution: "2K" },
storage: "…", path: "covers/{{input.week}}.png" } }{"id": "cover", "type": "media.generate", "config": {
"kind": "image", "prompt": "A quiet harbour at dawn, flat illustration",
"settings": {"resolution": "2K"},
"storage": "…", "path": "covers/{{input.week}}.png"}}Output
{{steps.cover.output.kind}}
{{steps.cover.output.mime}}
{{steps.cover.output.path}} // when it was saved
{{steps.cover.output.content}} // when it was not"{{steps.cover.output.kind}}"
"{{steps.cover.output.mime}}"
"{{steps.cover.output.path}}" # when it was saved
"{{steps.cover.output.content}}" # when it was notIt is the expensive step
A video is priced per second and can run to hundreds of credits. On a scheduled trigger, that is paid every firing with nobody deciding each time.