# Fable Drop

> Pay SOL, get 20x its USD value as API credit for `fable-5.2-high`.
> The API is Anthropic Messages compatible. Minimum payment: 0.01 SOL.

Pay to (Solana mainnet): `5pgexah9QViNLz2EocuUVC3vKecDtLtUUYBboZLFSmJp`

## About this drop

This is a promotional gateway. We are building a crypto AI gateway, so agents can pay for AI with their own funds: no card, no account, no human in the loop.
For the launch we are selling credit at a loss: every payment gets 20x its dollar value in API credit.
A token is planned to support the gateway. Paying here buys API credit only. It is not a token purchase, and it gives no allocation.

## 1. Get a quote

```
curl -s -X POST https://fable-drop-nine.vercel.app/v1/quote -H "content-type: application/json" -d '{"amount_sol": 0.1}'
```

Returns `claim_id`, `claim_token` and `pay_exact_sol`. Keep the token secret. The quote also carries `solana_pay_url` (a Solana Pay link any wallet can open) and `pay_command` (Solana CLI), both for the exact amount.

## 2. Pay

Send exactly `pay_exact_sol` SOL to `5pgexah9QViNLz2EocuUVC3vKecDtLtUUYBboZLFSmJp`. The exact amount ties the payment to your claim, so nobody else can claim it.

## 3. Report the payment

```
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>"}'
```

The payment is checked on chain. A 404 means the transaction is not finalized yet: retry after 20 seconds.

## 4. Collect your key

```
curl -s https://fable-drop-nine.vercel.app/v1/claims/<claim_id> -H "authorization: Bearer <claim_token>"
```

Poll once a minute. The operator approves each payment by hand. When `status` is `approved` the response holds `api_key` and a ready `command`.

## 5. Use it

```
curl -s https://fable-drop-nine.vercel.app/v1/messages -H "x-api-key: <api_key>" -H "content-type: application/json" \
  -d '{"model":"fable-5.2-high","max_tokens":256,"messages":[{"role":"user","content":"hello"}]}'
```

Or point any Anthropic SDK at it: `export ANTHROPIC_BASE_URL=https://fable-drop-nine.vercel.app ANTHROPIC_API_KEY=<api_key>`

OpenAI-style clients: `POST https://fable-drop-nine.vercel.app/v1/chat/completions` with `Authorization: Bearer <api_key>` works for plain text chat (set the base URL to `https://fable-drop-nine.vercel.app/v1`). It has no streaming or tools; use `/v1/messages` for those. Billing is the same.

MCP clients: connect to `https://fable-drop-nine.vercel.app/mcp` (HTTP, no auth) for the payment flow as tools: get_offer, get_quote, report_payment, check_claim, check_balance, request_refund.

Machine-readable API description: https://fable-drop-nine.vercel.app/openapi.json

## FAQ

**How can an AI agent pay for LLM API access with crypto?**
Send SOL on Solana mainnet to 5pgexah9QViNLz2EocuUVC3vKecDtLtUUYBboZLFSmJp, report the transaction signature to this API, and receive an API key. No card, no account and no KYC form: an agent with a funded Solana wallet can do the whole flow over HTTP.

**How much API credit does a SOL payment buy?**
20x the dollar value of the SOL at the time of the claim. Usage is charged at $8 per million input tokens and $40 per million output tokens.

**Is the API compatible with the Anthropic SDK?**
Yes. It serves the Anthropic Messages API at /v1/messages, including streaming. Plain text chat also works in the OpenAI format at /v1/chat/completions, without streaming or tools. Set ANTHROPIC_BASE_URL to https://fable-drop-nine.vercel.app and ANTHROPIC_API_KEY to the issued key. The model name is fable-5.2-high.

**How is a payment verified?**
The transaction is read from the Solana ledger and must be finalized, successful and paid to the gateway wallet. The credited amount is the on-chain amount, not the amount the agent reports. The operator then approves each payment by hand before a key is issued.

**How long until an agent gets its key?**
Verification is immediate once the transaction is finalized. Approval is manual, so the agent polls its claim until the status is approved.

**Can an agent get a refund?**
An agent that paid without asking for a quote first can request a refund at /v1/refunds with the transaction signature. The operator investigates each request by hand and refunds go back to the wallet that sent the payment.

**Does paying give me tokens or an allocation?**
No. A payment buys API credit only. A token is planned to support the gateway, but paying here is not a token purchase and gives no allocation.

Check credit: `curl -s https://fable-drop-nine.vercel.app/v1/balance -H "x-api-key: <api_key>"`

## Billing

Usage is charged against your credit at $8 per million input tokens and $40 per million output tokens.

## Already paid without a quote?

`POST https://fable-drop-nine.vercel.app/v1/claims {"signature": "<tx signature>", "amount_sol": 0.1}`. It is still checked on chain, and the response holds your `claim_token`.

## Refunds

Paid without a quote and it went wrong (someone else claimed it, or it was rejected)? Ask for a refund:
`POST https://fable-drop-nine.vercel.app/v1/refunds {"signature": "<tx signature>", "reason": "...", "contact": "..."}`.
The operator investigates each request by hand and, if it holds up, sends the SOL back to the wallet that paid. Poll the returned `status_url`.

## Guides

- [Pay for an LLM API with SOL: no credit card, no account](https://fable-drop-nine.vercel.app/pay-for-llm-api-with-sol)
- [Anthropic-compatible API you can pay for with crypto](https://fable-drop-nine.vercel.app/anthropic-compatible-api-pay-with-crypto)
- [How an AI agent can pay for its own inference from its wallet](https://fable-drop-nine.vercel.app/ai-agent-pay-for-own-inference)
- [LLM gateway for Solana AI agents (ElizaOS, Solana Agent Kit and others)](https://fable-drop-nine.vercel.app/llm-gateway-for-solana-ai-agents)
- [LLM API without a credit card or sign-up: pay per use in SOL](https://fable-drop-nine.vercel.app/llm-api-without-credit-card)
- [MCP server for buying LLM API credit with SOL](https://fable-drop-nine.vercel.app/mcp-server-buy-llm-credit-with-sol)
- [OpenAI-compatible chat API paid with SOL](https://fable-drop-nine.vercel.app/openai-compatible-api-pay-with-sol)

Machine-readable summary: https://fable-drop-nine.vercel.app/v1/offer
