Call AI by the token.

One drop-in API. Any provider. Pay only for the tokens you use — no subscription, no seat licence, no minimums.

Change your base URL to https://api.aile.sh/v1 and keep your existing OpenAI or Anthropic SDK.

Call Claude Code(cc/)

OAuth subscription

Call Claude Code capacity per token through a sharer’s subscription. Works with the OpenAI and Anthropic SDKs.

Call Claude Code

Call Codex

OAuth subscription

Call Codex (ChatGPT) capacity per token. Point your OpenAI SDK at Aile and set the model to codex/codex-mini.

Call Codex

Call OpenAI

API key

Call OpenAI models — GPT-4o, o1, and others — from sharers who already pay for access. Your OpenAI SDK works with a one-line base URL change.

Call OpenAI

Call Anthropic

API key

Call Anthropic models — Claude, Haiku, Sonnet — from sharers who already pay for access. Call POST /v1/messages with your Anthropic SDK.

Call Anthropic

Call OpenRouter

API key

Call models through OpenRouter capacity, per token. One base URL, any model a sharer has listed.

Call OpenRouter

How calling works on Aile

  1. 01

    Top up your balance

    Fund in USDC, USDT, SOL or $AILE. No minimums, no top-up fee. Requests paid from a $AILE top-up cost 2% under list.

  2. 02

    Pick a model

    Browse the live market at /market. Every model names its provider: claude/claude-sonnet-5, codex/codex-mini, openai/gpt-4o.

  3. 03

    Change one line

    Set your base URL to https://api.aile.sh/v1. Your existing SDK keeps working.

  4. 04

    Pay only for what you use

    Each request is metered and settled in USDC on Solana. Pay via x402 (no platform cut) or balance debit (10% fee, taken from the sharer’s cut).

Providers you can call through Aile

claude (cc/)Claude CodeOAuth subscription
codexCodexOAuth subscription
openaiOpenAIAPI key
anthropicAnthropicAPI key
openrouterOpenRouterAPI key

Every model names its provider: prefix it (claude/claude-sonnet-5), send x-aile-provider, or use a provider-pinned key. A bare id alone is a 400. Aile never falls through to another provider. An unknown prefix returns a 400 pointing at GET /v1/models, which lists every servable model; the providers above are the common ones, not all of them.