> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Veo 3.1 Lite First and Last Frame Video Generation

Generate videos from first-frame and last-frame images using the Google Veo 3.1 Lite model. Supports durations of 4, 6, and 8 seconds, 720p and 1080p resolutions, and 16:9 and 9:16 aspect ratios. Optional audio generation is supported. Input images can be up to 20MB.

<Tip>
  This is an **asynchronous** API and only returns the task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="seed" type="integer">
  Random seed used to reproduce generated results.

  Value range: \[0, 4294967295]
</ParamField>

<ParamField body="image" type="string" required={true}>
  First-frame image. Image URLs or Base64-encoded data are supported. Supported formats: JPEG, PNG. Maximum 20MB.
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text prompt describing the desired video content to generate.
</ParamField>

<ParamField body="duration" type="integer" default={8}>
  Duration of the generated video, in seconds.

  Allowed values: `4`, `6`, `8`
</ParamField>

<ParamField body="resolution" type="string" default="720p">
  Output video resolution.

  Allowed values: `720p`, `1080p`
</ParamField>

<ParamField body="aspect_ratio" type="string" default="16:9">
  Output video aspect ratio.

  Allowed values: `16:9`, `9:16`
</ParamField>

<ParamField body="sample_count" type="integer" default={1}>
  Number of video samples to generate (1-4).

  Value range: \[1, 4]
</ParamField>

<ParamField body="enhance_prompt" type="boolean" default={true}>
  Whether to enhance the prompt through rewriting.
</ParamField>

<ParamField body="generate_audio" type="boolean" default={false}>
  Whether to generate audio at the same time.
</ParamField>

<ParamField body="negative_prompt" type="string">
  Describes content to avoid in the generated video.
</ParamField>

<ParamField body="last_frame_image" type="string" required={true}>
  Last-frame image. Image URLs or Base64-encoded data are supported. Supported formats: JPEG, PNG. Maximum 20MB.
</ParamField>

<ParamField body="person_generation" type="string" default="allow_adult">
  Whether to allow generation of adult people. allow\_adult: allow adult generation; dont\_allow: do not allow generating people.

  Allowed values: `allow_adult`, `dont_allow`
</ParamField>

## Response Information

<ResponseField name="task_id" type="string" required={false}>
  Use the task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
