{"uid":"cap_SFqP9dmnEnM9elyLO8BWB","slug":"blockrun-hosted-gpt-4o-gpt-4-1-text-chat-054271e7","name":"BlockRun Hosted GPT-4o / GPT-4.1 Text Chat","description":"Hosted GPT-4o / GPT-4.1 Text Chat: Hosted GPT-4o or GPT-4.1 text chat through BlockRun. Up to 16,000 total input characters, eight turns and 2,048 output tokens. Returns answer, served model and usage. Inputs leave this PC for the named providers. Text only; no vision, tools or streaming. 0.09 USDC includes one bounded hosted text answer.","url":"https://market.datapackvibe.com/x402/assistant-hosted-premium-chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["openai/gpt-4o","openai/gpt-4.1"],"type":"string","default":"openai/gpt-4o"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string","maxLength":16000,"minLength":1}},"additionalProperties":false},"default":[{"role":"user","content":"Explain HTTP 402 in one sentence."}],"maxItems":8,"minItems":1},"max_tokens":{"type":"integer","default":128,"maximum":2048,"minimum":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_omJ8wHgrVx5cMRxIzpVX3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides pay-per-call hosted text chat completions using OpenAI GPT-4o or GPT-4.1, with up to 8 conversation turns and 2,048 output tokens, returning the answer, served model name, and token usage.","exampleAgentPrompt":"Ask GPT-4o via the BlockRun hosted chat endpoint: 'What are the key differences between REST and GraphQL?' — use up to 512 output tokens and keep the system message as 'You are a concise technical assistant.'","exampleUseCases":[{"title":"Quick factual Q&A for agent pipeline","prompt":"Send this question to the hosted GPT-4o chat: 'Summarize the main causes of the 2008 financial crisis in three bullet points.' Give me up to 300 tokens in the answer."},{"title":"Multi-turn coding help session","prompt":"Run a short back-and-forth with GPT-4.1: first I say 'Write a Python function to reverse a linked list', then follow up with 'Now add type hints and a docstring.' Use up to 1024 output tokens."},{"title":"System-prompted business writing assistant","prompt":"Use the hosted GPT-4o endpoint with a system message of 'You are a professional copywriter' and ask: 'Write a three-sentence product description for a reusable bamboo water bottle targeting eco-conscious millennials.' Limit output to 256 tokens."}],"resultDescription":"Returns a JSON object containing the generated text answer from GPT-4o or GPT-4.1, the name of the model that actually served the request, and token usage statistics (prompt tokens, completion tokens, total tokens).","failureModes":["Input exceeds 16,000 character limit — request rejected with validation error","Message array exceeds 8 turns — request rejected","max_tokens outside 1–2048 range — validation error","Invalid model enum value — rejected with schema error","Payment not received or x402 protocol failure — 402 response, no completion returned","Provider (OpenAI) downstream error — may return 5xx or error message","Empty or missing messages array — validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, bounded, pay-per-call GPT-4o or GPT-4.1 text completion without managing your own OpenAI API key or subscription — especially in agent pipelines where cost control per call matters (fixed $0.09 USDC per call). Prefer this over self-hosted or subscription LLMs when you want metered usage with no monthly commitment. Not suitable when you need vision inputs, function/tool calling, streaming responses, or more than 2,048 output tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T06:54:54.352Z","isFirstParty":false,"canonicalSlug":"blockrun-hosted-gpt-4o-gpt-4-1-text-chat-054271e7"}