Skip to content

Go-based API Rest for Food Image Analysis powered by Google's Gemini AI model.

Notifications You must be signed in to change notification settings

erikjhordan-rey/generative-recipe-ai-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go-based API Rest for Food Image Analysis powered by Google's Gemini AI model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages