Skip to main content

cancel_generation

Stop a generation that’s still running, and ask its provider to stop too. A provider that has already started on it may still finish it, and bill for it; the generation’s usage then shows what it used, once the provider reports it. REST: POST /v1/generations/{generation_id}/cancel · destructive, idempotent
string
required
The generation, from create_generation.

create_generation

Call a model: a prompt and assets in, new assets out, such as a video from a prompt and a first frame, speech from text, a transcript of a recording, or a cutout of the people or of a picked object in an image or a video. Every model, with its inputs, params, limits and meters, is at https://rendermate.com/docs/models, and list_models answers with the same list. Its files are saved as assets at output; a name that’s already taken is refused unless overwrite is set. It runs in the background: call get_generation with its ID until it’s done. It costs credits. REST: POST /v1/generations · destructive
array
Assets the model takes as input, each with its role.
string
required
The model, from list_models, such as bytedance/seedance-2.5.
string
Where the files it makes are saved: an asset path such as launch/shot.mp4 (other files it makes go next to it, as launch/shot.last_frame.png), or a folder ending in /, where each file is named by its role, as launch/video.mp4. generations/<id>/ when absent.
boolean
Replace assets already at those names. Without it, a name that’s taken is refused with asset.name_taken; one taken while the generation runs gets its file saved in generations/<id>/ instead, and the generation says so in its error.
any
The model’s params, as its schema in list_models describes them.
string
The project its files go in; the workspace’s default project when absent.
string
What to make, for models that take a prompt.
object
Which providers may serve it: order, only, ignore, allow_fallbacks, and options, each provider’s own request fields.

get_generation

Get a generation’s status, and once it’s done, the assets it made. While it’s running, call again a little later. REST: GET /v1/generations/{generation_id} · read-only
string
required
The generation, from create_generation.

get_model

Get one model: its input roles, params schema and providers. Over REST it needs no API key. REST: GET /v1/models/{model} · read-only
string
required
The model, such as bytedance/seedance-2.5.

list_generations

List the workspace’s generations, newest first. REST: GET /v1/generations · read-only
string
The next of the previous page.
integer
How many to return, up to 100; 100 when absent.

list_models

List the models create_generation can call, such as video, transcription, background removal and segmentation models, with each one’s input roles, params schema and providers. Over REST it needs no API key. The docs list every model, with its limits and meters, at https://rendermate.com/docs/models. REST: GET /v1/models · read-only
string
Only models of this kind: video, transcription, background_removal or segmentation.