omniflash / omniflash-sdk
Omni Flash PHP SDK — generate short videos (with synchronized audio) and images using the Gemini Omni Flash family of models.
v0.1.0
2026-05-20 08:17 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
README
PHP client for Gemini Omni Flash — generate short video clips (with synchronized audio) and images using Google's Gemini Omni Flash family of models.
Gemini Omni Flash wraps the Omni Flash family (seedance-2 for text/image → video + audio, gpt-image-2 and nano-banana-2 for text/image → image) behind one simple REST API.
Install
composer require omniflash/omniflash-sdk
Get an API key
Sign in at Gemini Omni Flash, open the account page, then create a sk-… token.
export OMNIFLASH_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Quick start
<?php require __DIR__ . '/vendor/autoload.php'; use OmniFlash\Client; $client = new Client(); // reads OMNIFLASH_API_KEY $task = $client->run([ 'model_id' => 'seedance-2', 'prompt' => 'a kettle whistles as steam rises, cozy kitchen', 'aspect_ratio' => '16:9', ]); echo $task->videoUrl, "\n"; echo $task->audioUrl, "\n"; // synchronized audio
Lower level
$task = $client->createTask([ 'model_id' => 'gpt-image-2', 'prompt' => 'cyberpunk corgi, neon rim light', ]); while (!$task->isDone()) { sleep(3); $task = $client->getTask($task->taskId); } echo $task->imageUrl;
Models
model_id |
Modality | Output |
|---|---|---|
seedance-2 |
text/image → video | video_url + audio_url |
gpt-image-2 |
text/image → image | image_url |
nano-banana-2 |
text/image → image | image_url |
Links
- Website & account: Gemini Omni Flash
- API docs: https://omniflash.net/api-docs
License
MIT