Search by

imagetovideoai / image-to-video-ai-php

imagetovideoai

PHP SDK for Image to Video AI generation APIs.

dev-master 2026-07-16 02:20 UTC

This package is not auto-updated.

Last update: 2026-09-11 02:04:25 UTC


README

PHP SDK for Image to Video AI, an AI media platform for turning still images into motion clips and generating video assets from prompts.

Install

composer require imagetovideoai/image-to-video-ai-php

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use ImageToVideoAI\ImageToVideoAI;

$client = new ImageToVideoAI(
    apiKey: getenv('IMAGETOVIDEOAI_API_KEY')
);

$task = $client->createImageToVideo([
    'url' => 'https://example.com/source-image.jpg',
    'prompt' => 'A cinematic camera push-in with natural motion',
    'model' => 'veo-3.1-fast',
    'duration' => 5,
    'resolution' => '720p',
    'aspectRatio' => '16:9',
]);

$result = $client->getImageToVideoResult($task['data']['task_id'] ?? $task['task_id']);

Supported Helpers

  • createImageToVideo(array $payload)
  • getImageToVideoResult(string $taskId)
  • createTextToVideo(array $payload)
  • getTextToVideoResult(string $taskId)
  • createImageToImage(array $payload)
  • getImageToImageResult(string $taskId)
  • createTextToImage(array $payload)
  • getTextToImageResult(string $taskId)
  • request(string $method, string $path, array $payload = [])

API Key

Create or manage your API key from your Image to Video AI account, then pass it as a Bearer token through this SDK.

export IMAGETOVIDEOAI_API_KEY="your_api_key"

Links