edenai-apis  by edenai

SDK for unified access to multiple AI provider APIs

created 2 years ago
454 stars

Top 67.5% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This Python package provides a unified API to access and integrate various AI services from multiple providers, simplifying the process for developers by abstracting away individual API complexities. It targets developers looking to leverage a wide range of AI capabilities, such as text analysis, speech processing, and image recognition, without managing multiple vendor accounts and integrations.

How It Works

Eden AI APIs act as a middleware layer, connecting to numerous third-party AI service providers. It standardizes inputs and outputs across these providers, allowing users to switch between different AI models or vendors with minimal code changes. This approach simplifies development and enables easy comparison and selection of the best-performing AI services for specific tasks.

Quick Start & Requirements

  • Installation: pip install git+https://github.com/edenai/edenai-apis
  • Prerequisites: API keys/secrets for desired AI providers must be configured in JSON files (e.g., edenai_apis.api_keys.<provider_name>_settings_templates.json renamed to <provider_name>_settings.json).
  • Example Usage: See the README for Python code examples demonstrating synchronous and asynchronous API calls.

Highlighted Details

  • Unified API for numerous AI providers (e.g., Google, Microsoft, OpenAI, DeepL, AssemblyAI).
  • Supports both synchronous and asynchronous operations for various AI tasks.
  • Provides standardized responses alongside original provider responses for easier parsing.
  • Facilitates easy switching between AI providers for tasks like keyword extraction.

Maintenance & Community

  • Community contributions are encouraged via GitHub issues and a Discord server for discussions and support.
  • Information on adding new providers or features is available in the README.

Licensing & Compatibility

  • License: Apache License 2.0.
  • Compatibility: Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

The project relies on external AI providers, meaning availability and performance are subject to those providers. Users must manage their own API keys and associated costs for each service.

Health Check
Last commit

2 days ago

Responsiveness

1 week

Pull Requests (30d)
6
Issues (30d)
0
Star History
7 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Joe Walnes Joe Walnes(Head of Experimental Projects at Stripe), and
5 more.

LibreChat by danny-avila

0.8%
29k
Enhanced ChatGPT clone for self-hosting
created 2 years ago
updated 1 day ago
Feedback? Help us improve.