Documentation · V1.0

Aevon API Docs.

Aevon is an OpenAI-compatible AI gateway giving you access to 30+ frontier models — Claude, GPT-4o, DeepSeek, Gemini, and more — through a single API key and base URL. Drop it into any existing client in under 60 seconds.

Quickstart

Get up and running in 4 steps. No SDK needed — works with any OpenAI-compatible client.

1. Get your API key

Sign up at aevon.sh/auth. Your API key is generated instantly — you'll receive $100 in free credits.

2. Set your base URL

Shell
# OpenAI-compatible export OPENAI_BASE_URL="https://aevon.sh/v1" export OPENAI_API_KEY="your_key_here" # For Claude Code export ANTHROPIC_BASE_URL="https://aevon.sh" export ANTHROPIC_API_KEY="your_key_here"

3. Make your first request

Python
Node.js
cURL
import openai client = openai.OpenAI( base_url="https://aevon.sh/v1", api_key="your_key_here" ) response = client.chat.completions.create( model="claude-sonnet-4-5", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)

Authentication

All requests require a Bearer token in the Authorization header.

HTTP Header
Authorization: Bearer your_key_here
Keep your API key secret. Never expose it in frontend code, public repos, or client-side JavaScript. Regenerate immediately if compromised.

Chat Completions

The primary endpoint. Fully compatible with the OpenAI Chat Completions API.

Endpoint
POSThttps://aevon.sh/v1/chat/completions

Request Parameters

ParameterTypeRequiredDescription
modelstringRequiredModel ID. See full list below.
messagesarrayRequiredArray of message objects with role and content.
max_tokensintegerOptionalMaximum tokens to generate.
temperaturefloatOptionalSampling temperature 0–2. Default: 1.
streambooleanOptionalEnable streaming via SSE. Default: false.
systemstringOptionalSystem prompt (for supported models).

Available Models

Pass any of these model IDs in the model parameter. Switch models by changing a single string.

Loading models...

Cursor Integration

Use Aevon as a drop-in replacement in Cursor. Go to Settings → Models → OpenAI API Key and set:

Cursor Settings
API Key: your_key_here Base URL: https://aevon.sh/v1
All Cursor models work. GPT-4o, Claude, and DeepSeek are all accessible once configured.

Claude Code Integration

Run Claude Code through Aevon by overriding the Anthropic base URL:

Shell
export ANTHROPIC_BASE_URL="https://aevon.sh" export ANTHROPIC_API_KEY="your_key_here" claude # run claude code normally

Python SDK

Python
pip install openai import openai client = openai.OpenAI( base_url="https://aevon.sh/v1", api_key="your_key_here" ) stream = client.chat.completions.create( model="claude-sonnet-4-5", messages=[{"role": "user", "content": "Write a haiku"}], stream=True ) for chunk in stream: print(chunk.choices[0].delta.content, end="")

Node.js SDK

JavaScript
npm install openai import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://aevon.sh/v1', apiKey: 'your_key_here', }); const res = await client.chat.completions.create({ model: 'deepseek-r1', messages: [{ role: 'user', content: 'Hello' }], }); console.log(res.choices[0].message.content);

Error Codes

CodeMeaningFix
401UnauthorizedInvalid or missing API key.
402Insufficient CreditsTop up at aevon.sh/billing.
429Rate LimitedSlow down or upgrade plan.
500Gateway ErrorRetry or switch models.

Credits & Billing

Aevon is usage-based — charged per token, not per month. Free tier models consume zero credits.

$100 free on signup. No credit card needed. Covers ~1–2M tokens depending on model.

Rate Limits

TierRequests/minTokens/min
Free20 RPM100K TPM
Credits60 RPM500K TPM
Pro300 RPM2M TPM