Get credits

DEVELOPERS

Change two lines.
Call every model.

The gateway speaks the OpenAI format. Existing clients work after changing the base URL and the key.

Base URLhttps://api.arlu.io/v1

In build. The gateway opens at launch.

A first request

REQUEST
curl https://api.arlu.io/v1/chat/completions \
  -H "Authorization: Bearer $ARLU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "[provider/model]",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.arlu.io/v1",
    api_key=os.environ["ARLU_API_KEY"],
)

reply = client.chat.completions.create(
    model="[provider/model]",
    messages=[{"role": "user", "content": "Hello"}],
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.arlu.io/v1",
  apiKey: process.env.ARLU_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "[provider/model]",
  messages: [{ role: "user", content: "Hello" }],
});
Works with any OpenAI client

Endpoints

How it behaves

FormatOpenAI chat completions, with streaming
AuthenticationA key created by signing with your wallet
BillingCredits burned per request, after the reply
FailuresA request that returns nothing burns nothing
PricingOne credit is one dollar of model usage

Models and prices

Every model the gateway serves, with its price in credits for each million tokens. One credit is one dollar.

MODELS
The list loads from the gateway once it is live.

Use it in your tools

Reference