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
modelstringrequired
Video model id (type: video-generation).
promptstringrequired
Description of the video to generate.
durationnumber
Duration in seconds. Capped per-model.
fpsinteger
Frames per second.
aspect_ratiostring
e.g. "16:9", "9:16", "1:1".
imagestring | file
Conditioning image for image-to-video models.
motion_strengthnumber
Strength of motion (when supported).
seedinteger
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/editsSend 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.