Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Introduction

Avis exposes a single generation backend through three drop-in API surfaces: OpenAI, Anthropic, and Google Gemini. Point your existing SDK or integration at the matching Avis base URL — no code changes beyond the base URL and API key.

Every surface accepts any model in the shared Avis model catalog, regardless of which protocol you call it through (e.g. you can call an Anthropic model via the OpenAI-compatible endpoint).

Get started

  1. Create an API key — see Authentication.

  2. Pick a surface below and swap your SDK's base URL.

  3. Send your first request.

Base URL

https://api.avis.net

Each surface lives under its own path prefix:

Surface
SDK base URL

OpenAI-compatible

https://api.avis.net/api/openai/v1

Anthropic-compatible

https://api.avis.net/api/anthropic

Gemini-compatible

https://api.avis.net/api/gemini

Example request

curl https://api.avis.net/api/openai/v1/chat/completions \
  -H "x-api-key: $AVIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4-1-nano",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Libraries

Use the official client library for the surface you're calling:

Surface
Library

OpenAI

openai (Node), openai (Python)

Point the client's baseURL/baseUrl at the matching Avis path and pass your Avis API key — see the per-surface pages for exact client setup:

  • OpenAI compatibility

  • Anthropic compatibility

  • Gemini compatibility

Versioning

Each surface mirrors the path convention of the protocol it's compatible with (openai/v1, anthropic/v1, gemini/v1beta) rather than carrying its own Avis-specific version number. Within a surface, request/response shapes track the corresponding upstream API — see each compatibility page for the fields this proxy actually reads versus forwards untouched.

Last updated

Was this helpful?