{"uid":"cap_JuCUp_cpOSILDVldhMj2Z","slug":"blockrun-ai-chat-completions-solana-pay-per-request-e4ac1d80","name":"Blockrun AI Chat Completions (Solana Pay-per-Request)","description":"AI chat completions API - pay per request with USDC on Solana","url":"https://blockrun-sol-vbsbhh7lea-an.a.run.app/api/v1/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model ID (e.g. openai/gpt-4o)"},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ALgUgh8dhS1x3EIpU5IkX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides AI chat completions via an OpenAI-compatible API, billed per-request at $0.003 USDC on Solana using x402 payment protocol","exampleAgentPrompt":"Using the Blockrun pay-per-request AI API, send a chat message to openai/gpt-4o with the user message 'Explain the theory of relativity in simple terms', max 300 tokens, temperature 0.7 — and charge my USDC wallet on Solana for the call.","exampleUseCases":null,"resultDescription":"An OpenAI-compatible chat completion response containing the assistant's generated message, including the role, content, model used, token usage statistics, and finish reason. Each call deducts $0.003 USDC from the caller's Solana wallet via x402.","failureModes":["Insufficient USDC balance — x402 payment rejected before inference runs","Invalid model ID — model not supported or misspelled (e.g. wrong provider prefix)","Malformed messages array — missing role or content fields causes 400 error","Stream mode errors — SSE stream may be cut off if connection drops mid-response","Rate limiting or capacity errors from upstream model provider causing 5xx responses","Temperature or max_tokens out of valid range causing validation errors"],"whenToPreferThis":"Choose this endpoint when you need pay-as-you-go AI chat completions without committing to a subscription or obtaining a traditional API key — especially when paying with USDC on Solana via the x402 protocol is acceptable or preferred. Ideal for agents or micro-apps that make infrequent LLM calls and want crypto-native billing. Prefer alternatives like direct OpenAI or Anthropic APIs if you need guaranteed SLAs, higher throughput, or non-crypto payment methods.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:38:25.356Z","isFirstParty":false}