Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

GitHub - mquan/api2ai

Aug 06, 2023 - github.com
The article provides information about **api2ai**, a tool that allows users to interface with any API using plain English or any natural language. The tool automatically parses OpenAPI spec and auth schemes, selects the endpoint, parses arguments provided in user prompts into query and body parameters, invokes the API call, and returns the response. It also comes with a local API. The installation process involves using npm or yarn to install the @api2ai/core package.

The article also provides a quick start guide using the OpenAI API as an example. Users can create an API agent with their API key, model, and APIs, and then use the agent to execute commands. The article also explains how to use the agent via the API, including running the server, making an API call, and configuring the server/pages/api/api2ai.config.ts file to add your own APIs. The tool supports OpenAPI Spec version 3.0.0 and above and various auth schemes including Bearer authentication, API keys, and Basic auth. The article concludes with instructions for development and contributing, including running the server, accessing the app, and running tests.

Key takeaways:

  • api2ai is a tool that allows you to create an API assistant from any OpenAPI Spec, interfacing with any API using plain English or any natural language.
  • The tool automatically parses OpenAPI spec and auth schemes, selects endpoint and parses arguments provided in user prompt into query and body params, and invokes the API call and return the response.
  • It can be installed using npm or yarn, and comes with a local API. The tool can be used via the API by running the server in your machine and making an API call.
  • api2ai supports various auth schemes including Bearer authentication, API keys, and Basic auth. It currently supports OpenAPI Spec version 3.0.0 and above.
View Full Article

Comments (0)

Be the first to comment!