Skip to main content

Overview

AnyAPI is compatible with OpenAI SDKs, allowing you to seamlessly integrate our API into your applications using familiar tools and libraries. Simply configure the SDK to point to https://api.anyapi.ai and use your AnyAPI key for authentication.

Python

Official OpenAI Python library

Node.js / TypeScript

Official OpenAI Node.js library

C# / .NET

Official OpenAI .NET library

Java

Community Java library

Go

Community Go library

Ruby

Community Ruby library

PHP

Community PHP library

Rust

Community Rust library

Python

Install the official OpenAI Python library:

Example Usage

Async Support


Node.js TypeScript

Install the official OpenAI Node.js library:

Example Usage (TypeScript)

Example Usage (JavaScript)


C# .NET

Install the official OpenAI .NET library:

Example Usage


Java

Install a community OpenAI Java library. Here’s an example using the popular openai-java library:

Example Usage


Go

Install a community OpenAI Go library:

Example Usage


Ruby

Install a community OpenAI Ruby library:

Example Usage


PHP

Install a community OpenAI PHP library:

Example Usage


Rust

Install a community OpenAI Rust library:

Example Usage


Additional Languages

Don’t see your preferred language? AnyAPI’s REST API is compatible with any HTTP client. You can also use any OpenAI-compatible library by configuring it to use https://api.anyapi.ai/v1 as the base URL.

REST API Reference

View the complete REST API documentation

Authentication

All requests to AnyAPI require authentication using your API key. Set your API key in the SDK configuration:
Keep your API key secure and never expose it in client-side code or public repositories.

Getting Help