Documentation
Aetheron sells AI work one call at a time. You ask an endpoint to do something, it answers with a price, you pay from your own wallet, and you ask again. There is no account, no subscription and no API key. Everything here describes that exchange and the ways to drive it.
5 components
$0.25 to $1.00 per call
9 agent templates
$4.99, yours to keep
Non-custodial
This code cannot sign
Quickstart
A paid endpoint answers an unpaid request with the terms of payment, so curl is a complete client.
curl -sX POST https://aetheronprotocol.com/api/prompt-optimizer \
-H 'Content-Type: application/json' \
-d '{"text": "make this prompt better"}'
That returns 402 with an amount and a destination. Send the transfer, then repeat the call with the signature in X-TX-SIG.
The X402 flow
Four messages and one transfer. Nothing else.
01
Ask, with no payment attached.
02
Receive 402 carrying amount, currency and wallet.
03
Send the transfer yourself, signed in your wallet.
04
Ask again with the signature. Work is queued.
{
"status": 402,
"component": "prompt-optimizer",
"required": 0.25,
"currency": "USDC",
"network": "Solana",
"wallet": "<receiving address>",
"accepted_methods": ["USDC"]
}
A client never needs telling out of band what a call costs. Everything required to pay is in the response that refused you.
AI components
| Component | Price | What you get |
|---|---|---|
| Prompt Optimizer | $0.25 | Loose text rewritten into a structured, agent-ready prompt |
| Code Explainer | $0.50 | A file explained, rated for complexity, with refactors proposed |
| Prompt Tester | $0.50 | One prompt run past several personas, each reaction reported |
| Risk Engine | $0.75 | Monte Carlo simulation, charted paths and outcome distribution |
| Contract Intelligence | $1.00 | Holder concentration, LP lock, admin powers, honeypot checks |
The first three need only an Anthropic key. The last two read Solana and Ethereum, and fall back to whatever sources remain when a provider is missing.
Agent templates
Nine complete Python projects at $4.99 each. You download the source and it is yours: they run on your machine and depend on nothing here to keep working. Each ships with a README, a config.json, its requirements and a licence.
Output formats
Every component returns a written report. Pass format in the request body to choose how it is rendered.
Anything else is rejected rather than silently downgraded, so a typo surfaces as a 422 instead of quietly returning the wrong thing.
Request headers
| Header | Required | Meaning |
|---|---|---|
| X-USER-WALLET | yes | The wallet claiming the purchase. Must be the transaction signer. |
| X-TX-SIG | after paying | The signature of the transaction that paid for this call. |
| X-PAYMENT-METHOD | no | USDC by default, or AETH. |
Paid endpoints
| Endpoint | Price | Body |
|---|---|---|
| POST/api/prompt-optimizer | $0.25 | text, format |
| POST/api/code-explainer | $0.50 | text, format |
| POST/api/prompt-tester | $0.50 | text, format |
| POST/api/risk-engine | $0.75 | runs, steps, start_price, mu, sigma |
| POST/api/contract-intel | $1.00 | contract_address, network |
| GET/api/download_agent/{id} | $4.99 | none |
Free endpoints
| GET/api/status | Service health and which ledger backend is in use. |
| GET/api/agents | The agent catalogue. |
| GET/api/job-status/{task_id} | Poll a queued job. |
| GET/api/ledger | Recent public ledger entries. |
| GET/api/my-assets/{wallet} | A wallet's purchase history, paginated. |
| GET/api/price/aeth | AETH needed for a given USDC price. |
A generated OpenAPI explorer is also available at /api-explorer.
Jobs and downloads
Work runs asynchronously. A verified paid call answers 202 with a task id.
{
"message": "Prompt queued for processing",
"asset_id": "X402-PROMPT-A1B2C3D4E5",
"task_id": "9f2c8ab1-..."
}
Poll /api/job-status/{task_id} until it reports success, then fetch the download URL it returns. Report filenames are cryptographically random, because they are served from a public bucket and the name is the only thing protecting them.
Errors
| Status | Meaning |
|---|---|
| 202 | Payment accepted, work queued. |
| 400 | Malformed request, such as an empty body. |
| 402 | Payment required, or partially received. The body carries what is still owed. |
| 409 | That transaction signature has already been used. |
| 422 | Input failed validation, such as an address that does not match its chain. |
| 502 | A pricing source was unreachable. Retry shortly. |
Payment methods
USDC on Solana
The default. Prices are exact and settle at the quoted amount.
$AETH on Solana
Priced from a live quote with a one percent tolerance for drift. Activates automatically once the token launches.
Partial payments
Underpay and the shortfall is recorded against your wallet for that component, so a later transfer completes the purchase. The 402 tells you exactly what remains.
{
"status": 402,
"message": "Partial payment received",
"paid": 0.10,
"required": 0.25,
"remaining": 0.15,
"currency": "USDC"
}
The signature that paid it is spent and cannot be presented again.
Security model
Aetheron holds no keys and can sign nothing. Verifying payment means checking that its own balance rose, not that a transfer happened somewhere.
| Transaction | Credited |
|---|---|
| Moving tokens between two wallets you control | 0 |
| Buying the token on a DEX | 0 |
| Paying somebody else | 0 |
| Reusing a signature that already bought something | 409 |
| A real transfer to the payment wallet | accepted |
The signer must also be the wallet claiming the purchase. Claiming a payment is an insert keyed on the signature, so two requests racing with the same signature cannot both be credited.
TypeScript SDK
v0.3.0Browser first and framework agnostic. It does not hide the payment step: nothing is auto-paid, and no transaction is built or signed for you.
npm install aetheron-sdk
import { AetheronSDK } from "aetheron-sdk";
const aetheron = new AetheronSDK(wallet, connection);
try {
await aetheron.promptOptimizer({ text: "make this prompt better" });
} catch (err) {
const terms = aetheron.getPaymentInfo(err); // null if it was a real error
terms?.required; // 0.25
terms?.wallet; // where to send it
}
// once the user has signed and sent the transfer
const report = await aetheron.promptOptimizer(
{ text: "make this prompt better", format: "pdf" },
{ txSig }
);
promptOptimizer, codeExplainer, promptTester, contractIntel and downloadAgent all wrap callPaidComponent, which accepts any endpoint, so the Risk Engine and anything added later is reachable before a named method exists. The endpoint defaults to the origin serving the page.
CLI
In developmentThe same calls from a terminal, for scripting bulk prompt or code analysis. Not yet shipped. This page will show usage the day it does, rather than documentation for something you cannot install.
MCP server
In developmentExposes the components as tools, so an agent can buy and run one directly. The 402 exchange is already the whole interface and nothing about it is specific to a browser. Also not yet shipped.
Self-hosting
Aetheron is MIT licensed and runs on your own machine with Python 3.11 and Redis. There is no database to provision: leave DB_HOST empty and the ledger is a local SQLite file.
git clone https://github.com/Aetheron402/Aetheron
cd Aetheron
python -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env # set PAYMENT_WALLET and OPENAI_API_KEY
redis-server --daemonize yes
.venv/bin/uvicorn Aetheron:app --reload
.venv/bin/celery -A celery_worker.celery worker --loglevel=info
Configuration
Nothing is hardcoded. Every setting is an environment variable, documented in .env.example. Exactly three are required.
| Variable | Required | Purpose |
|---|---|---|
| PAYMENT_WALLET | yes | The Solana wallet that receives every payment. |
| OPENAI_API_KEY | yes | Powers all five components. |
| REDIS_URL | yes | Celery broker and result backend. |
| AETH_MINT_ADDRESS | no | Setting it activates AETH payments everywhere, with no redeploy. |
| DB_HOST | no | Empty means SQLite. Set it to use Postgres. |
| HELIUS_API_KEY | no | Solana RPC and holder lookups for the chain tools. |
| ETHERSCAN_API_KEY | no | Ethereum contract source and ABI. |
Licence
MIT. Fork it, run it, charge for it. The components are the product; the code that takes payment for them was never the secret.