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

# Veo 3 Chat

> Use DeerAPI to call the Veo 3 Chat endpoint with request details, response details, examples, and an OpenAPI playground.

## Overview

Use this endpoint to call the Veo 3 Chat workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.

## Before you start

Use the DeerAPI base URL and pass your API Key in the `Authorization` header:

```text theme={null}
https://api.deerapi.com
```

```text theme={null}
Authorization: Bearer $DEERAPI_KEY
```

## Model selection

Choose a current model ID from the [live pricing page](https://api.deerapi.com/pricing). Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.

## Implementation notes

* Use the OpenAPI playground for the exact request fields accepted by this endpoint.
* Keep API Keys on the server side when you build production applications.
* Log the request ID from failed calls so support can investigate the request.
* Retry `429`, `500`, and `503` responses with exponential backoff.


## OpenAPI

````yaml /api/openapi/video/veo3/post-veo3-chat.openapi.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: Veo 3 Chat API
  version: 1.0.0
servers:
  - url: https://api.deerapi.com
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: Veo 3 Chat API
      operationId: post_v1_chat_completions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - messages
              properties:
                model:
                  type: string
                  description: Use this field according to the endpoint schema.
                  default: gpt-5.2
                messages:
                  type: array
                  description: Use this field according to the endpoint schema.
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                      content:
                        type: string
                  default:
                    - role: system
                      content: You are a helpful assistant.
                    - role: user
                      content: Hello!
                stream:
                  type: boolean
                  description: Use this field according to the endpoint schema.
                temperature:
                  type: integer
                  description: Use this field according to the endpoint schema.
                top_p:
                  type: integer
                  description: Use this field according to the endpoint schema.
                'n':
                  type: integer
                  description: Use this field according to the endpoint schema.
                stop:
                  type: string
                  description: Use this field according to the endpoint schema.
                max_tokens:
                  type: integer
                  description: Use this field according to the endpoint schema.
                presence_penalty:
                  type: number
                  description: Use this field according to the endpoint schema.
                frequency_penalty:
                  type: number
                  description: Use this field according to the endpoint schema.
                logit_bias:
                  type: 'null'
                  description: Use this field according to the endpoint schema.
                user:
                  type: string
                  description: Use this field according to the endpoint schema.
              default:
                model: gpt-5.2
                messages:
                  - role: system
                    content: You are a helpful assistant.
                  - role: user
                    content: Hello!
            examples:
              URL_Image_To_Video:
                summary: Veo 3 Chat API
                value:
                  model: veo3-fast-frames
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: >-
                            Generate a cute kitten sitting on a cloud, in a
                            manga style.
                        - type: image_url
                          image_url:
                            url: >-
                              https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png
                  max_tokens: 300
            example:
              model: veo3-fast-frames
              messages:
                - role: user
                  content:
                    - type: text
                      text: >-
                        Generate a cute kitten sitting on a cloud, in a manga
                        style.
                    - type: image_url
                      image_url:
                        url: >-
                          https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png
              max_tokens: 300
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - object
                  - created
                  - model
                  - system_fingerprint
                  - choices
                  - usage
                properties:
                  id:
                    type: string
                    description: Use this field according to the endpoint schema.
                  object:
                    type: string
                    description: Use this field according to the endpoint schema.
                  created:
                    type: integer
                    description: Use this field according to the endpoint schema.
                  model:
                    type: string
                    description: Use this field according to the endpoint schema.
                  system_fingerprint:
                    type: string
                    description: Use this field according to the endpoint schema.
                  choices:
                    type: array
                    description: Use this field according to the endpoint schema.
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          description: Use this field according to the endpoint schema.
                        message:
                          type: object
                          description: Use this field according to the endpoint schema.
                          required:
                            - content
                            - role
                          properties:
                            content:
                              type: string
                              description: Use this field according to the endpoint schema.
                            role:
                              type: string
                              description: Use this field according to the endpoint schema.
                        finish_reason:
                          type: string
                          description: Use this field according to the endpoint schema.
                  usage:
                    type: object
                    description: Use this field according to the endpoint schema.
                    required:
                      - completion_tokens
                      - completion_tokens_details
                      - prompt_tokens
                      - prompt_tokens_details
                      - total_tokens
                    properties:
                      completion_tokens:
                        type: integer
                        description: Use this field according to the endpoint schema.
                      completion_tokens_details:
                        type: object
                        description: Use this field according to the endpoint schema.
                        properties: {}
                      prompt_tokens:
                        type: integer
                        description: Use this field according to the endpoint schema.
                      prompt_tokens_details:
                        type: object
                        description: Use this field according to the endpoint schema.
                        properties: {}
                      total_tokens:
                        type: integer
                        description: Use this field according to the endpoint schema.
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |
            curl https://api.deerapi.com/v1/chat/completions \
              -H "Content-Type: application/json" \
              -H "Authorization: Bearer $DEERAPI_KEY" \
              -d '{
                "model": "veo3-fast-frames",
                "messages": [
                  {
                    "role": "user",
                    "content": [
                      {
                        "type": "text",
                        "text": "Generate a cute kitten sitting on a cloud, in a manga style."
                      },
                      {
                        "type": "image_url",
                        "image_url": {
                          "url": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png"
                        }
                      }
                    ]
                  }
                ],
                "max_tokens": 300
              }'
        - lang: Python
          label: requests
          source: |
            import os
            import requests

            url = "https://api.deerapi.com/v1/chat/completions"
            headers = {
                "Authorization": "Bearer " + os.environ["DEERAPI_KEY"],
                "Content-Type": "application/json",
            }
            payload = {
              "model": "veo3-fast-frames",
              "messages": [
                {
                  "role": "user",
                  "content": [
                    {
                      "type": "text",
                      "text": "Generate a cute kitten sitting on a cloud, in a manga style."
                    },
                    {
                      "type": "image_url",
                      "image_url": {
                        "url": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png"
                      }
                    }
                  ]
                }
              ],
              "max_tokens": 300
            }

            response = requests.post(url, headers=headers, json=payload)
            print(response.json())
        - lang: JavaScript
          label: fetch
          source: >
            const response = await
            fetch("https://api.deerapi.com/v1/chat/completions", {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.DEERAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "model": "veo3-fast-frames",
                "messages": [
                  {
                    "role": "user",
                    "content": [
                      {
                        "type": "text",
                        "text": "Generate a cute kitten sitting on a cloud, in a manga style."
                      },
                      {
                        "type": "image_url",
                        "image_url": {
                          "url": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png"
                        }
                      }
                    ]
                  }
                ],
                "max_tokens": 300
              }),
            });


            console.log(await response.json());
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use a DeerAPI API Key as a Bearer token.

````