{"uid":"cap_0V2Qo4ky1db7XJ4MnATAu","slug":"arch-tools-ai-generate-f3219020","name":"Arch Tools AI Generate","description":"AI text generation via Claude. Prompt in, polished text out - drafting, rewriting, extraction and reasoning for agents. Pay per call with USDC (x402) or credits - archtools.dev","url":"https://archtools.dev/v1/tools/ai-generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["claude","gpt4","grok","gemini"],"type":"string","default":"claude","description":"AI model to use"},"prompt":{"type":"string","description":"The prompt or question"},"system":{"type":"string","description":"System prompt / persona"},"max_tokens":{"type":"integer","default":1024}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gy_32fN4j1ZwtmRAl4MJk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a prompt to an AI model (defaulting to Claude) and returns a generated text response, billed per-call in USDC on Base.","exampleAgentPrompt":"Use the Claude model to generate a response to this prompt: 'Write a concise executive summary of the benefits of renewable energy for a business audience', with a system prompt of 'You are a professional business writer' and a max of 512 tokens.","exampleUseCases":[{"title":"AI-drafted customer reply","prompt":"Generate a polite, empathetic customer support reply using Claude with the system prompt 'You are a friendly customer support agent' for this message: 'My order arrived damaged and I want a refund.' Keep it under 200 tokens."},{"title":"On-demand content generation in a pipeline","prompt":"I need you to generate a product description for 'EcoSip Bamboo Water Bottle' using Claude — keep the tone upbeat and sustainability-focused, system prompt 'You are a creative product copywriter', max 300 tokens."},{"title":"Automated Q&A answering bot","prompt":"Ask Claude: 'What are the top 5 Python libraries for data science and what is each used for?' — use no special system prompt and limit the response to 800 tokens."}],"resultDescription":"A JSON object containing the AI model's generated text response to the supplied prompt, shaped by any provided system prompt and constrained by the max_tokens limit.","failureModes":["Missing required 'prompt' field returns a 400 validation error","Payment failure or insufficient USDC balance results in a 402 Payment Required response","Invalid or unsupported model name may fall back to default or return an error","Exceeding token limits or rate limits may result in truncated output or 429 errors","Network timeouts on long completions if max_tokens is very large"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call AI text generation without managing API keys or model subscriptions — ideal for agent pipelines that need occasional LLM inference billed transparently in USDC on Base. Prefer it over direct Anthropic API calls when you want x402 micropayment billing and don't want to manage authentication credentials. Best suited for lightweight, single-turn prompt-response tasks rather than multi-turn conversation management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:02.963Z","isFirstParty":false}