Skip to main content

Overview

Create a new video by sending a POST request to /v1/project/create. Hooked supports multiple video types — each with its own parameters.
Video processing typically takes 2-5 minutes. Use a webhook to get notified when your video is ready.

Endpoint

POST https://api.hooked.ai/v1/project/create

Common Parameters

ParameterTypeRequiredDescription
typestringYesVideo type (see below)
namestringNoVideo title
scriptstringVariesNarration text
avatarIdstringVariesAvatar to use
voiceIdstringVariesVoice for narration
aspectRatiostringNoratio_9_16 (default) or ratio_16_9
captionsbooleanNoEnable auto captions
musicstringNoBackground music ID
webhookstringNoCompletion notification URL

Video Types

Each type has a dedicated endpoint guide with full parameters:

Quick Example

curl -X POST "https://api.hooked.ai/v1/project/create" \
  -H "x-api-key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "class",
    "name": "My Tutorial",
    "script": "Hello! Welcome to this tutorial.",
    "avatarId": "avatar_sarah_01",
    "voiceId": "tzX5paJ07p5hyWFcU3uG",
    "webhook": "https://your-domain.com/webhook"
  }'

Response

{
  "success": true,
  "message": "Project created successfully",
  "data": {
    "projectId": "proj_abc123",
    "status": "processing",
    "estimatedTime": "3-5 minutes"
  }
}