{"uid":"cap_dRohvR9u3jYn-djiusl4x","slug":"x402-text-generator-d71d1685","name":"x402 Text Generator","description":"Real LLM-backed text generation (Gemini), billed by output length (max $0.05/request)","url":"https://agentx402pay.com/api/generate?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":["prompt"],"properties":{"prompt":{"type":"string","description":"Text prompt to generate a response for"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sIjWtKQV_87aMLOo2XLn8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates text responses to arbitrary prompts using Google Gemini LLM, billed per request via x402 micropayments","exampleAgentPrompt":"Write me a short explanation of how compound interest works — use Gemini to generate the text and keep it under 150 words.","exampleUseCases":[{"title":"On-demand AI writing for agents","prompt":"I need a two-sentence product description for a wireless ergonomic keyboard targeting remote workers — can you generate that for me using Gemini?"},{"title":"Quick factual answer generation","prompt":"Use the text generator to answer this question for me: what are the main differences between proof-of-work and proof-of-stake blockchains?"},{"title":"Creative prompt completion","prompt":"Generate a short opening paragraph for a sci-fi story where humanity discovers the first alien signal is actually an advertisement."}],"resultDescription":"Returns a Gemini-generated text response to the submitted prompt. The response contains the model's completion, billed at up to $0.05 USDC per request depending on output length.","failureModes":["Missing or empty prompt query parameter returns an error","Prompt results in safety filter refusal from the underlying Gemini model","Payment via x402 fails due to insufficient wallet balance or misconfigured payment header","Request times out if the prompt generates an unusually long or complex response","Rate limiting or quota exhaustion on the upstream Gemini API"],"whenToPreferThis":"Choose this endpoint when you need LLM-generated text on a pay-per-use basis without managing your own Gemini API key or subscription. Ideal for agents that need occasional text generation as part of a larger workflow, especially within the x402 micropayment ecosystem where other agentx402pay.com tools are already being used. Prefer this over hosted LLM APIs when you want transparent per-call billing capped at $0.05 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:40:22.831Z","isFirstParty":false,"canonicalSlug":"x402-text-generator-d71d1685"}