{"uid":"cap_DLXjEWi_B6nGGP_tFRpui","slug":"blockrun-ai-model-routing-inference-api-5046570e","name":"BlockRun AI Model Routing & Inference API","description":"Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.","url":"https://blockrun.ai/api/v1/responses","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"AI model ID (e.g., gpt-4o-mini, claude-haiku-4.5)"},"stream":{"type":"boolean","description":"Enable streaming responses"},"messages":{"type":"array","description":"Array of chat messages with role and content"},"max_tokens":{"type":"integer","description":"Maximum tokens to generate"},"temperature":{"type":"number","description":"Sampling temperature (0-2)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.011","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L7MNPyuMhxZolOe14w446","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.011","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes chat completion requests to frontier AI models (GPT-4o, Claude, etc.) with built-in on-chain USDC payment settlement on Base and Solana.","exampleAgentPrompt":"Use BlockRun to send this conversation to claude-haiku-4.5 — up to 1024 tokens, temperature 0.7 — and stream the response back: 'Explain the difference between proof-of-work and proof-of-stake in plain English.'","exampleUseCases":[{"title":"AI agent task with crypto payment","prompt":"Route this task to gpt-4o-mini through BlockRun, streaming enabled, max 512 tokens: 'Summarize the following article in three bullet points.' I want it paid automatically in USDC on Base."},{"title":"Multi-model comparison via single endpoint","prompt":"Send the same prompt to both claude-haiku-4.5 and gpt-4o-mini through BlockRun — temperature 0.5, max 256 tokens each — and tell me which gives a better answer to: 'What are the top three use cases for AI agents in finance?'"},{"title":"Automated LLM calls in an agent pipeline","prompt":"My agent needs to call BlockRun's inference endpoint for each step in a reasoning chain — use gpt-4o-mini, temperature 0.2, max 800 tokens, and make sure each call is settled in USDC so I don't need to manage API keys for multiple providers."}],"resultDescription":"Returns a chat completion response including the generated text content, model used, token usage statistics, and finish reason — optionally streamed as server-sent events if streaming is enabled. Payment is settled on-chain in USDC on Base or Solana per call.","failureModes":["Insufficient USDC balance causes payment failure and 402 response","Invalid model ID returns an error indicating unsupported model","Max tokens exceeded for the selected model returns a validation error","Network latency or model provider downtime causes timeout","Malformed messages array (missing role or content) returns 400 bad request","Temperature out of range (>2 or <0) returns validation error"],"whenToPreferThis":"Choose this endpoint when you need to access multiple frontier AI models through a single unified interface with automatic on-chain USDC payment settlement, eliminating the need to manage separate API keys and billing accounts for OpenAI, Anthropic, and other providers. Especially valuable for AI agents running on Web3 infrastructure or when payments must be settled transparently on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:01:49.679Z","isFirstParty":false}