{"uid":"cap_2Ec4jJvd8BKg-0eqBNWFe","slug":"agishub-llm-chat-4270caf3","name":"AGISHub LLM Chat","description":"Ask a general-purpose LLM a question or give it an instruction, with an optional system prompt. No external API key required.","url":"https://api.agishub.com/v1/chat","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"enum":["http"],"type":"string"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","minLength":1,"description":"The user's message or question for the assistant."},"system":{"type":"string","description":"Optional system instruction to steer the assistant's behaviour/persona."},"max_tokens":{"type":"integer","maximum":2048,"minimum":0,"description":"Maximum tokens to generate (default 512).","exclusiveMinimum":true}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"result":"Ask a general-purpose LLM a question or give it an instruction, with an optional system prompt. No external API key requ"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w-gkjKkgSf5sFxQI4UMeh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a prompt (and optional system instruction) to a general-purpose LLM and returns a text response, with no external API key required.","exampleAgentPrompt":"Ask the AI: 'Explain the difference between supervised and unsupervised learning in simple terms' — use a system prompt of 'You are a friendly teacher who explains concepts clearly' and limit the response to 300 tokens.","exampleUseCases":[{"title":"On-demand fact answering in agent pipeline","prompt":"I need you to ask an AI: 'What are the main causes of the French Revolution?' — keep the answer under 200 tokens and use a system prompt that says 'You are a concise historian.'"},{"title":"Automated draft generation for emails","prompt":"Have the AI write a polite follow-up email to a client who hasn't responded in two weeks — use the system prompt 'You are a professional business writer' and allow up to 400 tokens."},{"title":"Code explanation for non-technical users","prompt":"Send this snippet to the AI and ask it to explain what it does in plain English: 'for i in range(10): print(i**2)' — use a system prompt that says 'Explain code to a non-programmer' and limit output to 150 tokens."}],"resultDescription":"A JSON object with a 'result' field containing the LLM's generated text response to the prompt, up to the specified max_tokens limit (default 512).","failureModes":["Missing required 'prompt' parameter returns an error","max_tokens set to 0 or exceeding 2048 causes a validation error","Ambiguous or very long prompts may result in truncated or low-quality responses","Payment not fulfilled (x402) causes a 402 response before the LLM is called","Network timeouts if the LLM takes too long to respond"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call LLM text generation without managing your own API keys or subscriptions — ideal for agent pipelines that need occasional AI responses, prototyping, or cost-controlled one-off queries. Prefer this over self-hosted or subscription-based LLM APIs when you want zero credential management and micro-payment billing via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:46:41.290Z","isFirstParty":false}