This repository contains a PHP application that integrates with the Gemini API for generating content based on user prompts.
-
Clone the repository:
git clone https://github.com/vickypandey14/Gemini-PHP.git
-
Navigate to the project directory:
cd Gemini-PHP
-
Install dependencies using Composer:
composer install
- Configure your Gemini API key in
response.php
. - Open
index.php
in a web browser. - Enter a prompt in the input field.
- Click on the "Generate Response" button.
- View the generated response.
A new folder named api
has been added, containing the get-response.php
file. This file is responsible for handling requests to the Gemini API, generating responses based on user input. To use this API:
- Ensure the Gemini API key is set in
get-response.php
. - Send a POST request with a JSON body containing the
text
field to receive a generated response.
Contributions are welcome! Feel free to fork the repository and submit pull requests with improvements, bug fixes, or new features.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
For any questions or support, please open an issue on GitHub: Gemini-PHP Issues