Kandinsky5

kandinsky5-text-to-video

post

Kandinsky 5.0 is a diffusion model for fast, high-quality text-to-video generation.

Header parameters
AuthorizationstringRequiredExample: sk-yOm1Vc3raDjQluBttyAwSdbVxtWFEAPCbtAZ2uF3yST1xNCY
Body
modelstringRequired

model is the model name

Example: kandinsky5-text-to-video
promptstringRequired

prompt is the prompt.

Example: A cute baby sea otter.
resolutionstring · enumOptional

Resolution of the generated video in W:H format. One of (768x512, 512x768, 512x512). Default value: "768x512"

Possible enum values: 768x512, 512x768, 512x512

Default: 768x512Example: 768x512Possible values:
video_lengthstring · enumOptional

The length of the video to generate (5s or 10s) Default value: "5s"

Possible enum values: 5s, 10s

Default: 5sExample: 5sPossible values:
num_inference_stepsintegerOptional

The number of inference steps. Default value: 30

Default: 30Example: 30
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/videos/generations
POST /v1/videos/generations HTTP/1.1
Host: video.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 160

{
  "model": "kandinsky5-text-to-video",
  "prompt": "A cute baby sea otter.",
  "resolution": "768x512",
  "video_length": "5s",
  "num_inference_steps": 30,
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/video/generated%2Fonerouter_00af7b56-8f73-4e09-b107-17a3d3665551.mp4",
      "revised_prompt": ""
    }
  ],
  "created": 1760776064
}

Last updated