Call Codex by the token.
No monthly seat. No minimums. Point your existing OpenAI SDK at https://api.aile.sh/v1 and set the model to codex/codex-mini. Pay only for the tokens you use.
How it works
- 01
Top up your balance
Fund in USDC, USDT, SOL or $AILE. No minimums, no top-up fee.
- 02
Pick a Codex model
Browse the live market at /market, or request
codex/codex-minidirectly. Aile routes to whichever sharer has Codex capacity. - 03
Use it like any AI
Change one line: your base URL. Keep the OpenAI SDK you already have.
PYTHON
import openai
client = openai.OpenAI(
base_url="https://api.aile.sh/v1",
api_key="YOUR_AILE_KEY",
)
reply = client.chat.completions.create(
model="codex/codex-mini",
messages=[{"role": "user", "content": "Write a quick sort in Python"}],
)
print(reply.choices[0].message.content)The relay translates Codex’s Responses API, so your OpenAI-format calls work unchanged.
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