omniflash_sdk (Dart / Flutter)
Dart 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
dart pub add omniflash_sdk
# Or in Flutter:
flutter pub add omniflash_sdk
Get an API key
Sign in at Gemini Omni Flash, open the account page, then create an sk-… token.
export OMNIFLASH_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Quick start
import 'package:omniflash_sdk/omniflash_sdk.dart';
Future<void> main() async {
final client = OmniFlash(); // reads OMNIFLASH_API_KEY
final task = await client.run(
modelId: 'seedance-2',
prompt: 'a kettle whistles as steam rises, cozy kitchen, warm light',
aspectRatio: '16:9',
);
print('video: ${task.videoUrl}');
print('audio: ${task.audioUrl}'); // synchronized audio
client.close();
}
Models
modelId |
Modality | Output |
|---|---|---|
seedance-2 |
text/image → video | videoUrl + audioUrl |
gpt-image-2 |
text/image → image | imageUrl |
nano-banana-2 |
text/image → image | imageUrl |
Links
- Website & account: Gemini Omni Flash
- API docs: omniflash.net/api-docs
License
MIT
Libraries
- omniflash_sdk
- Omni Flash Dart SDK — generate short videos (with synchronized audio) and images using the Gemini Omni Flash family of models.