generate_video
Input: A textual input in prompt provided by user describing the video scene to be generated.
Output: We will return the video URL output to the user.
Functionality: This tool is used to generate a video based on a text prompt. User will provide a detailed description of the scene and the tool will generate a video based on that description.
Steps:
We will get the user_id from the request context.
We will validate the user's generation tokens.
We will call the Text to Video API with the prompt provided by the user.
This Text to Video API will return a JSON response with the video details including URL.
We will return the video URL to the user.
INSTRUCTION FOR CLIENT MODEL:
Extract the required input parameter 'prompt' (type: string) from the user's provided prompt. The prompt should describe the video scene to generate.
Ignore any extraneous information in the user's input.
Pass the extracted 'prompt' value to this tool as the 'prompt' parameter.
Example: For user input "Generate a video of a robot dancing in a city at night", extract 'robot dancing in a city at night' as the prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |