📚 Documentation

API Reference

Integrate VideoHub.ai into your applications with our REST API.

Quick Start

Authenticate with your API key and make your first request:

bash
curl -X POST https://api.videohub.ai/api/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text-to-video",
    "prompt": "A cinematic sunrise over mountains",
    "model": "kling-3",
    "options": { "duration": "6s", "aspect": "16:9" }
  }'

Endpoints

POST/api/auth/signup

Create a new account

Request Body

{ "name": "John Doe", "email": "john@example.com", "password": "securepass123" }

Response

{ "token": "eyJhbG...", "user": { "id": "...", "name": "John Doe" } }