Generate media
generate_mediaGenerate standalone image or video media using the same prompt, quality, ratio, preset, duration, frame, reference, audio, and character options as the Revid media generator. The media is saved to the user's Revid media library. The call waits up to 40 seconds. A generation done by then returns status "ready" with each media's url. A longer one (ultra images often, videos usually: 1 to 10 minutes) returns status "processing" with mediaIds: call get_media_status with them until the status is ready or failed. Do not call generate_media again for the same request while it is processing: every call starts and charges a new generation. Requires an active Revid plan.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | For videos, add audio to generated output, spoken lines included. Defaults to true; pass false for a silent clip. | |
| count | No | Image count. Videos generate one item, matching the media generator UI. | |
| media | No | ||
| ratio | No | Output ratio. | |
| video | No | ||
| preset | No | Alias of generationPreset. | |
| prompt | No | Media prompt. You can also use source.prompt or input. | |
| source | No | ||
| options | No | ||
| quality | No | Image or video quality, same values as the media generator UI. | |
| voiceId | No | Optional voice id for generated video audio processing. | |
| duration | No | Video duration in seconds. | |
| lastFrame | No | Optional video last-frame image URL. | |
| mediaType | No | Media type to generate. Defaults to image. | |
| firstFrame | No | Optional video first-frame image URL. | |
| inputAudios | No | Alias of referenceAudios. | |
| inputImages | No | Alias of referenceImages. | |
| inputVideos | No | Alias of referenceVideos. | |
| characterIds | No | Consistent character ids. | |
| improvePrompt | No | Improve the image/video prompt before generation. | |
| referenceAudios | No | Audio reference URLs for video generation. | |
| referenceImages | No | Image reference URLs. | |
| referenceVideos | No | Video reference URLs for video generation. | |
| generationPreset | No | Optional Revid media generator preset value. | |
| selectedCharacters | No | Alias of characterIds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| method | Yes | ||
| status | Yes | ||
| endpoint | Yes | ||
| retryAfterSeconds | No |