{"uid":"cap_qtgXmE6HDeTe_FrLBmCnt","slug":"agentbit-llm-completion-d0b4f5e8","name":"AgentBit LLM Completion","description":"General LLM completion: send a prompt (optional system role), get an answer. Reason, rewrite, classify, draft or answer. Flat price, input/output capped.","url":"https://agentbit.app/v1/ai/ask?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"The user prompt (required, up to ~16 KB)."},"system":{"type":"string","description":"Optional system instruction to steer style/role."},"max_tokens":{"type":"integer","description":"Max output tokens (default 512, hard cap 1024)."},"temperature":{"type":"number","description":"Sampling temperature 0-2 (default 0.3)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ITd-vGJqfQA6M2osAFHgw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Send a text prompt (with optional system role) and receive an LLM-generated answer for reasoning, drafting, classification, or rewriting tasks.","exampleAgentPrompt":"Ask the LLM: 'You are a formal business writing assistant' — then complete this prompt with max 800 tokens: 'Rewrite the following customer complaint email in a calm, professional tone: [email text here].'","exampleUseCases":[{"title":"Classify customer support ticket","prompt":"Classify this support message as one of: billing, technical, account, or general — then give a one-sentence reason. Message: 'I was charged twice for my subscription last month and I can't find a way to contact anyone.'"},{"title":"Draft marketing copy from brief","prompt":"Using the system role 'You are a concise copywriter for SaaS products', write a 3-sentence product tagline for a project management tool called Flowdesk that targets remote teams. Keep it under 150 tokens."},{"title":"Reason through a logic problem","prompt":"I need you to reason step by step through this problem and give me the final answer: if a train leaves at 9am traveling at 80 mph and another leaves at 10am going 100 mph in the same direction, when does the second train overtake the first?"}],"resultDescription":"Returns a generated text string that is the LLM's completion of the submitted prompt. The response is shaped by the optional system instruction, capped at the specified max_tokens (default 512, hard limit 1024), and sampled at the given temperature. Useful for answers, rewrites, classifications, drafts, or reasoning outputs.","failureModes":["Prompt exceeds ~16 KB input limit — request rejected","max_tokens exceeds hard cap of 1024 — capped or rejected","Temperature out of 0–2 range — validation error","Payment not included or insufficient — 402 Payment Required","LLM returns truncated output if max_tokens is too low for the task","Ambiguous or malformed prompt may produce low-quality completion"],"whenToPreferThis":"Choose this endpoint when you need a flat-rate, pay-per-call LLM completion without managing API keys, billing accounts, or model selection. Ideal for agents that need occasional text generation, classification, or reasoning steps billed in USDC microtransactions. Best when the task fits within the 1024-token output cap and the user does not need streaming or fine-tuned model selection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:34:56.247Z","isFirstParty":false,"canonicalSlug":"agentbit-llm-completion-d0b4f5e8"}