Video Generation

Generate Video

POSThttps://tryferra.co/api/public/v1/generate-video

Create AI-generated videos for your posts.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Body

type"image-text-slides" | "veo3"required

Video generation type

output"vertical" | "horizontal"required

Video orientation

customParamsobjectrequired
voicestring

ElevenLabs voice ID (for image-text-slides)

promptstring

Description/script for the video

imagesobject[]

Reference images (for veo3, max 3)

idstringrequired
pathstringrequired
thumbnailTimestampnumber

Milliseconds into the video to use as the cover/thumbnail frame. Supported by Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only, not the UPLOAD/inbox flow); other providers ignore it. For TikTok, in our testing the cover was applied only to public posts (privacy_level PUBLIC_TO_EVERYONE).

Request

curl -X POST 'https://tryferra.co/api/public/v1/generate-video' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "image-text-slides",
  "output": "vertical",
  "customParams": {
    "voice": "string",
    "prompt": "string",
    "images": [
      {
        "id": "string",
        "path": "string",
        "thumbnailTimestamp": 0
      }
    ]
  }
}'

Responses

200Video generated successfully
[
  {
    "id": "string",
    "path": "string"
  }
]

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).