Documentation

Everything you need to know about using Cliphub.ai

Quick Start Guide

Welcome to Cliphub.ai! This guide will help you get started with creating viral content in minutes.

Prerequisites

  • A Cliphub.ai account (sign up for free)
  • Video content ready to upload
  • Basic understanding of your target platform

Step 1: Upload Your Video

Start by uploading your video content. We support all major formats including MP4, MOV, and AVI. You can either drag and drop your file or paste a YouTube/TikTok URL.

Step 2: Configure Settings

Choose your target platforms and configure clip settings. Our AI will automatically suggest the best settings based on your content type.

Step 3: Generate & Export

Click generate and let our AI work its magic. Within minutes, you'll have multiple viral-ready clips with engaging hooks and optimized formatting.

Code Examples

Upload a Video

const video = await cliphub.videos.upload({
  file: videoFile,
  title: 'My Awesome Video',
  description: 'Check out this amazing content',
  tags: ['tutorial', 'tech', 'coding']
});

console.log(video.id); // 'vid_abc123'

Generate Clips

const clips = await cliphub.clips.generate({
  videoId: 'vid_abc123',
  settings: {
    minDuration: 15,
    maxDuration: 60,
    platforms: ['tiktok', 'instagram'],
    generateHooks: true
  }
});

// Returns array of generated clips
console.log(clips.length); // 5

Export for Platform

const exported = await cliphub.clips.export({
  clipId: 'clip_xyz789',
  platform: 'tiktok',
  options: {
    addCaptions: true,
    addWatermark: false,
    optimize: true
  }
});

// Download URL
console.log(exported.url);

Authentication

All API requests require authentication using an API key. You can generate your API key from the dashboard settings page.

Important

Keep your API key secure and never expose it in client-side code. Always make API requests from your backend server.

Using Your API Key

Include your API key in the Authorization header of every request:

Authorization: Bearer YOUR_API_KEY_HERE

Need Help?

Can't find what you're looking for? Our support team is here to help.