← Fable Drop

Run an ElizaOS agent on credit bought with SOL

Settings for running an ElizaOS agent on fable-5.2-high through a gateway the agent pays for in SOL: ANTHROPIC_BASE_URL, ANTHROPIC_API_KEY and the model names.

What you need

An ElizaOS agent that uses @elizaos/plugin-anthropic, and an API key from this gateway. 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.

Get a key

Ask for a quote, send the quoted SOL, report the transaction signature and poll the claim. The key arrives once the payment is approved, which is done by hand.

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

Settings

The plugin reads its endpoint from ANTHROPIC_BASE_URL and appends /messages to it, so the value must end in /v1. Set both model sizes to the model sold here.

ANTHROPIC_BASE_URL=https://fable-drop-nine.vercel.app/v1
ANTHROPIC_API_KEY=<api_key>
ANTHROPIC_SMALL_MODEL=fable-5.2-high
ANTHROPIC_LARGE_MODEL=fable-5.2-high

What works

The gateway serves the Anthropic Messages route, including streaming, and bills each call against the prepaid credit. Embeddings are not sold here, so keep whatever embedding provider the agent already uses.

How this was checked

The setting names and the /v1 default were read from the published @elizaos/plugin-anthropic 2.0.5 package. The setup has not been run against a live ElizaOS agent, so test with a small payment first.

Track what is left

A script or the agent can read remaining credit and top up before it runs out.

curl -s https://fable-drop-nine.vercel.app/v1/balance -H "x-api-key: <api_key>"
Pay to 5pgexa… and get 20x credit