Generate Video

Google Veo 3

To generate a video use the following curl command:

Pricing: $0.80 Veo 3.1 Quality Model veo-3.1_quality

$0.30 Veo 3.1 Fast Model veo-3.1_fast

Text to prompt generation
curl --location 'https://api.unifically.com/veo-3.1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "model": "veo-3.1_fast",
  "prompt": "Prompt here"
}'
Start and end image generation
curl --location 'https://api.unifically.com/veo-3.1/generate' \
--header 'authorization: Bearer KEY' \
--header 'content-type: application/json' \
--data '{
  "prompt": "make following donkey kong character run in this photo", 
  "model": "veo3.1_fast",
  "aspect_ratio": "16:9",
  "start_image_url": "https://www.w3schools.com/css/img_lights.jpg",
  "end_image_url": "https://www.temp-image.com/ib/truGIKhs2InLM7j_1760634061.png"
}'

Response Examples

// generate endpoint
{
    "code": 200,
    "data": {
        "status": "pending",
        "task_id": "012cc99c521c4247ae645bdcedd90695",
        "output": {},
        "error": {}
    }
}
// callback example thats sent to your callback url
{
  "task_id": "124e9310f254cf20e06299755b1fdfcf",
  "result": {
    "seed": 62744,
    "prompt": "make him walk street",
    "video_url": "https://files.storagecdn.online/video/file_44qp8_1757455820.mp4",
    "audio": true
  },
  "status": "completed" // or failed
}

Parameters

  • prompt: Describes the video scene you want to generate.

  • translate_prompt: Boolean (true/false), If you want to translate the prompt to english from foreign languages, by default its true if no false is provided.

  • seed: Sets the seed for random number generation to ensure reproducibility. Optional.

  • start_image_url: Sets the start image for video, available for both models, must be url only. (optional)

  • end_image_url: Sets the end image for video, available for both models, must be url only. (optional)

  • callback_url: Your callback url, POST configured endpoint that will be posted once generation is completed. (optional)

  • aspect_ratio: 9:16, or default 16:9

Last updated