runwayml_flutter 0.0.5 copy "runwayml_flutter: ^0.0.5" to clipboard
runwayml_flutter: ^0.0.5 copied to clipboard

A Flutter package that provides a Dart wrapper for the RunwayML API, enabling integration of AI-generated content into Flutter apps.

runwayml_flutter #

pub package License: MIT

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!


✨ Features #

✅ 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.


📦 Installation #

Add runwayml_flutter to your pubspec.yaml:

dependencies:
  runwayml_flutter: ^0.0.4

Then, run:

flutter pub get

🚀 Usage #

To use this package, obtain a RunwayML API key and initialize the client:

final client = RunwayMLClient(apiKey: 'your_api_key');

🎬 Generate Video #

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}');

🔍 Get Task Status #

final response = await client.getTaskStatus('task_id');
print('Task Status: ${response.status}');

❌ Delete Task #

await client.deleteTask('task_id');

📌 Example #

🔹 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:


📖 More Information #

📌 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.


📝 API Reference #

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.

🛠️ Contributing #

Contributions are welcome! Feel free to open issues or submit pull requests for improvements.


📢 Stay Connected #

If you found this package helpful, consider supporting by:

Thanks for checking out runwayml_flutter! 🚀

7
likes
0
points
29
downloads

Publisher

verified publisheralperefesahin.dev

Weekly Downloads

A Flutter package that provides a Dart wrapper for the RunwayML API, enabling integration of AI-generated content into Flutter apps.

Repository (GitHub)
View/report issues

Topics

#runwayml-flutter #runway #runwayml

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on runwayml_flutter