Social Media Caption Generator
This GitHub repository contains the source code for a Flutter app that utilizes Google's Gemini Generative AI API to generate creative captions for social media posts based on images and user-provided prompts.
Features:
- Image Selection: Select images from your device's gallery to enhance caption generation accuracy.
- Prompt Input: Provide specific details or keywords to guide the caption style and content.
- Caption Generation: Leverage the Gemini API to automatically generate creative and engaging captions tailored to your social media needs.
- Intuitive Interface: Enjoy a user-friendly interface for easy image selection, prompt editing, and caption generation.
Usage:
-
Obtain Google Generative AI API Key:
- Follow the instructions on Google's AI research website to create a project and obtain an API key.
-
Replace API Key:
- Open
lib/main.dart
and replace the placeholder value (YOUR_API_KEY
) with your actual API key in theGenerativeModel
constructor.
- Open
-
Run the app:
- Connect your device or launch an emulator.
- Run the app using
flutter run
.
Example Workflow:
- Launch the app.
- Tap the gallery icon in the app bar to select an image.
- Enter a descriptive prompt in the text field, specifying the desired caption style
or key points to consider. - Click the "Generate Caption" button.
- The app will display a loading indicator while processing your request.
- Upon successful generation, the app will display a creative caption tailored to your image and prompt.
Contributing:
We welcome contributions to improve this project. Please follow these guidelines:
- Create a pull request with clear explanations of your changes.
- Adhere to the code style and formatting conventions used in the project.
Additional Notes:
- Consider including a screenshot or video demonstrating the app's functionality in the README.
- Provide details on error handling and user feedback mechanisms in the app.
- If you're using a specific version of Google Generative AI, mention it in the README.