Skip to main content
POST
/
v1
/
chat
/
completions
cURL
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
  }'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "system_fingerprint": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "content": "<string>",
        "role": "<string>"
      },
      "finish_reason": "<string>"
    }
  ],
  "usage": {
    "completion_tokens": 123,
    "completion_tokens_details": {},
    "prompt_tokens": 123,
    "prompt_tokens_details": {},
    "total_tokens": 123
  }
}

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:
https://api.deerapi.com
Authorization: Bearer $DEERAPI_KEY

Model selection

Choose a current model ID from the live pricing page. 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.

Authorizations

Authorization
string
header
required

Use a DeerAPI API Key as a Bearer token.

Body

application/json
model
string
default:gpt-5.2
required

Use this field according to the endpoint schema.

messages
object[]
required

Use this field according to the endpoint schema.

stream
boolean

Use this field according to the endpoint schema.

temperature
integer

Use this field according to the endpoint schema.

top_p
integer

Use this field according to the endpoint schema.

n
integer

Use this field according to the endpoint schema.

stop
string

Use this field according to the endpoint schema.

max_tokens
integer

Use this field according to the endpoint schema.

presence_penalty
number

Use this field according to the endpoint schema.

frequency_penalty
number

Use this field according to the endpoint schema.

logit_bias
null

Use this field according to the endpoint schema.

user
string

Use this field according to the endpoint schema.

Response

200 - application/json

Successful Response

id
string
required

Use this field according to the endpoint schema.

object
string
required

Use this field according to the endpoint schema.

created
integer
required

Use this field according to the endpoint schema.

model
string
required

Use this field according to the endpoint schema.

system_fingerprint
string
required

Use this field according to the endpoint schema.

choices
object[]
required

Use this field according to the endpoint schema.

usage
object
required

Use this field according to the endpoint schema.