Skip to main content

API Workflow Overview

The Hoox API follows a simple workflow to create professional videos:
1

Get Resources

Discover available voices and avatars for your videos
2

Generate Content

Create a script or directly generate a video from a prompt
3

Monitor Progress

Track generation status until completion
4

Export Video

Export your video to downloadable MP4 format

Step 1: Get your API key

  1. Log in to your Hoox dashboard
  2. Go to Your Space > Settings > API
  3. Click Generate API Key
  4. Copy and save your key (it will only be shown once)
Keep your API key secret! Never share it publicly or commit it to version control.

Step 2: Discover Available Resources

Before creating videos, explore the voices and avatars available for your account:

Get Available Voices

Explore all available voices using the voices API endpoint:
curl -X GET "https://app.hoox.video/api/public/v1/resources/voices" \
  -H "Authorization: Bearer your_api_key"

Get Available Avatars

Discover available avatars using the avatars API endpoint:
curl -X GET "https://app.hoox.video/api/public/v1/resources/avatars?tags=business" \
  -H "Authorization: Bearer your_api_key"

Step 3: Generate Your First Video

You can generate videos in two ways: directly from a prompt, or by first generating a script for review.

Option A: Direct Video Generation

Generate videos directly from prompts using the video generation API:
curl -X POST "https://app.hoox.video/api/public/v1/generation/start" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create an explanatory video about sustainable energy solutions",
    "duration": 60,
    "voice_id": "voice_en_us_female_sarah",
    "avatar_id": "avatar_business_woman_office_1",
    "format": "vertical",
    "web_search": {
      "script": true,
      "images": true
    },
    "animate_image": true
  }'

Option B: Generate Script First

For better control, generate a script first using the script generation API:
# First, generate a script
curl -X POST "https://app.hoox.video/api/public/v1/script/generate" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create an explanatory video about sustainable energy solutions",
    "duration": 60,
    "webSearch": true
  }'
Poll the generation status API until generation is complete:
curl -X GET "https://app.hoox.video/api/public/v1/generation/status/{job_id}" \
  -H "Authorization: Bearer your_api_key"

Step 5: Export the Video

Export your video to a downloadable MP4 file using the export start API:
curl -X POST "https://app.hoox.video/api/public/v1/export/start" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "video_id": "YOUR_VIDEO_ID",
    "format": "vertical"
  }'
Free first export for API Videos: Videos created through the API have export costs included in the generation price, so first export is free.

Next Steps

I