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

# Veo 3.1 Standard — First Last Frame To Video

> Google Veo 3.1 cinematic text/image-to-video with native audio; standard/Fast/Lite tiers. Optimized for first-last frame to video via apisale.

## Overview

Google Veo 3.1 cinematic text/image-to-video with native audio; standard/Fast/Lite tiers. Optimized for first-last frame to video via apisale.

<Info>
  **Docs** = API contract + Try it (snapshot). **[Explore](https://apisale.ai/explore)** = browser playground. **[Model page](https://apisale.ai/models/google/veo-3.1/first-last-frame-to-video)** = product examples.
</Info>

## Endpoint

```http theme={null}
POST https://api.apisale.ai/v1/run/google/veo-3.1/first-last-frame-to-video
```

|                |                                                         |
| -------------- | ------------------------------------------------------- |
| **Model slug** | `google/veo-3.1/first-last-frame-to-video`              |
| **Category**   | First-Last Frame to Video (`first-last-frame-to-video`) |
| **Lab**        | Google                                                  |
| **Tier**       | Standard                                                |
| **Mode**       | async                                                   |

## Pricing

**From \$0.140/sec**

apisale price is **30%** below the vendor's official list price.

| Tier                                 | Unit   | Official price | apisale price |
| ------------------------------------ | ------ | -------------- | ------------- |
| 14af1070-8326-4d35-af5b-810c5f5b80eb | second | \$0.200        | \$0.140       |
| 61b827a4-fda6-45e3-900a-3950c9753d5b | second | \$0.400        | \$0.280       |
| 42f584db-34c1-442b-957a-7782ba4310b2 | second | \$0.200        | \$0.140       |
| 1b1310e2-4efd-414a-9e2c-4d93af25b497 | second | \$0.400        | \$0.280       |
| f892a520-529f-4a9e-b62f-d6eef4a85d97 | second | \$0.400        | \$0.280       |
| 45a88b37-2a88-4669-b631-3a4cc255b34c | second | \$0.600        | \$0.420       |

<Info>
  **Official price** = vendor list price. **apisale price** = what you pay through apisale.
</Info>

## Request

```json theme={null}
{‌
  "input": {‌
    "prompt": "Seamless cinematic transition from the first frame to the last frame, natural motion interpolation, consistent lighting",
    "duration": "4s",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": false,
    "safety_tolerance": "4",
    "last_frame_url": "https://assets.apisale.ai/temp/2026/07/17/475424e9-4578-45cc-b0bf-bf3f991c18b1.png",
    "first_frame_url": "https://assets.apisale.ai/temp/2026/07/17/088eac17-83e2-418d-aaa6-60e92fbdedc3.png"
  }
}
```

### Parameters

Fields marked \* are required. Use `Authorization: Key YOUR_API_KEY` for REST.

<ParamField body="input.seed" type="number">
  Optional random seed for reproducibility.
</ParamField>

<ParamField body="input.prompt" type="string" required>
  Text prompt for video generation. Maximum 4000 characters.
</ParamField>

<ParamField body="input.auto_fix" type="boolean">
  —
</ParamField>

<ParamField body="input.duration" type="string">
  Default: `8s` Values: `4s`, `6s`, `8s`
</ParamField>

<ParamField body="input.resolution" type="string">
  Default: `720p` Values: `720p`, `1080p`, `4k`
</ParamField>

<ParamField body="input.aspect_ratio" type="string">
  Default: `auto` Values: `auto`, `16:9`, `9:16`
</ParamField>

<ParamField body="input.generate_audio" type="boolean">
  Default: `true`
</ParamField>

<ParamField body="input.last_frame_url" type="string" required>
  Last frame image URL (JPEG/PNG/WebP).
</ParamField>

<ParamField body="input.first_frame_url" type="string" required>
  First frame image URL (JPEG/PNG/WebP).
</ParamField>

<ParamField body="input.negative_prompt" type="string">
  Negative prompt. Maximum 2000 characters.
</ParamField>

<ParamField body="input.safety_tolerance" type="string">
  Default: `4` Values: `1`, `2`, `3`, `4`, `5`, `6`
</ParamField>

<ParamField body="webhook_url" type="string">
  Optional HTTPS webhook when the run reaches a terminal state.
</ParamField>

<ParamField body="sync" type="boolean">
  Block until completion (same Run response shape).
</ParamField>

<AccordionGroup>
  <Accordion title="Input schema">
    ```json expandable theme={null}
    {‌
      "params": {‌
        "seed": {‌
          "type": "int",
          "description": "Optional random seed for reproducibility."
        },
        "prompt": {‌
          "type": "string",
          "required": true,
          "max_length": 4000,
          "description": "Text prompt for video generation. Maximum 4000 characters."
        },
        "auto_fix": {‌
          "type": "bool"
        },
        "duration": {‌
          "type": "enum",
          "values": [
            "4s",
            "6s",
            "8s"
          ],
          "default": "8s"
        },
        "resolution": {‌
          "type": "enum",
          "values": [
            "720p",
            "1080p",
            "4k"
          ],
          "default": "720p"
        },
        "aspect_ratio": {‌
          "type": "enum",
          "values": [
            "auto",
            "16:9",
            "9:16"
          ],
          "default": "auto"
        },
        "generate_audio": {‌
          "type": "bool",
          "default": true
        },
        "last_frame_url": {‌
          "type": "media",
          "required": true,
          "description": "Last frame image URL (JPEG/PNG/WebP)."
        },
        "first_frame_url": {‌
          "type": "media",
          "required": true,
          "description": "First frame image URL (JPEG/PNG/WebP)."
        },
        "negative_prompt": {‌
          "type": "string",
          "max_length": 2000,
          "description": "Negative prompt. Maximum 2000 characters."
        },
        "safety_tolerance": {‌
          "type": "enum",
          "values": [
            "1",
            "2",
            "3",
            "4",
            "5",
            "6"
          ],
          "default": "4"
        }
      }
    }
    ```
  </Accordion>
</AccordionGroup>

## Submit response

Returns a **Run** with `run_id`. Poll with [GET /v1/runs/\{run\_id}](/model-apis/poll-runs) or use **Try it** above.

<ResponseField name="run_id" type="string" required>
  Unique run ID — save for polling and webhooks.
</ResponseField>

<ResponseField name="status" type="string" required>
  `queued` (async) or terminal state for sync runs.
</ResponseField>

<ResponseField name="output" type="object">
  Result when `status` is `succeeded` — see **Output schema** below.
</ResponseField>

### Example (async submit)

```json theme={null}
{
  "run_id": "run_550e8400-e29b-41d4-a716-446655440000",
  "endpoint": "google/veo-3.1/first-last-frame-to-video",
  "model": "first-last-frame-to-video",
  "capability": "video",
  "mode": "first-last-frame-to-video",
  "status": "queued",
  "output": null,
  "error": null,
  "billing": null,
  "created_at": "2026-06-27T12:00:00.000Z",
  "started_at": null,
  "completed_at": null,
  "elapsed_ms": null
}
```

Full lifecycle: [Runs lifecycle](/model-apis/runs-lifecycle).

## Output

When `status` is `succeeded`, `output` follows this schema:

<AccordionGroup>
  <Accordion title="Output schema">
    ```json expandable theme={null}
    {‌
      "type": "object",
      "example": {‌
        "videos": [
          {‌
            "url": "https://cdn.mountsea.ai/tasks/ms-example/0.mp4"
          }
        ]
      },
      "required": [
        "videos"
      ],
      "properties": {‌
        "videos": {‌
          "type": "array",
          "items": {‌
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {‌
              "url": {‌
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "description": "Succeeded task output: single video URL."
    }
    ```
  </Accordion>
</AccordionGroup>

## Example

```bash theme={null}
curl -X POST "https://api.apisale.ai/v1/run/google/veo-3.1/first-last-frame-to-video" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "Seamless cinematic transition from the first frame to the last frame, natural motion interpolation, consistent lighting",
    "duration": "4s",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": false,
    "safety_tolerance": "4",
    "last_frame_url": "https://assets.apisale.ai/temp/2026/07/17/475424e9-4578-45cc-b0bf-bf3f991c18b1.png",
    "first_frame_url": "https://assets.apisale.ai/temp/2026/07/17/088eac17-83e2-418d-aaa6-60e92fbdedc3.png"
  }
}'
```

## Related

* [Veo 3.1 Fast — First Last Frame To Video](/api/video/google/veo-3.1/fast/first-last-frame-to-video)
* [Veo 3.1 Lite — First Last Frame To Video](/api/video/google/veo-3.1/lite/first-last-frame-to-video)
* [Runs lifecycle](/model-apis/runs-lifecycle)
* [Video API overview](/api/video)
* [Account API](/get-started/account-and-monitoring)


## OpenAPI

````yaml openapi-catalog.json POST /v1/run/google/veo-3.1/first-last-frame-to-video
openapi: 3.0.3
info:
  title: apisale Model Catalog
  version: '2026-09-01T09:47:50.773Z'
  description: Per-model OpenAPI operations for Mintlify Try playground.
servers:
  - url: https://api.apisale.ai
security: []
paths:
  /v1/run/google/veo-3.1/first-last-frame-to-video:
    post:
      tags:
        - Model catalog
        - video
        - Google
      summary: Create Veo 3.1 Standard — First Last Frame To Video
      description: >-
        Google Veo 3.1 cinematic text/image-to-video with native audio;
        standard/Fast/Lite tiers. Optimized for first-last frame to video via
        apisale.
      operationId: submit-google-veo-3-1-first-last-frame-to-video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - input
              properties:
                input:
                  type: object
                  properties:
                    seed:
                      description: Optional random seed for reproducibility.
                      type: number
                    prompt:
                      description: >-
                        Text prompt for video generation. Maximum 4000
                        characters.
                      type: string
                    auto_fix:
                      type: boolean
                    duration:
                      type: string
                      enum:
                        - 4s
                        - 6s
                        - 8s
                      default: 8s
                    resolution:
                      type: string
                      enum:
                        - 720p
                        - 1080p
                        - 4k
                      default: 720p
                    aspect_ratio:
                      type: string
                      enum:
                        - auto
                        - '16:9'
                        - '9:16'
                      default: auto
                    generate_audio:
                      type: boolean
                      default: true
                    last_frame_url:
                      description: Last frame image URL (JPEG/PNG/WebP).
                      type: string
                      format: uri
                    first_frame_url:
                      description: First frame image URL (JPEG/PNG/WebP).
                      type: string
                      format: uri
                    negative_prompt:
                      description: Negative prompt. Maximum 2000 characters.
                      type: string
                    safety_tolerance:
                      type: string
                      enum:
                        - '1'
                        - '2'
                        - '3'
                        - '4'
                        - '5'
                        - '6'
                      default: '4'
                  required:
                    - prompt
                    - last_frame_url
                    - first_frame_url
                  example:
                    prompt: >-
                      Seamless cinematic transition from the first frame to the
                      last frame, natural motion interpolation, consistent
                      lighting
                    duration: 4s
                    resolution: 720p
                    aspect_ratio: '16:9'
                    generate_audio: false
                    safety_tolerance: '4'
                    last_frame_url: >-
                      https://assets.apisale.ai/temp/2026/07/17/475424e9-4578-45cc-b0bf-bf3f991c18b1.png
                    first_frame_url: >-
                      https://assets.apisale.ai/temp/2026/07/17/088eac17-83e2-418d-aaa6-60e92fbdedc3.png
                webhook_url:
                  type: string
                  format: uri
                sync:
                  type: boolean
                  default: false
            example:
              input:
                prompt: >-
                  Seamless cinematic transition from the first frame to the last
                  frame, natural motion interpolation, consistent lighting
                duration: 4s
                resolution: 720p
                aspect_ratio: '16:9'
                generate_audio: false
                safety_tolerance: '4'
                last_frame_url: >-
                  https://assets.apisale.ai/temp/2026/07/17/475424e9-4578-45cc-b0bf-bf3f991c18b1.png
                first_frame_url: >-
                  https://assets.apisale.ai/temp/2026/07/17/088eac17-83e2-418d-aaa6-60e92fbdedc3.png
      responses:
        '201':
          description: Run accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunObject'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RunObject:
      type: object
      required:
        - run_id
        - endpoint
        - model
        - capability
        - mode
        - status
        - created_at
      properties:
        run_id:
          type: string
          description: Unique run identifier
        endpoint:
          type: string
          description: Model slug
        model:
          type: string
        capability:
          type: string
        mode:
          type: string
        status:
          type: string
          enum:
            - queued
            - processing
            - succeeded
            - failed
            - timeout
            - cancelled
        output:
          type: object
          nullable: true
        error:
          type: object
          nullable: true
          properties:
            type:
              type: string
              description: Machine-readable error code
            code:
              type: number
              description: HTTP status
            message:
              type: string
        billing:
          type: object
          nullable: true
          properties:
            amount:
              type: string
            currency:
              type: string
              enum:
                - usd
        created_at:
          type: string
          format: date-time
        started_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        elapsed_ms:
          type: number
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Key sk-... (native REST) or Bearer sk-... (vendor SDKs)

````