Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.24 KB

README.md

File metadata and controls

79 lines (61 loc) · 2.24 KB

Food Image Analysis powered by Google's Gemini AI model

Sample to analyze food images using Google Generative AI models, the API analyzes the image and returns the ingredients.

Recipe API Rest

Method Endpoint Description
POST /recipes Analyze an Image URL

Body

{
    "url_image": "https://www.elsoldemexico.com.mx/incoming/ayh193-img_8339.jpg/ALTERNATES/LANDSCAPE_768/IMG_8339.jpg"
} 

Method Endpoint Description
GET /recipes Analyze an image from local assets directory

Run Local Environment

  1. Create a new file .env
  2. Create a API key in new project Google AI Studio
  3. Add a new variable API_KEY=XXXXX to the file .env
  4. Install the gcloud CLI
  5. go run cmd/*.go
  6. That's it!

Google Generative AI

Do you want to contribute?

Feel free to report or add any useful feature, I will be glad to improve it with your help.

Developed By