Giter VIP home page Giter VIP logo

edenai-apis's Introduction

License

Eden AI Logo

EdenAI APIs

Eden AI aims to simplify the use and deployment of AI technologies by providing a unique API (application programming interface) that connects to the best possible AI engines. These engines are either proprietary or Open source AI engines, and can be used for different purposes, e.g, face detection, OCR (receipt, invoice, table...), keyword extraction, sentiment analysis, face detection, and much more. These technologies are provided by the best suppliers in the market. We can cite briefly some of them: Amazon, Google, Microsoft, Dataleon, and Mindee and many others. Eden AI take care of providing to it’s clients the best AI engine suited to their projects, and this, with the goal of keeping AI light and easy to any developer.

EdenAI Gif

Package Installation

You can install the package with pip :

    pip install https://github.com/edenai/edenai-apis 

Quick Start

Eden AI APIs is the open source package including necessary methods for using AI technologies from different AI providers (ex: google, amazon, clarifai .etc).

You can list all availalbe (provider, feature, subfeature) using list_features method. The function will return a list of tuples. For example :

  [
      ("google", "image", "object_detection"), 
      ("api4ai", "image", "anonymization"), 
      ("microsoft", "text", "keyword_extraction"), 
      ...
  ]

You can use arguments to filter your request.

  def list_features( provider_name: str = None, feature: str = None, subfeature: str = None, as_dict: bool = False) -> Union[List, Dict]:

If you set as_dict to true you get a different formatting :

    {
      [provider]:{
          [feature]: {
              [subfeature]: True
          }
      }
    }

You can get a list of all providers given a feature and a subfeature using list_providers. If neither the feature or subfeature are passed within the function arguments, the function returns the list of all available providers.

  def list_providers(feature: str = None, subfeature: str = None) -> List[str]

Once you know what provider you want to run for what feature/subfeature you can execute the compute_output function

  def compute_output(provider_name: str, feature: str, subfeature: str, args: Dict, phase: str = "", fake: bool = False) -> Dict

You get either the result back or a job_id if the subfeature is asyncronous (ex: speech_to_text_asynx).

If you're running an asyncronous feature (ex: speech to text, object extraction from videos ...etc ) then, when the computed subfeature using compute_output returns a job_id. Passing this job_id along a given provider, feature, subfeature and phase as arguments to get_async_job_result function returns the result of the asyncronous call.

  def get_async_job_result(provider_name: str, feature: str, subfeature: str, async_job_id: str,
                                          phase: str = "", fake: bool = False, project_name: str = None) -> Dict:

Contribute

We would love to have your contribution. Please follow our gidelines for adding a new AI provider's API or a new AI feature. You can check the package structure for more details on how it is organized. We use GitHub issues for tracking requests and bugs. For broader discussions you can join our discord.

Don’t want to create accounts for all providers and host the project by yourself?

You can create an account on Eden AI and have access to all the AI technologies and providers directly through our API. Eden AI Logo

Join the community!

Join our friendly community to improve your skills, focus on the integration of AI engines, get help to use Eden AI API and much more !

Linkedin Medium

License :

Apache License 2.0

edenai-apis's People

Contributors

jeremylambert avatar coscialp avatar samyme avatar dninoadnane 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.