Call OpenAI models by the token.

A drop-in OpenAI-compatible API. Change your base URL to https://api.aile.sh/v1 and keep your existing SDK. Call GPT-4o, o1, and other OpenAI models per token, with no subscription and no minimums.

How it works

  1. 01

    Top up your balance

    Fund in USDC, USDT, SOL or $AILE. No minimums, no top-up fee.

  2. 02

    Pick an OpenAI model

    Browse the live market at /market, or request openai/gpt-4o, openai/o1, or any other OpenAI model a sharer has listed. Aile routes to whichever sharer has capacity.

  3. 03

    Use your existing SDK

    Point your OpenAI SDK at https://api.aile.sh/v1, set your API key, and start making calls.

PYTHON
import openai

client = openai.OpenAI(
    base_url="https://api.aile.sh/v1",
    api_key="YOUR_AILE_KEY",
)

reply = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Write a quick sort in Python"}],
)
print(reply.choices[0].message.content)

What you get

  • OpenAI SDK full SDK compat — change base URL only
  • Per-token no seat, no minimum, no commitment
  • USDC on Solana settled per request, withdrawable anytime
  • $AILE discount fund in $AILE for 2% off list