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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "create_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The model, from list_models, such as `bytedance/seedance-2.5`. | |
| inputs | No | Assets the model takes as input, each with its role. | |
| output | No | 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. | |
| params | No | The model's params, as its schema in list_models describes them. | |
| prompt | No | What to make, for models that take a prompt. | |
| provider | No | Which providers may serve it: `order`, `only`, `ignore`, `allow_fallbacks`, and `options`, each provider's own request fields. | |
| overwrite | No | 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. | |
| project_id | No | The project its files go in; the workspace's default project when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `gen_…`. | |
| error | Yes | Why it failed. | |
| model | Yes | The model it uses, `author/model`. | |
| usage | Yes | What the provider reported using, once it has succeeded, or once a cancelled one's task has ended (none used when the provider stopped it in time). | |
| inputs | Yes | The assets it was given. | |
| output | Yes | Where its files are saved. | |
| params | Yes | The model's parameters it was given, as the model's `params` schema describes them. | |
| prompt | Yes | The prompt it was given, when it was given one. | |
| status | Yes | `running`, `succeeded`, `failed` or `cancelled`. | |
| outputs | Yes | The assets it made, once it has succeeded. | |
| provider | Yes | The provider that served it, once one has. | |
| created_at | Yes | RFC 3339. | |
| project_id | Yes | The project its assets go in. | |
| updated_at | Yes | RFC 3339: when its status last changed. |