API platform

One API. OpenAI and Anthropic compatible.

Point your OpenAI or Anthropic client at AVELIN. Change the base URL and the key. You get nine models, speech, web search and web scraping on one key, with a cost view for every key.

Base URL: https://api.avelin.ai

Change two lines

AVELIN speaks the OpenAI and Anthropic wire formats, so most existing SDKs and tools keep working. Change the base URL and the API key. Then name a tier, such as avelin-pro, in the model field. To switch back, change them back.

from openai import OpenAI client = OpenAI(    base_url="https://api.avelin.ai/v1",  # new base URL    api_key="sk-avelin-YOUR_KEY",         # new API key) resp = client.chat.completions.create(    model="avelin-pro",    messages=[{"role": "user", "content": "..."}],)

Streaming, tool calling and thinking control work on both formats. On the Anthropic format, send "thinking": { "type": "disabled" } to turn thinking off. On the OpenAI format, send "reasoning_effort": "high" to ask for deeper reasoning. Keys in the samples are placeholders.

Two chat formats, one set of models

Use the format your code already speaks. Both reach the same nine models and return equivalent results.

Chat, model, embedding and image endpoints of the AVELIN API, with the model and list price of each.
EndpointWhat it doesModelList price
POST /v1/chat/completionsChat in the OpenAI format, with streaming, tool calling and thinking control.The nine AVELIN modelsPer token
POST /v1/messagesChat in the Anthropic format, with streaming, tool calling and thinking control.The nine AVELIN modelsPer token
GET /v1/modelsLists the models your key can use.n/an/a
POST /v1/embeddingsVector embeddings for search and retrieval.bge-m3$0.02 per 1M tokens
POST /v1/images/generationsImage generation.avelin-imagegen, avelin-imagegen-pro$0.03 or $0.075 per image

Model prices per token are on the price list. The nine models are described on the models page.

Agentic endpoints

Agents listen, speak and read the web. These endpoints use the same key and the same bill as your model calls.

Speech, web search and web scraping endpoints of the AVELIN API, with what each returns, the models and the list price.
EndpointWhat you getModelsList price
POST /v1/audio/transcriptionsSpeech to text. Send audio, get text.whisper-large-v3 for accuracy, whisper-large-v3-turbo for volume, avelin-stt for streaming-friendly work$0.006 per minute
POST /v1/audio/speechText to speech. Turn text into audio. OpenAI voice names and three output formats.tts-1 for low latency, tts-1-hd for the highest quality$0.12 or $0.24 per 1K characters
POST /v2/searchWeb search. Ranked results, with the result pages scraped in the same call if you ask.n/a$0.005 per request
POST /v2/scrapeWeb scraping. One URL in, clean text out, ready for a model.n/a$0.001 per request
POST /v2/map, /v2/crawl, /v2/extractWhole sites. Map a site's links, crawl it, or extract structured data. Crawl and extract run as jobs and are charged once, at the start.n/a$0.001, $0.010 and $0.005 per request

List prices in US dollars, as of 3 Oct 2026. The web endpoints follow the Firecrawl v2 format and work with its SDK.

See what every key costs

Every request is counted against the key that sent it. Give each team, app or environment its own key, and the console shows usage and spend for each one, by model, as it happens.

  1. Usage by key and model.

    Live in the console. Each record shows the key, the model, token counts, speed and status.

  2. A budget on every key.

    Set a cap for each team, app or environment. Budget alerts warn you as a key fills.

  3. Limits that act first.

    A key's budget and rate limits are applied before a request is answered. A key at its limit gets a 429 error.

Cost per task is counted as on the Method page: calls per task times the price of each call.

User management and scoped keys

Your team signs in to the web console at platform.avelin.ai. Create a separate key for each team, app or environment. Each key has its own budget and rate limits, and each can be rotated on its own.

Treat keys as secrets. Keep them out of client-side code and out of source control.

How a request flows

  1. Your app sends a request.

    It is the same call you make today, sent to api.avelin.ai with your key.

  2. The key is checked.

    The key's budget and rate limits are applied before a request is answered.

  3. A model is chosen.

    You name a tier, or the Decision Layer picks one for the request. Hard tasks go to a more capable model and easy tasks to a cheaper one. Decision Layer

  4. The model answers.

    The answer comes back in the format you called, OpenAI or Anthropic, and streams if you ask. If a model hits a temporary error, AVELIN retries and can fail over to a backup. The price does not change.

  5. The request is recorded.

    The usage record holds the key, the model, token counts, speed and status. Billing follows the list price of the tier.

Step 3 is yours when you name a tier, and the Decision Layer's when you use it.

Questions about the API

Is the AVELIN API OpenAI compatible?

Yes. Send chat requests to /v1/chat/completions with the OpenAI SDK or any tool that speaks the OpenAI format. Streaming and tool calling work, and embeddings, speech and image endpoints use the usual OpenAI paths.

Is the AVELIN API Anthropic compatible?

Yes. Send requests to /v1/messages with the Anthropic SDK. Streaming and tool calling work, and you control thinking on each request, for example by turning it off.

How do I switch from my current provider?

Change two things: the base URL and the API key. Then put an AVELIN tier, such as avelin-pro, in the model field. To switch back, change them back.

Quickstart

Which agentic endpoints are included?

Speech to text, text to speech, web search and web scraping, on the same key and the same bill as your model calls. Web scraping also covers map, crawl and extract, and the web endpoints follow the Firecrawl v2 format.

Web endpoints reference

How do I cap spend?

Create a key for each team, app or environment, and set a budget and rate limits on it. The console shows usage and spend by key and by model, and a key that reaches its limit gets a 429 error.

What does the API cost?

Model calls are billed per token at public list prices, with no subscription and no minimum. Speech is priced per minute or per 1K characters, images per image, and web endpoints per request. The price reference lists every endpoint.

Price reference · Pricing

Do you keep my prompts?

AVELIN Cloud has zero retention by default, so we do not store your prompts or answers. We keep only the usage records needed to bill you and keep the service secure. Your prompts are not used to improve AVELIN unless you opt in. The data policy has the detail.

Data policy · Privacy

Can I use the Decision Layer with this API?

Yes. The Decision Layer picks the model for every request, so you pay for top intelligence only when a task needs it. It works with AVELIN models and with your own providers, and you start with a proof of concept (POC).

Decision Layer

Make your first request.

Or start a POC and see the cost per task on your own workload.