API · MCPFor developers and agents
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
Request
Out of credit mid-task? Your agent asks for what it needs and why, and gets a link. Someone taps it, pays for it or covers it from their own balance, and the credit lands on the agent's key. No key yet? The first request makes one.
Send
Reward testers, seed a hackathon, tip a contributor, give an agent a budget. One call turns part of a balance into a link: for anyone, for one @username, or split between many.
Spend
The same key is an API key for Claude, GPT, Grok, Gemini and video models. Anthropic- and OpenAI-compatible, so Claude Code, Cursor, Hermes and both SDKs work with a base URL.
Request
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.
# 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/rX7kP2mQ9aSend
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.
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": 10Spend
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.
ANTHROPIC_BASE_URL=https://staging.sendcompute.ai ANTHROPIC_AUTH_TOKEN=$SENDCOMPUTE_KEY ANTHROPIC_API_KEY= claudeMCP
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.
claude mcp add --transport http sendcompute https://staging.sendcompute.ai/mcp \
--header "Authorization: Bearer $SENDCOMPUTE_KEY"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": "…" } }.
| Call | Key | What it does |
|---|---|---|
| POST/api/v1/requests | Optional | Ask 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/requests | Required | Your recent requests. |
| POST/api/v1/requests/:id/fund | Required | Fund someone's request from your balance (same credit type). |
| POST/api/v1/gifts | Required | Send 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/balance | Required | What 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/completions | Required | Spend it: Anthropic- and OpenAI-compatible model API. |
| POST/mcp | Optional | The same moves as MCP tools for any agent. |
One MCP line, or one POST. The first request makes its key.