pollinations_ai 0.0.1-dev.1 copy "pollinations_ai: ^0.0.1-dev.1" to clipboard
pollinations_ai: ^0.0.1-dev.1 copied to clipboard

The pollinations.ai package is a Flutter/Dart SDK designed to integrate with the Pollinations platform. This package empowers developers to seamlessly access Pollinations' advanced AI capabilities for [...]

Pollinations.ai Flutter/Dart SDK #

Pollinations.ai

Effortlessly integrate the best generative AI models from Pollinations into your Flutter/Dart applications with this powerful SDK.
copied to clipboard

Features #

  • Image Generation: Create stunning visuals using state-of-the-art AI models.
  • Text Generation: Generate coherent and creative text with advanced language models.
  • Model Exploration: Easily explore and list available AI models for both image and text generation

Installing #

Install the package by running the following command:

flutter pub add pollinations_ai
copied to clipboard

Usage Examples #

Image Generation #

import 'package:pollinations_ai/pollinations_ai.dart';

final ai = ImageAi(model: "flux");
ImageAi image= await ai.call("A beautiful sunset");
print(image.prompt, image.response)
image.save("pollinations-image.png");
copied to clipboard

Text Generation #

import 'package:pollinations_ai/pollinations_ai.dart';

final ai = TextAi(model: "gpt-3.5-turbo");
final TextAi text= await ai.call(display:false, // Simulate typing,
        encode=True  // Use proper encoding
        prompt: "A beautiful sunset");
print(text.response);

copied to clipboard

List all models #

import 'package:pollinations_ai/pollinations_ai.dart';

Future<List<String>> image_generation_ai_models = ImageAi.models();
Future<List<String>> futurelist text_ai_models = TextAi.models();
copied to clipboard

Contributing #

🤝 We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch
git checkout -b feature/amazing-feature
copied to clipboard
  1. Commit your changes
git commit -m 'Add amazing feature' 
copied to clipboard
  1. Push to the branch
git push origin feature/amazing-feature
copied to clipboard
  1. Open a Pull Request

Acknowledgments #

A big thank you to pollinations and all contributors for their efforts in making this possible.

3
likes
0
points
145
downloads

Publisher

unverified uploader

Weekly Downloads

2024.05.30 - 2025.04.24

The pollinations.ai package is a Flutter/Dart SDK designed to integrate with the Pollinations platform. This package empowers developers to seamlessly access Pollinations' advanced AI capabilities for generating customized media, including images, audio, and text. It provides a streamlined interface for creative professionals, developers, and enthusiasts to harness the power of generative AI in their projects.

Homepage

License

unknown (license)

Dependencies

dartdoc, enum_to_string, flutter, http, path_provider

More

Packages that depend on pollinations_ai