Generate Media
generate_mediaGenerate and transform media; every action that renders spends credits, so check get_generation_catalog first and poll check_job until the job ends. media makes an image, video, voice or music; transform edits existing media; model_3d makes a 3D model; visual_code, visual_code_revise, visual_code_retry, visual_code_export and visual_code_cancel run coded visuals; plan_video, plan_slideshow and plan_long_form plan a piece and start_video, start_slideshow and start_long_form run the approved plan. Cost comes from the approved find_tools quote.
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": {
"action": "<action>",
"input": "<input>"
},
"name": "generate_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The fields of the chosen action. | |
| action | Yes | media: Generate image, video, voice (TTS) or music. transform: Transform existing media; fields for other operations reject. model_3d: Render a photo as a 3D model. visual_code: Create a versioned visual project from prompt or React/Remotion source. visual_code_revise: Create an immutable visual revision using exactly one prompt, sourceCode or props change and an approved quote. visual_code_retry: Explicitly retry failed/cancelled visual source with new requestId and approved quote. visual_code_export: Export retained source to MP4, PNG or JPEG Library outputs using an approved quote and expectedRevision. visual_code_cancel: Request cancellation of the current visual revision. plan_video: Work on a realistic shot-by-shot video (up to 12 shots, under a minute). start_video: Start one quoted paid stage of a realistic video after the user accepts the price from generate_media(action=plan_video) quote. plan_slideshow: Work on a photo slideshow (a swipeable 4:5 carousel for Instagram, TikTok or LinkedIn). start_slideshow: Start the quoted slide images of a slideshow after the user accepts the price from generate_media(action=plan_slideshow) quote. plan_long_form: Work on a long-form storyboard (voice note to presenter video). start_long_form: Start one quoted paid stage of a long-form storyboard after the user accepts the price from generate_media(action=plan_long_form) quote. | |
| organization | No | Organization this call acts in: its name, slug or id from get_context(action=organizations). Required when the connection covers several organizations (a call without it is refused with the list of organizations and their brands); a connection limited to one organization works inside it, so leave this argument out there (naming any organization is refused). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| message | No | ||
| artifact | No |