runwayml_flutter
is a Flutter package that provides a Dart wrapper for the Runway API, enabling integration of AI-generated content into Flutter apps.
🚀 Generate videos, check task statuses, and manage tasks with ease!
✅ Generate AI-powered videos from images and text prompts.
✅ Retrieve task status for ongoing tasks.
✅ Cancel or delete tasks effortlessly.
✅ Lightweight and easy to integrate with Flutter apps.
Add runwayml_flutter
to your pubspec.yaml
:
dependencies:
runwayml_flutter: ^0.0.6
Then, run:
flutter pub get
To use this package, obtain a RunwayML API key and initialize the client:
final client = RunwayMLClient(apiKey: 'your_api_key');
final response = await client.generateVideo(
promptImageUrl: 'https://example.com/image.jpg',
model: 'gen3a_turbo',
promptText: 'A futuristic city at sunset.',
ratio: '1280:768',
seed: 12345,
duration: 5,
watermark: false,
);
print('Generated Video Task ID: ${response.id}');
final response = await client.getTaskStatus('task_id');
print('Task Status: ${response.status}');
await client.deleteTask('task_id');
🔹 Prompt Image:
🔹 Prompt Text:
A dynamic shot of a young developer jumping with excitement, holding a Flutter Dash toy in one hand and a business card in the other. A Flutter Dart flag flutters from his pocket, caught by the breeze. Behind him, a digital development board flashes with changing lines of code, with neon lighting creating an energetic, cinematic glow around him, emphasizing the forward motion and passion for tech.
🔹 Generated Videos:
📌 For detailed API documentation, visit the official RunwayML API Docs.
⚡ This package will be updated with new features and improvements over time. Always refer to the latest documentation for updates.
Method | Description |
---|---|
generateVideo(...) |
Generates a video based on an image and a prompt. |
getTaskStatus(String taskId) |
Retrieves the status of a task. |
deleteTask(String taskId) |
Deletes a task by its ID. |
Contributions are welcome! Feel free to open issues or submit pull requests for improvements.
If you found this package helpful, consider supporting by:
- ⭐ Starring the GitHub Repository
- 📺 Watch the tutorial video on YouTube
- 📝 Reading the full introduction on Medium
- 🔔 Following me on X
- 📺 Subscribing to my YouTube Channel for more Flutter content!
Thanks for checking out runwayml_flutter
! 🚀