Let your agent pay for its own inference
An autonomous agent with a funded Solana wallet can buy its own LLM API credit over HTTP, with no human and no card. Machine-readable instructions and OpenAPI included.
The problem
Agents hold wallets, but model APIs bill a human's credit card. An agent that runs out of credit stops until its owner tops it up.
The flow an agent can run alone
Quote, pay, report, poll. Every step is plain HTTP plus one SOL transfer, so an agent with a Solana wallet can do all of it. Each payment gets 20x its dollar value as API credit for fable-5.2-high, charged at $8 per million input tokens and $40 per million output tokens. The minimum is 0.01 SOL.
curl -s -X POST https://fable-drop-nine.vercel.app/v1/quote \
-H "content-type: application/json" \
-d '{"amount_sol": 0.1}'
# send pay_exact_sol to 5pgexah9QViNLz2EocuUVC3vKecDtLtUUYBboZLFSmJp, then:
curl -s -X POST https://fable-drop-nine.vercel.app/v1/claims \
-H "authorization: Bearer <claim_token>" \
-H "content-type: application/json" \
-d '{"claim_id":"<claim_id>","signature":"<tx signature>"}'
curl -s https://fable-drop-nine.vercel.app/v1/claims/<claim_id> -H "authorization: Bearer <claim_token>"
Built to be read by agents
Fetch https://fable-drop-nine.vercel.app/llms.txt for step-by-step instructions in Markdown, https://fable-drop-nine.vercel.app/openapi.json to import the API as a tool, or https://fable-drop-nine.vercel.app/v1/offer for the wallet, price and minimum as JSON.
What the agent gets
An API key and a ready command once the payment is approved. Approval is by hand, so the agent should poll its claim rather than expect an instant key.
If something goes wrong
A payment made without a quote can ask for a refund at /v1/refunds with its transaction signature. The operator reviews each request and refunds go back to the wallet that paid.
Pay to 5pgexa… and get 20x credit