Skip to content

Create URL to Video

FreshPOST
POST https://api.creatify.ai/api/link_to_videos/

Create a video from a URL. Creatify analyzes the page content, extracts product information and images, and generates a video ad automatically.

Credit Cost

5 credits per 30 seconds of video

Request Body

NameTypeRequiredDescription
urlstringYesThe URL to generate a video from
aspect_ratiostringNoVideo aspect ratio (e.g., 16:9, 9:16, 1:1)
voice_idstringNoVoice ID for narration
creator_idstringNoAvatar ID to use as presenter
languagestringNoLanguage code for the video
stylestringNoVideo style preset

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/link_to_videos/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/product-page",
    "aspect_ratio": "9:16",
    "voice_id": "voice-en-001"
  }'

Response

json
{
  "id": "ltv-001",
  "status": "pending",
  "url": "https://example.com/product-page",
  "aspect_ratio": "9:16",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Task created successfully
400Bad request -- invalid URL or parameters
401Unauthorized -- invalid API credentials
402Insufficient credits
429Rate limit exceeded
500Internal server error

Workflow

  1. Create the task with POST /api/link_to_videos/
  2. Poll GET /api/link_to_videos/{id}/ until status is done
  3. Generate preview with POST /api/link_to_videos/preview/ (1 credit/30s)
  4. Render final video with POST /api/link_to_videos/render/ (4 credits/30s)

TIP

For best results, provide URLs to product pages with clear images and descriptions. E-commerce pages work particularly well.