Method: accounts.videos.generate

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.