Git Product home page Git Product logo

generative-recipe-ai-go's Introduction

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

generative-recipe-ai-go's People

Contributors

erikjhordan-rey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.