{"uid":"cap_0H4IVisPagBE_eNTMV_QO","slug":"blockle-inference-api-b8b81705","name":"Blockle Inference API","description":"A non-custodial multi-chain wallet, a cross-chain exchange, and AI trading bots that trade on your command — your keys, your desk.","url":"https://blockle.org/api/inference/infer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"tier":{"enum":["cpu","4gb","8gb","12gb","16gb","24gb","48gb","80gb"],"type":"string","description":"Alternative to `model`: the hardware/price tier."},"model":{"enum":["qwen2.5:1.5b-instruct","qwen2.5:3b-instruct","llama3.1:8b-instruct","qwen2.5:14b-instruct","qwen2.5:14b-instruct","qwen2.5:32b-instruct","llama3.1:70b-instruct","qwen2.5:72b-instruct"],"type":"string","description":"Model to use (bigger = pricier). See GET /api/inference/models."},"prompt":{"type":"string","description":"The prompt / user message."},"max_tokens":{"type":"integer","description":"Max tokens to generate (optional)."},"temperature":{"type":"number","description":"Sampling temperature (optional)."}}},"responseSchema":{"type":"object","properties":{"tier":{"type":"integer","example":2},"model":{"type":"string","description":"The model that served it."},"answer":{"type":"string","description":"The model's completion."},"servedBy":{"type":"object","description":"Which miner/backend served it."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k1RgUk6ydf5T0pL349e37","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a prompt through a hosted open-source LLM (Qwen or Llama) and returns the model's text completion, paid per-call via x402 micropayment.","exampleAgentPrompt":"Using Blockle's inference API with the qwen2.5:14b-instruct model, answer this question for me: 'What are the key differences between proof-of-work and proof-of-stake consensus mechanisms?'","exampleUseCases":[{"title":"On-demand LLM answers for crypto questions","prompt":"Use Blockle inference with the llama3.1:8b-instruct model to explain in simple terms how cross-chain bridges work and what the main security risks are."},{"title":"Large-model creative writing task","prompt":"Run this creative writing prompt through Blockle's qwen2.5:72b-instruct model with a temperature of 0.9 and max 500 tokens: 'Write an opening paragraph for a thriller novel set in a decentralized city where all identity is on-chain.'"},{"title":"Cost-conscious summarization on small tier","prompt":"Use Blockle inference on the qwen2.5:1.5b-instruct model to summarize the following meeting notes into three bullet points: [paste notes here]. I want to keep costs low so use the smallest model."}],"resultDescription":"Returns a JSON object containing the text completion in the 'answer' field, the model name that served the request, the hardware tier used (as an integer), and a 'servedBy' object identifying which backend/miner processed the request.","failureModes":["Payment failure or insufficient USDC balance causes 402 response before inference runs","Invalid or unsupported model name returns a validation error","Prompt too long for the selected model's context window causes truncation or error","Requesting a tier that is currently unavailable due to no active miners returns a service unavailable error","Malformed JSON body or missing required 'prompt' field returns 400 bad request","High temperature values may produce low-quality or incoherent completions"],"whenToPreferThis":"Choose this endpoint when you need pay-as-you-go LLM inference without a subscription, want to use open-source models (Qwen2.5 or Llama3.1 families) at a specific hardware tier, or are operating in a crypto-native / x402 micropayment environment. It's especially suitable when you want to select a specific model size or hardware tier for cost/quality trade-offs, and when custodial account management with API key subscriptions is undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:39.975Z","isFirstParty":false,"canonicalSlug":"blockle-inference-api-b8b81705"}