Styling

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

  1. Open the Klap editor at klap.app.
  2. Customize captions, fonts, colors, add a logo, and more.
  3. Save your style as a preset.
  4. On your preset card, click the ... menu, then click “Copy id”.
  5. Use the copied value as style_preset_id in 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_id is provided, its styling will be applied to the generated video(s).
  • You can override aspects of a preset by combining style_preset_id with specific editing_options or dimensions in the same request.
  • For full task request details, see Tasks.