{
 "spec_version": 1,
 "model": "google/veo-3.1-lite",
 "type": "video",
 "input_modalities": [
  "text",
  "image"
 ],
 "output_modalities": [
  "video"
 ],
 "context_window": null,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/videos"
 },
 "async": {
  "poll": "GET /v1/videos/{video_id}",
  "download": "GET /v1/videos/{video_id}/content"
 },
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "prompt",
   "type": "string",
   "required": true,
   "description": "What happens in the clip."
  },
  {
   "name": "duration",
   "type": "integer",
   "description": "Length in whole seconds. `seconds` is accepted too.",
   "enum": [
    4,
    6,
    8
   ],
   "default": 6
  },
  {
   "name": "resolution",
   "type": "string",
   "enum": [
    "720p",
    "1080p"
   ],
   "description": "Output resolution; lower is faster and cheaper."
  },
  {
   "name": "aspect_ratio",
   "type": "string",
   "enum": [
    "16:9",
    "9:16"
   ],
   "description": "Output aspect ratio."
  },
  {
   "name": "generate_audio",
   "type": "boolean",
   "description": "`true` for a clip with sound, `false` for a silent one."
  },
  {
   "name": "seed",
   "type": "integer",
   "minimum": -1,
   "maximum": 4294967295,
   "description": "Same seed, prompt and settings give a similar clip; `-1` or none is random. If the request is served where a seed is not available it is ignored and named in the `x-oceantoken-dropped-params` response header."
  },
  {
   "name": "frame_images",
   "type": "array",
   "maxItems": 2,
   "description": "The first frame and last frame: `{\"type\": \"image_url\", \"frame_type\": \"first_frame\", \"image_url\": {\"url\": ...}}`.",
   "frame_types": [
    "first_frame",
    "last_frame"
   ]
  }
 ],
 "response": {
  "fields": [
   {
    "name": "id",
    "type": "string",
    "description": "The job's ID; poll it."
   },
   {
    "name": "status",
    "type": "string",
    "enum": [
     "queued",
     "in_progress",
     "completed",
     "failed"
    ],
    "description": "Where the job is."
   },
   {
    "name": "seconds",
    "type": "string",
    "description": "Length of the clip."
   },
   {
    "name": "size",
    "type": [
     "string",
     "null"
    ],
    "description": "The `size` the request asked for (width x height), not measured from the file; null when the request named a `resolution` instead."
   },
   {
    "name": "content_url",
    "type": "string",
    "description": "Once completed: the MP4, valid for 24 hours."
   },
   {
    "name": "error",
    "type": "object",
    "description": "On a failed job: `code` and `message`."
   }
  ],
  "example": {
   "id": "video_...",
   "object": "video",
   "status": "completed",
   "model": "google/veo-3.1-lite",
   "seconds": "6",
   "size": null,
   "created_at": 1792000000,
   "completed_at": 1792000095,
   "content_url": "https://...",
   "error": null
  }
 },
 "examples": [
  {
   "title": "Text to video",
   "request": {
    "model": "google/veo-3.1-lite",
    "prompt": "A paper boat drifting down a rain-soaked street",
    "duration": 6,
    "resolution": "720p"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model",
   "prompt"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "prompt": {
    "type": "string",
    "description": "What happens in the clip."
   },
   "duration": {
    "type": "integer",
    "description": "Length in whole seconds. `seconds` is accepted too.",
    "enum": [
     4,
     6,
     8
    ],
    "default": 6
   },
   "resolution": {
    "type": "string",
    "description": "Output resolution; lower is faster and cheaper.",
    "enum": [
     "720p",
     "1080p"
    ]
   },
   "aspect_ratio": {
    "type": "string",
    "description": "Output aspect ratio.",
    "enum": [
     "16:9",
     "9:16"
    ]
   },
   "generate_audio": {
    "type": "boolean",
    "description": "`true` for a clip with sound, `false` for a silent one."
   },
   "seed": {
    "type": "integer",
    "description": "Same seed, prompt and settings give a similar clip; `-1` or none is random. If the request is served where a seed is not available it is ignored and named in the `x-oceantoken-dropped-params` response header.",
    "minimum": -1,
    "maximum": 4294967295
   },
   "frame_images": {
    "type": "array",
    "description": "The first frame and last frame: `{\"type\": \"image_url\", \"frame_type\": \"first_frame\", \"image_url\": {\"url\": ...}}`.",
    "maxItems": 2
   }
  }
 }
}
