AI video clipping API for developers

The Klap API turns long videos into ready-to-post vertical shorts. Every clip gets a virality score, active-speaker reframing and animated captions, in 99+ languages. It's self-serve and priced per use: $0.44 per input video, $0.32 per generated short and $0.48 per export, with no subscription and no sales call.

$5 in free API credits when you add a card. You aren't charged until you buy more.
curl -X POST "https://api.klap.app/v2/tasks/video-to-shorts" \
  -H "Authorization: Bearer <api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "source_video_url": "https://www.youtube.com/watch?v=VIDEO_ID",
    "max_clip_count": 10,
    "max_duration": 60
  }'
Short thumbnail
Short thumbnail
Short thumbnail
Short thumbnail
Short thumbnail

Used by teams at

Klap API pricing

Pay per use, in USD, with no subscription. A long video costs the same to submit as a short one.

OperationPrice
Video input
Per video you submit, whatever its length.
$0.44
Generated short
Per short Klap generates, not the maximum you asked for.
$0.32
Export
Per short you render to MP4.
$0.48

Example: 1 video, 10 shorts, 10 exports = $8.44

1 input video
$0.44
10 generated shorts
$3.20
10 exports
$4.80
  • Export only the 3 best shorts and it costs $5.08.
  • $5 in free credits covers 1 video, 10 shorts and 2 exports ($4.60).
  • After that, buy credits from $10, with optional auto top-up.

Running high volumes? Email support@klap.app and tell us what you're building.

Quick start: from a long video to MP4s

The base URL is https://api.klap.app/v2. Every request carries your key as a Bearer token.

  1. 1

    Get an API key

    Create a Klap account and open klap.app/rest-api. Add a card to unlock $5 in free API credits, then create your key. You aren't charged until you buy more.

  2. 2

    Send a long video

    Submit a link to the video. The response has the task's id, and output_id is the folder its shorts will land in.

    curl -X POST "https://api.klap.app/v2/tasks/video-to-shorts" \
      -H "Authorization: Bearer $KLAP_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "source_video_url": "https://www.youtube.com/watch?v=VIDEO_ID",
        "max_clip_count": 10,
        "max_duration": 60
      }'
  3. 3

    Get the shorts

    Poll the task until its status is "ready", then list the folder. Each short has an id, a title and a virality score.

    curl "https://api.klap.app/v2/tasks/TASK_ID" -H "Authorization: Bearer $KLAP_API_KEY"
    
    curl "https://api.klap.app/v2/projects/FOLDER_ID" -H "Authorization: Bearer $KLAP_API_KEY"
  4. 4

    Export the ones you want

    Render a short to MP4, then poll the export. When its status is "ready", src_url is the video.

    curl -X POST "https://api.klap.app/v2/projects/FOLDER_ID/PROJECT_ID/exports" \
      -H "Authorization: Bearer $KLAP_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{}'
    
    curl "https://api.klap.app/v2/projects/FOLDER_ID/PROJECT_ID/exports/EXPORT_ID" -H "Authorization: Bearer $KLAP_API_KEY"

API limits

Input video length
Up to 3 hours per video
Shorts per video
Up to 100, 10 by default (max_clip_count)
Short length
1 to 180 seconds (min_duration, target_duration, max_duration)
Video sources
YouTube, Twitch, Kick, Vimeo, Loom, Google Drive and Dropbox links, and direct links to video files
Languages
99+, auto-detected or set with language. Translate captions with translate_to
Output
MP4, 1080 x 1920 by default. Set dimensions for other sizes
Monthly volume
No monthly cap: you pay per use

Klap API vs OpusClip API

Looking for an OpusClip API alternative? Klap prices each video and each clip, so a long video costs no more than a short one, there's no plan to buy and no monthly cap on hours, and captions come in 99+ languages.

Klap APIOpusClip API
Getting accessAny Klap account: add a card at klap.app/rest-api and create a keyIts docs list API access on Pro (Beta), Max and Business plans. Its API page also advertises a self-serve free tier
What you pay for$0.44 per input video, $0.32 per short, $0.48 per exportPlan credits: 1 credit per minute of source video, with a 10-credit minimum per API project
A 3-hour video$8.44 with 10 shorts and 10 exports, the same as for a 10-minute video180 credits, or $8.70 to $17.40 at Pro's rates ($174 a year or $29 a month, for 300 credits a month)
Monthly volumeNo monthly cap15 hours (900 credits) of API video a month on Pro (Beta) and Max. Business follows your contract
Caption languages99+Over 20
OpusClip details from its API limits, API overview, credits, pricing and API page pages, checked on November 4, 2026.

What can you do with the Klap API

Automate your video creation and posting process.

Turn long videos into shorts

Automatically convert long-form videos into viral shorts. Submit a YouTube link or a link to a video file, and our API identifies the most engaging moments to deliver ready-to-post clips for TikTok, Instagram Reels, and YouTube Shorts.

Generate viral captions

Add highly accurate, dynamic subtitles to your videos in 99+ languages. Automate caption generation for user-generated content or global video production to significantly reduce manual editing time.

Smart AI reframing

Seamlessly convert landscape videos into portrait format. Our AI reframing technology automatically tracks and keeps the main subject centered, ensuring perfect framing for mobile-first social platforms.

Get transcripts with timecodes

Access full video transcripts programmatically. Extract perfectly timed, word-level text data to power search, metadata generation, and precise video content analysis.

Video editing API use cases

Agencies illustration
Agencies

Streamline and speed up your editing for multiple clients. What took both hands and hours is now automated. And zero hands.

SaaS illustration
SaaS

Use Klap to power your podcast editor and instantly open up a host of features for your clients.

Ecommerce illustration
Ecommerce

Automate videos for your vast catalog of products and ship videos at scale. What seemed impossible, is now trivial.

Studios illustration
Studios

Take on more clients. Automate and speed up your workflow, unlocking more time slots to fill in with new clients.

Education illustration
Education

Schools, colleges, and online tutorial sites can now automate educational videos at scale.

Creators illustration
Creators

Creators with high demand, open up a world of untapped growth. What took hours, can be automated.

Prefer no code?

Use Klap from ChatGPT or Claude, or from your automation platform. These run on your Klap plan instead of API credits.

Frequently Asked Questions

Does Klap have an API?

Yes. Klap's REST API turns long videos into captioned vertical shorts with a virality score and active-speaker reframing, in 99+ languages. It's self-serve: create an account, add a card and create a key at klap.app/rest-api. It costs $0.44 per input video, $0.32 per generated short and $0.48 per export.

How much does the Klap API cost?

$0.44 per input video, $0.32 per generated short and $0.48 per export. One video turned into 10 shorts, all exported, costs $8.44. Export only the 3 best and it costs $5.08. The price of an input video doesn't depend on its length.

Do I need a subscription or a sales call?

No. You add a card and buy credits from $10 when you need them (1 credit is 1 cent), with optional auto top-up. New accounts get $5 in free API credits once they add a card, which covers 1 video, 10 shorts and 2 exports ($4.60). One grant per card, and prepaid cards aren't eligible. You aren't charged until you buy more.

What can I do with the Klap API?

You can generate ready-to-publish shorts from long videos, add dynamic captions to videos that are already short and reframe them, read transcripts, create managed users and embed the Klap editor in your product.

How do I authenticate with the API?

Include your API key in the request header as Authorization: Bearer <your_api_key>. You can get your API key from your Klap account at klap.app/rest-api.

What is the base URL for the API?

All API requests go to https://api.klap.app/v2, for example POST /tasks/video-to-shorts. The API uses standard HTTP methods and accepts and returns JSON.

How do I know when my shorts are ready?

Poll GET /tasks/{task_id} until its status is "ready", then list the shorts with GET /projects/{folder_id}. Most videos take a few minutes, and longer ones take longer.

How long can my videos be, and how many shorts can I get?

Up to 3 hours per input video and up to 100 shorts per video, each 1 to 180 seconds long. You set the count and lengths on each request.

What video sources and formats does the Klap API support?

Links to YouTube, Twitch, Kick, Vimeo and Loom videos, Google Drive and Dropbox files, and direct links to video files in standard formats such as MP4, MOV and WebM.

Which languages does the API support?

99+ languages. Klap detects the language on its own, or you can set it with language. Use translate_to to translate the captions.

Do API exports carry Klap's branding?

No. API exports carry no Klap branding, and you can add your own logo to each export with the watermark option.

Can I embed the Klap editor in my own application?

Yes. The API supports managed users and embeds, so you can create sub-users and embed the Klap video editor directly in your own product or platform.

How does the Klap API compare with the OpusClip API?

Klap charges $0.44 per input video, $0.32 per generated short and $0.48 per export, on any account, with no monthly cap on hours. OpusClip's API uses plan credits at 1 credit per minute of source video, with a 10-credit minimum per API project, and its docs cap Pro (Beta) and Max at 15 hours of API video a month. Klap supports 99+ languages, and OpusClip's docs list over 20. OpusClip details checked on November 4, 2026.

Can I use Klap without writing code?

Yes. Klap has a ChatGPT app, a Claude connector and an MCP server for AI assistants and agents, a Zapier app in public beta and an n8n community node. A Make app is in review. See klap.app/integrations.