inferenceClient.videos.create()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

inferenceClient.videos.create(params: Record<string, any>): Promise<any>

Description

Start an asynchronous video generation job from a text prompt. Poll GET /v1/videos/{video_id} until the job reaches a terminal status, then download the MP4 with GET /v1/videos/{video_id}/content or from output.url when present.

Parameters

model string required

Example: wan2-2-t2v-a14b

The video generation model to use.

prompt string required

Example: Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage

A text description of the desired video.

Min length: 1

size string optional

Example: 1280x720

The output resolution, for example 1280x720.

fps integer optional

Example: 16

Frames per second for the generated video.

Min: 1

Request Sample

Show Request Sample
import { InferenceClient } from "@digitalocean/dots";

const inferenceClient = new InferenceClient({
    apiKey: process.env.MODEL_ACCESS_KEY!,
});

const response = await inferenceClient.videos.create({
    model: "wan2-2-t2v-a14b",
    prompt: "Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage",
    size: "1280x720",
    fps: 16,
});

Response Example

Show Response Example
{
  "id": "video_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOm9wZW5haTttb2RlbF9pZDo7dmlkZW9faWQ6ZGExYjFmYzMtYTM3NC00MmM0LTgxMWMtOWE5NmE3ZWY0OTIz",
  "object": "video",
  "created_at": 1777003604,
  "model": "wan2.2-t2v-a14b",
  "status": "processing",
  "output": {
    "url": "https://example.com/output.mp4"
  },
  "x_request_id": "string"
}

More Information

See /v1/videos in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.