Method: accounts.videos.generate
Stay organized with collections
Save and categorize content based on your preferences.
Generates a video.
A video can be generated for a single product, multiple products or a brand. Images used in the video are fetched from the product automatically or can be provided in the request. Text highlights used in the video are fetched from the product automatically or can be provided in the request.
Videos generated can either be of a composite template or a GenAI template. Composite templates are used to generate videos with multiple assets (for example images, texts) stitched together using specific, predefined templates. GenAI templates are used to generate short (~6s) video animations from still images.
The response is returned immediately with a video id. The actual video is generated in the background and the serving url is populated at a later time. The generation may take between 5 to 30 minutes depending on the server load.
Videos generated by default have a TTL of 6 months after which they are eligible for deletion unless the merchant explicitly requests to save the video.
HTTP request
POST https://merchantapi.googleapis.com/productstudio/v1alpha/{parent=accounts/*}/videos:generate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The account where the video will be generated and stored. Format: accounts/{account}
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"videoInput": {
object (VideoInput )
}
} |
Fields |
videoInput |
object (VideoInput )
Required. The input request to generate video.
|
Response body
If successful, the response body contains an instance of Video
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-27 UTC.
[null,null,["Last updated 2025-05-27 UTC."],[],[],null,["# Method: accounts.videos.generate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGenerates a video.\n\nA video can be generated for a single product, multiple products or a brand. Images used in the video are fetched from the product automatically or can be provided in the request. Text highlights used in the video are fetched from the product automatically or can be provided in the request.\n\nVideos generated can either be of a composite template or a GenAI template. Composite templates are used to generate videos with multiple assets (for example images, texts) stitched together using specific, predefined templates. GenAI templates are used to generate short (\\~6s) video animations from still images.\n\nThe response is returned immediately with a video id. The actual video is generated in the background and the serving url is populated at a later time. The generation may take between 5 to 30 minutes depending on the server load.\n\nVideos generated by default have a TTL of 6 months after which they are eligible for deletion unless the merchant explicitly requests to save the video.\n\n### HTTP request\n\n`POST https://merchantapi.googleapis.com/productstudio/v1alpha/{parent=accounts/*}/videos:generate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account where the video will be generated and stored. Format: `accounts/{account}` |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"videoInput\": { object (/merchant/api/reference/rest/productstudio_v1alpha/accounts.videos#VideoInput) } } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `videoInput` | `object (`[VideoInput](/merchant/api/reference/rest/productstudio_v1alpha/accounts.videos#VideoInput)`)` Required. The input request to generate video. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Video](/merchant/api/reference/rest/productstudio_v1alpha/accounts.videos#Video).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]