Skip to main content
POST
/
v2
/
videos
/
generations
Node.js
import GetimgAI from "getimg-ai";

const client = new GetimgAI();

const { id } = await client.videos.generations.create({
  model: "seedance-v1-pro",
  prompt: "A drone shot over a futuristic city skyline at sunset",
  aspect_ratio: "16:9",
  resolution: "1080p",
  duration: 5,
  sound: false,
});
{
  "id": "req-01HXYZVIDEO1234",
  "status": "pending"
}

Authorizations

Authorization
string
header
required

Send your API key as a bearer token: Authorization: Bearer sk_<secret>.

Body

application/json
model
string
required

AI model ID. See supported models.

prompt
string
required

Description of the video to generate.

Required string length: 1 - 4096
images
object[]

Optional reference images. See supported values by model.

Maximum array length: 8
aspect_ratio
string

Optional output aspect ratio. See supported values by model.

resolution
string

Optional output resolution. See supported values by model.

duration
integer

Optional duration in seconds. See supported values by model.

sound
boolean

Set to true to generate audio when supported by the model.

Response

Video generation request accepted.

id
string
required

The ID of the generation request.

status
string
required

The status of the generation request.

Allowed value: "pending"