A simple command-line interface for interacting with Google's AI models.
- Java 11 or higher
- Maven 3.6 or higher
- Google Cloud account with AI Platform API enabled
- Google Cloud API key with appropriate permissions
- Clone this repository
- Build the application using Maven:
mvn clean package
java -jar target/google-ai-app-1.0-SNAPSHOT-jar-with-dependencies.jar \
--api-key YOUR_API_KEY \
--project YOUR_PROJECT_ID \
--model text-bison@001 \
--location us-central1 \
"Your prompt here"java -jar target/google-ai-app-1.0-SNAPSHOT-jar-with-dependencies.jar \
--api-key YOUR_API_KEY \
--project your-project-123 \
"Write a short poem about artificial intelligence"Never commit your API key to version control. Consider using environment variables or a secure configuration file in production.
This project is licensed under the MIT License.