API Reference

Documentation

Everything you need to integrate Pawan.Krd into your application.

Videos

Generate or edit short videos with text and (optionally) image conditioning. Generation jobs return one or more video URLs in the response.

Generate

POST/v1/videos/generations
📋Request
1{ 2 "model": "your-video-model", 3 "prompt": "A red sports car driving along a coastal road at sunset, cinematic", 4 "duration": 4, 5 "fps": 24, 6 "aspect_ratio": "16:9" 7}

Parameters

model
stringrequired
Video model id (type: video-generation).
prompt
stringrequired
Description of the video to generate.
duration
number
Duration in seconds. Capped per-model.
fps
integer
Frames per second.
aspect_ratio
string
e.g. "16:9", "9:16", "1:1".
image
string | file
Conditioning image for image-to-video models.
motion_strength
number
Strength of motion (when supported).
seed
integer
Deterministic seed.

Response

📋200 OK
1{ 2 "created": 1700000000, 3 "data": [ 4 { "url": "https://cdn.pawan.krd/videos/abc123.mp4" } 5 ] 6}

Edit / restyle

POST/v1/videos/edits

Send a video file plus a prompt to restyle, inpaint, or otherwise edit.

💻curl
1curl https://api.pawan.krd/v1/videos/edits \ 2 -H "Authorization: Bearer pk-your_key" \ 3 -F model="your-video-model" \ 4 -F video=@input.mp4 \ 5 -F prompt="Restyle as anime"
ℹ

Capabilities

Use imageToVideo, videoToVideo, audioGeneration, and maxDurationSeconds on the model object to discover what each video model can do before sending a request.