Styling
You can fully customize the visual style of your videos in the Klap editor and reuse that look via a preset.
Create a Style Preset
- Open the Klap editor at klap.app.
- Customize captions, fonts, colors, add a logo, and more.
- Save your style as a preset.
- On your preset card, click the
...menu, then click “Copy id”. - Use the copied value as
style_preset_idin your API request body.
Use With Tasks
Both task types accept style_preset_id in the request payload.
Video to Shorts
POST /v2/tasks/video-to-shorts
Authorization: Bearer <your-api-key>
Content-Type: application/json
{
"source_video_url": "https://example.com/video.mp4",
"language": "en",
"style_preset_id": "dd2875e8-4e75-4887-973c-2adc928dd2ab",
"target_clip_count": 5,
"editing_options": {
"captions": true,
"reframe": true
}
}Video to Video
POST /v2/tasks/video-to-video
Authorization: Bearer <your-api-key>
Content-Type: application/json
{
"source_video_url": "https://example.com/video.mp4",
"language": "en",
"style_preset_id": "dd2875e8-4e75-4887-973c-2adc928dd2ab",
"editing_options": {
"captions": true,
"reframe": true
}
}Notes
- If
style_preset_idis provided, its styling will be applied to the generated video(s). - You can override aspects of a preset by combining
style_preset_idwith specificediting_optionsordimensionsin the same request. - For full task request details, see Tasks.