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
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
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.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.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
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
list_generations
List the workspace’s generations, newest first.
REST: GET /v1/generations · read-only
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