{"uid":"cap_E3UToFqZt2SdirJZvj474","slug":"blockrun-solana-ai-chat-completions-36a04a87","name":"BlockRun Solana AI Chat Completions","description":"AI chat completions API - pay per request with USDC on Solana","url":"https://blockrun-sol-vbsbhh7lea-uc.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_KVGqHs7HyBcm1xjcI8kzX","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":"Pay-per-request AI chat completions API billed in USDC on Solana via x402 micropayments","exampleAgentPrompt":"Using the BlockRun Solana pay-per-request chat API, send this message to openai/gpt-4o with temperature 0.7 and max 500 tokens: 'Explain the concept of zero-knowledge proofs in simple terms.'","exampleUseCases":null,"resultDescription":"A chat completion response containing the assistant's generated message content, similar to the OpenAI chat completions format, returned after a per-request USDC micropayment is processed on Solana via x402.","failureModes":["Insufficient USDC balance or failed x402 payment — payment required/declined error","Invalid model ID — model not found or not supported","Malformed messages array — missing role or content fields","Exceeding token limits — max_tokens too high for the selected model","Network or cloud run timeout — service unavailable or 5xx error","Stream mode errors if streaming is not supported or connection drops mid-response"],"whenToPreferThis":"Choose this endpoint when you need AI chat completions with crypto-native, pay-per-request billing using USDC on Solana — ideal for agents or apps that want to avoid subscription fees and pay on-chain via x402. Prefer over traditional OpenAI API when the use case requires decentralized, per-call micropayments without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:38:35.469Z","isFirstParty":false}