API · MCPFor developers and agents

Compute your code can send, and your agents can ask for

One key, three moves. Ask a person for compute with a link. Send it from code as a link anyone can claim. Spend it through an Anthropic- or OpenAI-compatible API. Every move is also an MCP tool.

Three moves

Ask, send, spend

Request

Let your agent ask for compute

POST /api/v1/requests with how much, who's asking and why. You get back a link like /r/rX7kP2mQ9a: show it in your chat, your app, a PR comment, anywhere.

The person sees who's asking and why, picks an amount and pays in one tap. The credit lands on your key; poll the request until it says funded.

Agents can fund each other too: POST /api/v1/requests/:id/fund moves credit from one key to another.

bash
# No key yet? Leave the header out: a balance is opened and its key comes back.
curl -X POST https://staging.sendcompute.ai/api/v1/requests \
  -H "content-type: application/json" \
  -d '{"amountUsd": 10, "agent": "build-bot", "purpose": "finish the billing tests"}'

# → { "request": { "id": "rX7kP2mQ9a", "status": "open", "url": "https://staging.sendcompute.ai/r/rX7kP2mQ9a", … },
#     "key": "sc_sk_…" }   ← save it; shown once

# Show the url to your person, then poll until it's funded:
curl https://staging.sendcompute.ai/api/v1/requests/rX7kP2mQ9a

Send

Send compute from your code

POST /api/v1/gifts turns part of a balance into a gift link with its own card. Leave to out for a link anyone can claim, lock it to an X, Instagram or TikTok @username, or split it between up to 100 people.

The person claiming signs in once (Google, X or an email code), so the credit follows them to every device. Check on it with GET /api/v1/gifts/:id.

bash
curl -X POST https://staging.sendcompute.ai/api/v1/gifts \
  -H "authorization: Bearer $SENDCOMPUTE_KEY" \
  -H "content-type: application/json" \
  -d '{"amountUsd": 5, "to": {"platform": "x", "handle": "jack"}, "note": "for the hackathon"}'

# → { "gift": { "id": "Zk3…", "url": "https://staging.sendcompute.ai/g/Zk3…#…", "status": "active", … } }
# "to": {"username": "jack"} sends to a sendcompute username (https://staging.sendcompute.ai/@jack) instead.
# Leave "to" out for a link anyone can claim, or split it: "split": "even", "slots": 10

Spend

One key, every model

A balance is an API key. Point any Anthropic or OpenAI client at sendcompute and use the models its credit covers; each call is charged at cost from the balance.

GET /api/v1/balance shows what's left. Need a key to start? Buy a balance for yourself on Send → Me, or let your agent ask with no key.

bash
ANTHROPIC_BASE_URL=https://staging.sendcompute.ai ANTHROPIC_AUTH_TOKEN=$SENDCOMPUTE_KEY ANTHROPIC_API_KEY= claude

MCP

Plug it into any agent

sendcompute is an MCP server. Add it once and your agent can ask for compute, check its balance, send compute and fund other agents on its own.

No key yet? Connect without the header: the agent's first request_compute opens a balance and hands it the key.

Agents that read docs can start from /llms.txt.

bash
claude mcp add --transport http sendcompute https://staging.sendcompute.ai/mcp \
  --header "Authorization: Bearer $SENDCOMPUTE_KEY"

Endpoints

Base URL https://staging.sendcompute.ai. JSON in and out, CORS open. Send your key as Authorization: Bearer sc_sk_…. Errors look like { "error": { "message": "…" } }.

CallKeyWhat it does
POST/api/v1/requestsOptionalAsk for compute. Returns a link for a person; with no key, opens a balance and returns its key.
GET/api/v1/requests/:id—A request's status: open, funded (and how much) or expired.
GET/api/v1/requestsRequiredYour recent requests.
POST/api/v1/requests/:id/fundRequiredFund someone's request from your balance (same credit type).
POST/api/v1/giftsRequiredSend from your balance as a link: anyone, one @username, or split.
GET/api/v1/gifts/:id—A gift's status: active, claimed by how many, revoked or expired.
GET/api/v1/balanceRequiredWhat your key holds, the models it runs, your requests.
GET/api/v1/packs—Every credit type, its models and price range.
POST/v1/messages · /v1/chat/completionsRequiredSpend it: Anthropic- and OpenAI-compatible model API.
POST/mcpOptionalThe same moves as MCP tools for any agent.

The rules

A key is money
Anyone holding an sc_sk_ key can spend its balance. Keep it in an env var or a secret store, never in a prompt someone else can read.
Amounts
Requests $1–$50, gifts $0.50–$50 during the beta.
Expiry
Requests stay open 7 days. A balance opened by a request and never funded disappears after 8. Paid credit lasts 5 years; sponsored (free) credit 30 days, spend-only.
Funded once
Each request is funded by one person. If two pay at once, the second gets a gift link for the same amount instead.
No fee
Sending or funding from a balance moves exactly the amount, nothing on top. Spending is at cost.
Closed loop
Credit only buys AI compute. It can't be cashed out.
Limits
10 new balances per hour per IP; 60 requests or gifts per hour per key. Webhooks are coming; poll for now.

Give your agent a way to ask

One MCP line, or one POST. The first request makes its key.