OpenAI-compatible Responses API
blockrun.ai/api/v1/responses
OpenAI-compatible Responses API — pay per token with USDC on Base
POST
https://blockrun.ai/api/v1/responsesUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://blockrun.ai/api/v1/responses", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":{"description":"Maximum tokens to generate","type":"integer"},"messages":{"description":"Array of chat messages with role and content","type":"array"},"model":{"description":"AI model ID (e.g., gpt-4o-mini, claude-haiku-4.5)","type":"string"},"stream":{"description":"Enable streaming responses","type":"boolean"},"temperature":{"description":"Sampling temperature (0-2)","type":"number),
});
console.log(await res.json());Example input
{"max_tokens":{"description":"Maximum tokens to generate","type":"integer"},"messages":{"description":"Array of chat messages with role and content","type":"array"},"model":{"description":"AI model ID (e.g., gpt-4o-mini, claude-haiku-4.5)","type":"string"},"stream":{"description":"Enable streaming responses","type":"boolean"},"temperature":{"description":"Sampling temperature (0-2)","type":"numberMore from BlockRun.AIProvider status
- blockrun.ai/api/v1/audio/generationsAI music generation API - pay per track with USDC on Base0.20
- blockrun.ai/api/v1/audio/sound-effectsAI sound effect generation (ElevenLabs) — pay per call with USDC on Base0.05
- blockrun.ai/api/v1/audio/speechAI text-to-speech (ElevenLabs) — pay per call with USDC on Base0.05
- blockrun.ai/api/v1/chat/completionsAI chat completions API - pay per request with USDC on Base0.002
- blockrun.ai/api/v1/decisionsTyped judgments for agents: yes/no, choice and score questions about one input, each answered with a probability. Gemini Decision 1 by Google (up to 1,000 questions per call) or OpenAI's gpt-6-luna (the default, up to 64); OpenAI Decisions request shape.0.001
- blockrun.ai/api/v1/defillama/chainsTVL by chain — every chain DefiLlama tracks with current TVL totals.0.006
- blockrun.ai/api/v1/defillama/prices/coingecko:bitcoinToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/protocol/aaveDetailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).0.006
- blockrun.ai/api/v1/defillama/protocol/aave-v4Detailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).0.006
- blockrun.ai/api/v1/defillama/protocol/aerodromeDetailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).0.006
- blockrun.ai/api/v1/defillama/protocol/ethereumDetailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).0.006
- blockrun.ai/api/v1/defillama/protocol/fablesDetailed TVL + breakdown for a single protocol. Pass slug as `/v1/defillama/protocol/{slug}` (e.g. `aave`, `uniswap`).0.006
