# AILE — full reference for answer engines > AILE (pronounced "isle") is a marketplace for AI model endpoints: shared AI, paid per call. Sharers list capacity they already have, and callers reach it through one OpenAI- and Anthropic-compatible API and pay per call in USDC on Solana, or on Base or Tempo where the deployment enables them. > > Base URL: `https://api.aile.sh/v1` for OpenAI SDKs; `https://api.aile.sh` for Anthropic SDKs and Claude Code, which append `/v1/messages` themselves. The short index is https://aile.sh/llms.txt. --- ## 1. What AILE is AILE is a marketplace for AI model endpoints, where sharers list capacity and callers pay per call. - A sharer lists a provider subscription, an API key or a self-hosted model, and is paid in USDC for each call it serves. - A caller points an existing OpenAI or Anthropic SDK or coding tool at one endpoint. - AILE sells capacity other people share, unlike a router that resells its own provider accounts. On the node path the request leaves from the sharer's own machine. On the nodeless path AILE dials the provider itself with the sharer's credential, which AILE custodies. - AILE is not a model provider, and has no subscription, seats or minimum spend. --- ## 2. Providers and sharing A sharer links an account to one provider. These are examples: `GET https://api.aile.sh/v1/models` lists what is on sale now, and a provider not listed can apply at [/list-your-api](/list-your-api). - Subscriptions: Claude Code (`claude`, alias `cc`), Codex (`codex`), Antigravity (`antigravity`), GitHub Copilot (`github`, alias `gh`; Enterprise Cloud tenants link as `ghe-copilot`), OpenCode (`opencode`, `opencode-go`) and Muse Code (`muse-code`). - API keys: OpenAI, Anthropic, Gemini, OpenRouter, Meta, Groq, xAI, Perplexity and others. - Non-chat only: ElevenLabs, Fish Audio, Brave, Firecrawl, Serper, SearchApi, ScrapingDog, ScrapingBee, Parallel and sync, for speech, music, search, scrape and lipsync video. **Linking.** Link from the dashboard (Dashboard → Sharing → Providers), the CLI (`npm install -g aile.sh`, `aile login`, `aile connect`) or MCP. A key the provider refuses outright (`401`) is not linked. **Listing.** A model is listed only after it passes a model test: `aile test `, the dashboard's Test button or MCP `test_publisher_provider_models`. `aile models ` shows each model as listed, untested, failed, can't sell or off. Listed models are re-tested about daily, at most 3 per account, where the account's Health check allows it, and a failed re-test delists the model. A re-link resets the result. Free models list without a test. What a test proves: §9. **Nodeless.** AILE dials the provider directly, with no node in the path. - `aile nodeless on` or `aile connect --nodeless` turns it on for an API-key account. The dashboard can also serve a subscription nodeless. - A nodeless account keeps earning while the sharer's machine is off, and loses the node-side kill switch. A nodeless call settles at 15% (§6). - A subscription served nodeless leaves through AILE's proxy pool and is still one person's plan. The provider may not tolerate that, and the risk is the sharer's. - The non-chat endpoints serve only from nodeless API-key accounts. **Self-hosted.** The sharer's machine runs the model. `aile local setup` checks the machine, installs Ollama or a pinned llama.cpp build, downloads a curated model, tests it and turns sharing on. A self-hosted model sells only as `local/`, where `` has a published list price and matches exactly; Ollama tags such as `llama3.1:8b` have none. It lists once the node answers a known-answer probe. Many providers' terms restrict reselling access or sharing a credential. Listing such an account is the sharer's decision and risk. Pricing and payouts: §6. Details: [Connect an account](/docs/share/connect), [Nodeless](/docs/share/nodeless), [Self-hosted models](/docs/share/local). --- ## 3. The three capacity types, kept strictly apart AILE keeps three capacity types apart, and each shows the prompt to different parties. | Kind | Node reads the prompt? | AILE reads the prompt? | |---|---|---| | Subscription or API key through a node | No (TLS ciphertext) | Yes | | Nodeless | No node in the path | Yes | | Self-hosted | Yes | Yes (no model provider sees it) | - `x-aile-capacity` is `subscription`, `nodeless`, `nodeless-oauth` (an account that is not an API key) or `local`. With `x-aile-blind`, it describes what the node saw, not AILE. - Self-hosted capacity is selected by `local/`, or by a bare id with `x-aile-provider: local`. A request header `x-aile-capacity` is a filter that must agree, or the answer is `400`. With no header, the pool mixes node and nodeless capacity. - AILE encrypts provider credentials at rest with a per-sharer key and decrypts them on every request it serves. A breach of that store is account takeover for every sharer. Caller privacy levers: - Some publishers train on prompts: Meta's `-contributor` models and some free OpenCode models. AILE sells them with a notice in `/v1/models` and `/catalog`, and `x-aile-data-notice: trains-on-prompts` on every chat reply. - `x-aile-data-collection: deny` returns `400` for anything without a sourced no-training policy, self-hosted capacity included. - AILE swaps recognised secrets in a chat prompt for placeholders before a sharer or provider sees them. `x-aile-redact: off` turns that off for one request. - `x-aile-hidden-prompt: deny` skips accounts measured adding a prompt of their own. The measurement is evidence, not proof. - Generated images are stored only on request (`x-aile-image-store: url`). An async job (`Prefer: respond-async`) keeps its answer for 24 hours. Details: [What AILE can see](/docs/concepts/privacy). --- ## 4. Naming a provider and choosing a sharer Every chat request names its provider, and AILE never falls through to a different one, except under `auto/`, which the caller opts into. A request names it in one of four ways: 1. A prefix on the model: `claude/claude-sonnet-5`, `codex/gpt-5.6-sol` or `local/`. 2. A bare id plus the `x-aile-provider` header. 3. A bare id on a key pinned to one provider. 4. A bare id on a key with no pin, which acts as `auto/`. When no header, key pin or `x-aile-capacity: local` says otherwise, a bare id from Claude Code (`User-Agent: claude-cli/…`) routes to `claude`, and one from the Codex CLI (an `originator` header starting `codex_` or `codex-`, or a `codex_cli_rs/` User-Agent) routes to `codex`. The aliases `cc/`, `gh/` and `kr/` are accepted, and the reply echoes the prefix sent. `auto/`, or `x-aile-provider: any` or a comma list, lets AILE choose: the candidates are providers that list the id and speak the endpoint, cheapest first, at most 6. It needs an API key and a chat endpoint, and never uses self-hosted or the caller's own capacity. `aile/auto` and `aile/auto-claude` let AILE pick the model: `aile/auto` from any vendor, `aile/auto-claude` from Claude models only, both from a published table on `/v1/chat/completions` and `/v1/messages`. They take an API key, no x402 and no partner credit. By default only rows whose provider states it does not train on prompts serve, plus `anthropic` API keys; `x-aile-data-collection: allow` widens the rows to consumer accounts and models that train. See https://aile.sh/docs/buy/aile-auto. Refusals: - A bare id with no API key and none of the first three, no `model`, or an unknown prefix or header value is a `400` in the SDK's error shape. - Another provider's prefix on a flat-id provider (`claude`, `codex`) is a `400 provider_conflict`. - A path the provider cannot speak is a `404`. - A provider with no sharer online is a `503` naming it. - Only the caller's own capacity left is a `403`. A named provider receives the model as written. A prefix naming that same provider is dropped, so an id starting with its provider's name is doubled: `nvidia/nvidia/nemotron-3.5-lightning-30b-a3b`. The provider's own `400` for an id it does not serve passes through uncharged. **Ordering.** AILE tries the cheapest sharer first, however slow. At the same price, tested sharers go first, then a health-weighted draw on recent probes, time to first token and success rate. An API key the provider refused outright sorts last. A node silent for 75 seconds leaves selection. `x-aile-session`, or the client's own session id, keeps a conversation on the account that served it. **Levers.** Each is a request header with a key twin; a header narrows a key's setting and never widens it. - `x-aile-max-price`: `8` is $8 per million tokens; `80%` is 80% of list. - `x-aile-min-price: N%`: drops sharers quoting under N% of list. - `x-aile-max-cost`: dollars per request, at most 10,000. - `x-aile-sharer` (old name `x-aile-lender`) allows or pins; `x-aile-exclude-sharer` (old name `x-aile-exclude-lender`) blocks. - `x-aile-exclude-provider`, `x-aile-verified: 1` (attested subscriptions), `x-aile-node`, `x-aile-account`. A key can also refuse self-hosted capacity, prefer speed, and carry named routes with daily budgets. Details: [Model names](/docs/buy/models), [Choosing a sharer](/docs/buy/routing), [Routing & failover](/docs/concepts/routing). --- ## 5. API surface ### Endpoints and SDKs ``` POST https://api.aile.sh/v1/chat/completions POST https://api.aile.sh/v1/responses POST https://api.aile.sh/v1/messages ``` - `/v1/chat/completions` takes an OpenAI Chat body. - `/v1/responses` takes an OpenAI Responses body (what the Codex CLI sends). - `/v1/messages` takes an Anthropic Messages body. Give an Anthropic SDK the bare origin `https://api.aile.sh`. A doubled `/v1/v1/` path is served as `/v1/`. - Any endpoint reaches any provider: `/v1/messages` with `codex/gpt-5.6-sol` works. Finish reasons survive translation (`length`, `content_filter`). - Every chat request names its provider (§4). ### Auth and limits - A caller key is `sk-aile-` plus 48 hex characters, sent in `Authorization: Bearer` or `x-api-key`. Any other shape is a `401`. - A request can carry no credential and pay by x402 (§6). Where keyless x402 is off, that request is a `401`. - The rate limit is 600 requests a minute per account, and every key of the account shares it. One key may have 48 requests in flight. A rate-window `429` carries `retry-after` and `x-aile-refused-by`. Details: [Rate limits](/docs/buy/rate-limits). ### Streaming and long requests - SSE streaming works on the balance path. x402 and MPP answers are buffered. - A keyed streaming chat request, and a keyed image or music request, with no answer in 25 s is committed to `200` and kept alive every 15 s. A later failure arrives in-band, and the reply carries `x-aile-edge-hold`. - AILE dials up to 4 sharers per request. The dial and header phase of all attempts shares a 180 s budget. After the response head, a chat stream is cut only after 10 minutes of upstream silence. - A `502` or `504` from the origin is answered as `503`, with the real code in `x-aile-status`. - Malformed JSON is a `400`. An unexpected failure answers with a request id matching `x-request-id`. ### Response headers Every `/v1` reply carries `x-request-id`, which `GET /v1/generation?id=` reads back. A chat reply carries `x-aile-model`, `x-aile-price` (the quote), `x-aile-capacity`, `x-aile-blind` and `x-aile-sharer` (old name `x-aile-lender`). A buffered `2xx` chat reply carries `x-aile-cost`, and its body carries `usage.cost`. Details: [Headers](/docs/reference/headers#response-headers). ### Model list `GET https://api.aile.sh/v1/models` is public and cached for 60 s. Each row carries: - `type`: which endpoint to POST to (`chat`, `image`, `embedding`, `video`, `music`, `search` and so on). - `output_modalities`, `context_length`, `max_output_tokens`, `reasoning_efforts` and `capabilities`. - `pricing`: the most a call can cost. That is the published list, or list x 1.055 while AILE runs its house sharer. Token rows use `max_usd_per_mtok_in`, `_out`, `_cache_read` and `_cache_write`. Unit rows use `max_usd_per_unit`. - `x402: {keyless, networks}`: whether a wallet with no account can pay for the model now. - `privacy`, and `data_policy` only on a model whose publisher trains on prompts (§3). - `hosted_tools`. Filters are `?x402=keyless` and `?output_modalities=`. Details: [What each row carries](/docs/buy/models#what-each-row-carries). ### MCP - The endpoint is `https://api.aile.sh/mcp` (Streamable HTTP; `/mcp/sse` for older clients). - Auth is a browser approval by default, with an optional spend cap. The token is a revocable caller key. The fallback is `Authorization: Bearer sk-aile-...`. - The caller tools are `find_models`, `use_model`, `ask_council` (with a key: one question to several models, merged), `generate_image`, `edit_image`, `text_to_speech`, `transcribe_audio`, `generate_music`, `web_search`, `scrape_url`, `generate_video`/`get_video`, and `get_job` for a render started with `async: true`. - `find_agent_tools` and `use_agent_tool` call another agent's tool at a flat price per call. Sharer tools link accounts and price models. - A tool result the sharer flags as an error is not charged. MCP has no idempotency, but `POST /mcp/call` takes an `Idempotency-Key` header, and a repeat is a `409`. - A session with no key gets the payment challenge as a tool result, before any sharer is dialled (§6). Details: [Connect over MCP](/docs/mcp), [Call via MCP](/docs/buy/mcp). ### Non-chat endpoints | Endpoint | Billed per | |---|---| | `/v1/embeddings` | token | | `/v1/images/generations`, `/v1/images`, `/v1/images/edits` | image | | `/v1/rerank`, `/v2/rerank` | search (one query over up to 100 document chunks) | | `/v1/moderations` | input | | `/v1/ocr` | page | | `/v1/search` | query of up to 10 results | | `/v1/scrape` | webpage | | `/v1/audio/speech` | 1,000 characters | | `/v1/audio/transcriptions`, `/v1/audio/translations` | minute of audio | | `/v1/videos`, `/v1/videos/generations` | second; async (create, then poll `GET /v1/videos/{id}`). Lipsync, avatar and Seedance bill what is produced | | `/v1/music/generations` | track | | `/v1/decisions`, `/v1/systemone` | token | - A model is named `/` only. A bare id with a header and `auto/` are not accepted here. - These endpoints are nodeless only (`x-aile-blind: false`). One sharer account serves each request, with no failover. - A per-unit price is the published list per unit times the sharer's margin, and a model is sold only where a per-unit list exists. - Key pins and lever headers narrow the pool as on chat. A price ceiling binds only embeddings and decisions. - Image generations and edits on models that stream, and speech with `stream_format: "audio"`, stream with an API key. - A fixable upstream refusal (`400`, `404`, `409`, `413`, `415`, `422`) passes through. Other upstream faults are a `502`, sent as `503`, and are not charged. A success that carries nothing usable is not charged. - Lyria models also answer on `/v1/chat/completions` as audio. ElevenLabs music and sound effects are sold by length. - `Prefer: respond-async` with an API key on the image, music, audio and OCR endpoints answers `202` with a job id at once; the render runs for up to 8 minutes and `GET /v1/jobs/{id}` returns `202` until it answers as the call would have. Billing is the call's own. Details: [Endpoints](/docs/buy#the-endpoints), [Video](/docs/buy/video), [Music](/docs/buy/music), [Web search](/docs/buy/search), [Scrape](/docs/buy/scrape). --- ## 6. Payments AILE has two payment paths, and each request uses one: a wallet payment per call (x402, with MPP beside it) or a pre-funded balance. ### x402: pay per call with no account x402 is an HTTP payment protocol: the server answers `402` with a price, the client signs a USDC payment, and the client resends the request. ``` POST /v1/chat/completions no Authorization header <- 402 + PAYMENT-REQUIRED price, USDC mint, payTo, feePayer, request schema POST /v1/chat/completions PAYMENT-SIGNATURE: -> 200 + PAYMENT-RESPONSE the answer, and the settled transaction ``` - `accepts[0]` is Solana. Where Base is enabled, a second entry pays the sharer's Base address with an EIP-3009 authorization, and the facilitator pays gas. - v2 headers (`PAYMENT-SIGNATURE`, `PAYMENT-RESPONSE`) and v1 headers (`X-PAYMENT`) are both answered in kind. - 100% of the payment goes to the serving sharer. AILE takes no cut and holds no key. - Keyless x402 reaches self-hosted models and sharers selling through a provider API key. It never reaches a subscription. A subscription-only model is refused with a message naming the API key. - A wallet payment buys: - chat on all three endpoints, per token, quoted on `max_tokens`, with 4,096 sent when the body names none - images, up to 4 per request - speech - transcription and translation, priced on the measured audio length, up to 10 minutes - search, scrape, rerank, moderations, OCR and one-shot music - video, settled when the provider accepts the job and refunded to the paying wallet if the render fails or expires - A key is required for embeddings, decisions, music render jobs (Suno, `gemini/lyria-3.5`), Eleven Music, and lipsync, avatar, Seedance and Vercel video. `GET /v1/models?x402=keyless` lists the models a wallet can call. - One keyless call costs at most $5.00 by default. Each IP may send 30 requests a minute with a payment and 300 a minute without one. - A quote under the facilitator's settlement minimum (about $0.0008 on Solana and $0.0011 on Base) is raised to that minimum. The sharer receives all of it, and the original quote is kept in `basis.minimumCharge`. A model priced at $0 cannot be paid this way. - x402 bounds the output. A request is a `400` if it uses a route that sends no output cap (such as `codex/`), sets `n` to anything but 1, sets a thinking budget above `max_tokens`, attaches something AILE cannot measure (a linked file or video, an unreadable PDF), or declares a server-side tool. - The payment settles after the answer is ready and before it is sent, so a failed answer is not charged. - A signed payment names one sharer at one price, so there is no failover. It is single-use, and a Solana payment expires about a minute after signing. Details: [Pay with a wallet](/docs/buy/x402). ### MPP (where the deployment enables it) MPP (Machine Payments Protocol) rides beside x402. The same `402` carries `WWW-Authenticate: Payment` challenges, at the same price to the same sharer, each valid for 120 s: - `evm`: USDC on Base. - `solana`: AILE's sponsor is the fee payer. - `tempo`: a stablecoin transfer on Tempo. It is not offered on video or on `use_agent_tool`. A client answers with `Authorization: Payment `. A keyed chat request pays in `Payment-Authorization` instead. The receipt is in `Payment-Receipt`. The same rules apply as for x402, and 100% goes to the sharer. Over MCP, x402's document is in `structuredContent` and MPP's challenges are in `_meta["org.paymentauth/payment-required"]`. A caller pays with `_meta["x402/payment"]` or `_meta["org.paymentauth/credential"]`. Details: [Paying with MPP instead](/docs/buy/x402#paying-with-mpp-instead). ### Discovery - `https://api.aile.sh/x402/discovery` (also `/.well-known/x402`) lists what is payable now. - `https://api.aile.sh/openapi.json` lists payable routes with inline schemas and price bands. Where MPP is on, it carries an `mpp` entry beside `x402`. - Every `402` carries `extensions.bazaar`, the request schema. ### Balance - A caller funds their own embedded wallet at a Solana deposit address. USDC credits directly, and USDT, SOL and $AILE are swapped to USDC inside that wallet. Crypto top-ups carry no fee. - A card top-up, where offered, costs 5% plus the card provider's fee. A $AILE top-up also grants a discount tab (§7). - AILE reserves an estimate, commits the real cost and settles to sharers in batches. Caller funds are never pooled. - A caller can withdraw USDC, USDT, SOL or $AILE to any Solana address, one withdrawal at a time. Only the spendable balance can leave: the balance less what is owed and what is in flight. The entire remaining balance is always allowed. - The wallet's key sits with the wallet provider (Privy). AILE holds signing authority, and export is off by default. Details: [Wallet & funding](/docs/app/wallet). ### Fees | Path | Sharer keeps | AILE takes | |---|---|---| | x402 or MPP | 100% | 0% | | Balance | 90% | 10% | | Balance, nodeless | 85% | 15% (10% plus a 5% egress surcharge) | - The fee comes out of the sharer's share and is never added to the caller's price. At $1.00 of list, the caller pays $1.00 and the sharer keeps $0.90. - No sharer can elect out of the fee. It is waived only for AILE's own house sharer and where no fee can be collected. - An operator may lower the egress surcharge per provider. Details: [Pricing & fees](/docs/pricing#what-a-sharer-keeps). ### How a chat call is priced - The price is the published list times the sharer's margin. The margin runs from 0 to 1, and a sharer types no dollar price. - AILE's house sharer charges up to 1.055 times list and is tried after every sharer at or under list. `x-aile-max-price: 100%` keeps it out. - A model with no published list is a `404`. - OpenCode's `-free` models cost $0 and cannot be paid with x402. - The quote is the input estimate plus the output cap, which is 4,096 tokens when the body names none. One rate is fixed at the quote and carried through hold and commit. - The balance path commits the reported usage, up to the cap actually sent (or the context window when none was sent), within the balance that was spendable at the start. - An attachment AILE cannot measure is held at the whole context window, and a balance that cannot cover it gets a `402`. - Where a vendor publishes a long-context band, a prompt over its line bills the whole request at the band, cached tokens included. `x-aile-max-price` is checked at the band. - Cache reads and writes bill as the provider bills them, and audio output at the audio rate. - A caller reads the cost in `x-aile-cost`, `usage.cost`, `GET /v1/generation?id=` and `aile spend`. `aile price` quotes without sending. Details: [Spend & limits](/docs/buy/spend), [Long prompts](/docs/buy/spend#long-prompts). ### Sharer payouts - A sharer is paid in USDC on Solana, settled in batches. - The first payout to a wallet waits for $0.50 by default, to open the wallet's USDC token account. - A sharer signed in with their own wallet is paid to it directly. - Where Base or Tempo is enabled, a sharer gets one EVM wallet for both chains, with no export. x402 and MPP payments on those chains land there. - A sharer withdraws from the EVM wallet with `network=base` (no fee, and AILE pays gas) or `network=tempo` ($0.01 stays behind). Balance-path earnings always settle on Solana. - Payout in $AILE: §7. Details: [Getting paid](/docs/share/payouts). --- ## 7. $AILE token and staking $AILE is AILE's custom Solana SPL token, minted on pump.fun, with swaps through Jupiter. A deployment with no $AILE mint runs USDC-only. ### Sharers: payout asset - A sharer chooses $AILE or USDC with the "Take earnings in $AILE" switch in the wallet, or `PUT /payout/aile`. It is off by default. - The choice has no fee effect: the same 10% applies. It changes the asset, never the destination. A background sweep sells settled USDC for $AILE through Jupiter in the sharer's own wallet, up to about an hour later. ### Callers: the discount tab - A $AILE deposit is swapped to USDC, credited at 0% fee, and grants a discount tab of equal value. - A request the tab covers is priced 2% below list × margin. - The fee on a covered request drops to a derived rate of about 8.163%, so the sharer still keeps exactly 90% of list. 5/8 of that fee is earmarked to burn. - At $1.00 of list price: the caller pays $0.98, the sharer keeps $0.90, AILE revenue is $0.03, and $0.05 is earmarked to burn. - Per-unit endpoints (images, audio, video) bill at full price and leave the tab untouched. - The tab never stacks with the stake-funded discount. - Burn and buy-back, where the deployment enables them: background sweeps burn the earmark, and the rest of the fee revenue buys $AILE into a separate treasury wallet that holds it. Totals: [/stats](/stats), [/tokenomics](/tokenomics), `GET https://api.aile.sh/aile/burn`. - Buy $AILE, a wallet button, spends spendable USDC (from $1) on $AILE; AILE pays the network fee. It is not a deposit and grants no tab. ### Supply - The maximum supply is 1,000,000,000 $AILE, all minted at launch. Nothing more can be minted. - 100% entered the public bonding curve, with no presale, team allocation or vesting. - The token graduated to PumpSwap on 2026-09-11, and 55,533,138 $AILE were burned in PumpSwap's buy-and-burn. ### Staking Locking $AILE buys a free inference window, refilled every 5 hours and spent only through the account's stake key. Staking mints nothing, promises no rate and raises no limit. Tiers (shipped defaults): | Tier | Effective stake | Free window per 5 hours | |---|---|---| | 1 | 250,000 $AILE | $0.25 | | 2 | 1,000,000 | $1.10 | | 3 | 5,000,000 | $5.75 | | 4 | 10,000,000 | $12.00 | - Effective stake is the amount × (1 + lock days / 90), capped at 2× from 90 days. - Perks stop when unstaking is requested; tokens return 24 hours later. - Windows draw on a shared $100/day pool; the lowest tiers stop first as it runs low. One request may use at most 4 windows. - The window covers chat and any endpoint the operator opens to the tier. When it cannot pay, the stake key's fallback key pays. Without one: `429` (window or pool spent), `403` (no window), `400` (too large) or `503`. `x-aile-stake` reports `applied`, `exhausted`, `off`, `size` or `unavailable`. - Counted wallets: the account's AILE wallet plus one other. A wallet can switch accounts once per 24 hours. - Custody is a Streamflow pool; AILE cannot unlock a stake early. A stake from the staker's own wallet exits only with the staker's signature. - `GET https://api.aile.sh/stake/at` is public: it returns the ladder, or any wallet's positions. - Staking is off unless the operator configures a pool; every figure is overridable. ### Stake-funded discount Where the operator runs it, an opted-in staker's unused window discounts another caller's balance-paid request. AILE's subsidy account pays the sharer in full, the caller pays the discounted price to the staker, and the 10% fee applies to both payments. The discount is all-or-nothing per request, and never applies to x402 or MPP, partner credit, self-hosted capacity, a stake key's own window, a request that pins or narrows who serves, or alongside the $AILE tab. `x-aile-discount` is `applied`, `exhausted` (full price, not a refusal), `pinned`, `ineligible` or `off`, with `x-aile-discount-percent` and `x-aile-discount-remaining`. `GET /stake/discount` is the live counter. Details: [Stake-funded discount](/docs/buy/rate-limits#stake-funded-discount), [/stake](/stake). --- ## 8. How a request flows (end to end) 1. Format: the path sets the dialect and error shape. 2. Key gate: the `sk-aile-` key, if any, is read and looked up. 3. Model resolution (§4). 4. On chat, before any charge: secret redaction and a narrow content check. A refusal here costs nothing. 5. The sharer pool is built and ordered (§4). 6. Payment is reserved (balance) or verified (x402); the rate is fixed at the quote. 7. Dispatch: up to 4 dials. Refusals before a dial are free, and hanging up voids the charge. 8. Serve: self-hosted on the sharer's machine; through a node, with AILE injecting the credential and terminating TLS; or nodeless, dialled by AILE. 9. Meter and settle: reported usage replaces the estimate; the fee comes from the sharer's share. Details: [How a request is served](/docs/concepts/request-lifecycle). --- ## 9. Verification — what AILE can and cannot prove Verification is the bounded evidence AILE holds about a sharer's account: - The credential works (`aile check-key`). - The identity is attested: the provider signed a nonce at link time. Codex supports this, and Antigravity and GitLab Duo where the deployment enables it. API keys cannot be attested. A model test proves the account answered a request for that model id, not which model answered. Listed models are re-tested about daily, and a failure delists. Self-hosted models get a known-answer probe. AILE cannot prove model identity, quality or a silent downgrade. When a response names a different model than asked, AILE returns `x-aile-verified: false` with `x-aile-verified-model`. The request header `x-aile-verified: 1` requires attested accounts, which excludes every API-key listing. Details: [Verification](/docs/concepts/verification). --- ## 10. Key pages - [/market](/market): live listings of every model type, filterable by model, provider and price. - [/models](/models): every callable model, with live pricing. - [/docs](/docs): guides for callers and sharers; [API reference](/docs/api-reference). - [/stats](/stats): 30-day usage, savings against list and settlements. - [/receipts](/receipts): 30 days of calls and payouts settled on Solana. - [/status](/status): live status, 90-day uptime and incident history. - [/tokenomics](/tokenomics): $AILE supply, distribution and fee flow. - [/stake](/stake): the staking ladder and any wallet's position. - [/roadmap](/roadmap): what AILE does today and next. - [/notes](/notes): engineering and protocol write-ups. - [/share](/share): share an idle subscription, API key or machine. - [/call](/call): call models per token. - [Chat](https://chat.aile.sh): a separate app; `aile.sh/chat` redirects there. - [/legal/terms](/legal/terms), [/legal/risk](/legal/risk), [/legal/privacy](/legal/privacy): terms, risk disclosure, privacy. - [llms.txt](https://aile.sh/llms.txt): the short index. --- ## 11. Facts for citation - AILE (pronounced "isle") is a marketplace for AI model endpoints: sharers list AI capacity they already have, and callers reach it through one OpenAI- and Anthropic-compatible API and pay per call in USDC. - The API base URL is `https://api.aile.sh/v1` for OpenAI SDKs and `https://api.aile.sh` for Anthropic SDKs and Claude Code. Client code needs only that base URL, an AILE key (`sk-aile-…`) and a provider-prefixed model name. `npx aile.sh setup` configures Claude Code, Codex and other coding tools. `/v1/chat/completions`, `/v1/responses` and `/v1/messages` each reach any provider's model. - Every model name names its provider: `/`, for example `claude/claude-sonnet-5` (alias `cc/claude-sonnet-5`) or `codex/gpt-5.6-sol`; `local/` for a sharer's self-hosted model; and, with an API key, `auto/` to let any provider that lists the model serve it, cheapest first. A bare id acts as `auto/` with an API key and is a `400` without one; Claude Code's bare ids go to `claude` and the Codex CLI's to `codex`. `aile/auto` and `aile/auto-claude` let AILE pick the model from a published table. - AILE never falls back to a provider the caller did not name, except under `auto/`, which the caller opts into. An unknown provider is a `400`; a named one with no sharer online is a `503`. - Requests route by price: the cheapest sharer is tried first however slow, and speed, health and a passed model test only break ties at the same price. - A sharer's model is listed (/market, `GET /v1/models`, MCP `find_models`) only after it passes a model test. Listing gates nothing: a caller naming an untested model still reaches it, in price order. - A sharer's node never reads subscription or API-key traffic, because it relays TLS ciphertext. AILE reads every prompt and response to meter it, and custodies linked credentials, encrypted at rest. A self-hosted model is read by the sharer's machine. - Sharers price as a margin of the published list price, from 0 (free) to 1 (list); a model with no published list price is not sold. AILE's house sharer may charge up to 1.055× list and is tried only after every sharer at or under list. - On the balance path, AILE's platform fee is 10% of the charge, taken from the sharer's share and never added to the caller's price. A nodeless serve settles at 15% (10% plus a 5% egress surcharge). A payment made with x402 or MPP goes 100% to the sharer. - Crypto top-ups (USDC, USDT, SOL or $AILE on Solana) carry no fee. A card top-up, where offered, costs 5% plus the card provider's fee. Where offered, card or crypto through Stripe can instead buy spend-only credit for a 5.5% service fee (minimum $0.80): it is spent on calls before the wallet and cannot be withdrawn or transferred. - With x402, a wallet holding USDC on Solana (or Base, where enabled) can pay per call with no AILE account: send the request with no `Authorization` header, sign the `402`, and resend with `PAYMENT-SIGNATURE`. One keyless call costs at most $5.00 by default, and reaches only self-hosted models and sharers selling through a provider API key, never a subscription. - Verification proves a provider-signed account link (Codex; Antigravity and GitLab Duo where enabled) and that a credential recently worked, not which model answered. - On chat, AILE swaps secrets it recognises in a prompt for placeholders before the sharer or provider sees them, and restores them in the answer. `x-aile-redact: off` disables this. - Models whose publisher trains on prompts (Meta's `-contributor` models, some free OpenCode models) are sold with a notice: `data_policy` on `GET /v1/models` and `x-aile-data-notice: trains-on-prompts` on chat replies. - AILE runs an MCP server at `https://api.aile.sh/mcp`, where an agent can call models and other agents' tools at a flat price per call, paying from a balance or a wallet. - A sharer may take payouts in $AILE with no change to the 10% fee. A caller's $AILE top-up grants a discount tab pricing covered requests 2% below the sharer's price. - $AILE's maximum supply is 1,000,000,000, all minted at launch on pump.fun with 100% entering the public bonding curve. 55,533,138 were burned at graduation on 2026-09-11. - Staking $AILE mints nothing and promises no rate. A tier buys a free inference window every 5 hours on the stake key and raises no limits. - chat.aile.sh is a separate chat app; the marketplace API is api.aile.sh.