omniflash_sdk 0.1.0
omniflash_sdk: ^0.1.0 copied to clipboard
Omni Flash Dart SDK — generate short videos (with synchronized audio) and images using the Gemini Omni Flash family of models.
import 'package:omniflash_sdk/omniflash_sdk.dart';
Future<void> main() async {
// Reads OMNIFLASH_API_KEY from the environment.
// Sign in at https://omniflash.net/ to issue one.
final client = OmniFlash();
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}');
client.close();
}