Photo to Video
photo_to_videoTurn a start photo — and optionally an end photo — into a video. With an end photo the camera travels from the first photo and lands exactly on the second (e.g. two views of the same kitchen → an orbit around the island). Pick a ready-made camera move or write your own prompt; choose the model, length and sound. Costs credits from the user's Pixly balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | kling-v3: 3/5/8/10/15 s, optional sound, lands most precisely on the end frame. kling-2.6: 5/10 s, silent, cheaper. | kling-v3 |
| sound | No | Add ambient sound (kling-v3 only; kling-2.6 is always silent). | |
| format | No | Label for the clip's shape; the video follows the start photo's own shape. | 16:9 |
| prompt | No | Your own description of the video, in any language. Replaces cameraMove when set. | |
| r2Path | No | Storage path of a photo already in the user's Pixly library (from list_library, or returned by an upload ticket) — the alternative to imageUrl. | |
| imageUrl | No | Start frame — where the video begins. Public https URL or data: URI; either imageUrl or r2Path is required. | |
| endR2Path | No | R2 path of the end frame — the alternative to endImageUrl. | |
| cameraMove | No | Ready-made camera move used when no prompt is given. | smooth |
| endImageUrl | No | Optional end frame — the camera travels from the start photo and lands exactly on this one. Best when both photos show the same space from different spots. | |
| durationSeconds | No | Clip length. kling-v3 takes 3, 5, 8, 10 or 15; kling-2.6 takes 5 or 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| type | No | ||
| error | No | ||
| jobId | Yes | Pass to get_job to poll | |
| status | Yes | pending | processing | completed | failed — anything not completed/failed is still running | |
| createdAt | No | ||
| resultUrls | No | Present when completed; valid 7 days | |
| completedAt | No | ||
| creditsCharged | No |