{"uid":"cap_196yi8PZJlh0cHkWG-nha","slug":"quickbuild-llm-chat-api-ffb19efe","name":"QuickBuild LLM Chat API","description":"Landing pages ($15), Google Sheets/Apps Script automation ($10), scrapers, scripts & Telegram bots (from $15), broken-link + sitemap audit reports ($10). See a working demo first, pay after.","url":"https://quickbuild.quynguyenbac.workers.dev/api/chat?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"model":{"enum":["llama-3.1-8b","llama-3.2-3b","llama-3.2-1b","mistral-7b","granite-4.0-micro"],"type":"string","description":"Model alias (default llama-3.1-8b)."},"prompt":{"type":"string","description":"User message. Optional: defaults to a short sample question."},"system":{"type":"string","description":"Optional system instruction."},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}},"description":"Optional OpenAI-style history (POST JSON)."},"max_tokens":{"type":"integer","maximum":512,"minimum":1,"description":"Max output tokens (default/cap 512)."},"temperature":{"type":"number","maximum":2,"minimum":0,"description":"Sampling temperature."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"text":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"total_tokens":{"type":"integer"},"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"}}},"modelId":{"type":"string"},"finish_reason":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"text":"Pay per call. No keys. Just results.","model":"llama-3.1-8b","usage":{"total_tokens":34,"prompt_tokens":24,"completion_tokens":10},"modelId":"@cf/meta/llama-3.1-8b-instruct-fp8-fast","finish_reason":"stop"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_5aiWnwKpQcGR3MIQD8IdE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a user prompt through a small open-source LLM (Llama, Mistral, or Granite) and returns generated text, token usage, and finish reason — pay-per-call via x402.","exampleAgentPrompt":"Ask the llama-3.1-8b model: 'What are three creative names for a coffee shop that specializes in cold brew?' — keep the response under 200 tokens and use a temperature of 0.8.","exampleUseCases":[{"title":"Quick LLM answer without API key","prompt":"Can you call the QuickBuild chat endpoint with llama-3.1-8b to answer this for me: 'Summarize the differences between REST and GraphQL in two sentences.' Keep max_tokens at 150."},{"title":"Cheap prompt testing for a side project","prompt":"I want to test how mistral-7b responds to this system prompt — set the system to 'You are a pirate who only speaks in riddles' and ask 'Where is the treasure?' with temperature 1.2 and max 100 tokens."},{"title":"Automated text generation in a workflow","prompt":"For each product in my list, use llama-3.2-3b to generate a one-sentence marketing tagline — start with 'EcoBottle: a reusable stainless steel water bottle' and cap the output at 60 tokens."}],"resultDescription":"A JSON object containing the generated text string, the model alias used, the full model ID, finish reason (e.g. 'stop'), and a usage breakdown with prompt_tokens, completion_tokens, and total_tokens.","failureModes":["Missing or empty 'prompt' parameter — returns a default sample response rather than an error","Exceeding max_tokens cap of 512 — capped silently at 512","Invalid model alias — likely returns an error or falls back to default","Payment not sent (x402) — 402 response blocking the call","Temperature out of range (0–2) — may return a validation error"],"whenToPreferThis":"Choose this endpoint when you need cheap, key-free LLM text generation billed per call in USDC with no signup, and the task fits within a 512-token output window using one of the supported small open-source models (Llama 3.x, Mistral 7B, or Granite 4.0 micro). It is ideal for agents that need occasional inference without managing API keys or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:17.772Z","isFirstParty":false,"canonicalSlug":"quickbuild-llm-chat-api-ffb19efe"}