How Script Generation Works
The Hoox Script Generation API creates compelling video scripts using AI-powered text generation:- Content Analysis: Process your prompt and any provided URLs
- Web Enhancement: Optionally search the web for additional context
- Script Creation: Generate natural, engaging scripts tailored to your duration
- Image Extraction: Extract relevant images from web sources for visual elements
Result
The API returns a generated script along with cost information and extracted images when URLs are provided.Image Extraction
When you provide URLs in your request, the system automatically extracts relevant images from those web pages. These extracted image URLs are returned in theextractedImages
array.
Why is this useful? You can directly pass these extracted image URLs to the Video Generation API using the media_urls
parameter. This automatically incorporates the images from your source URLs into the generated video, creating a seamless content workflow.
Parameters
Required Parameters
Prompt
Your main instruction describing what the script should be about. Be specific about the tone, target audience, and key points you want covered.Optional Parameters
Duration
Target script length in seconds (10-600). Defaults to 60 seconds.URLs
Array of web sources to incorporate into your script (max 10 URLs). The system automatically scrapes and analyzes these URLs without needing to enable web search.URLs are processed automatically - you don’t need to enable
webSearch
for URL content extraction.Web Search
Enable additional web research to enhance script content with current information.Cost Structure
Transparent credit-based pricing:- Base Cost: 0.1 credit per started 60-second segment
- URL Processing: +0.1 credit per URL
- Web Search: +0.1 credit when enabled