{"uid":"cap_22LFmv8d-AgA-AAG7fxT8","slug":"agentservices-llm-completion-api-2929ef3f","name":"AgentServices LLM Completion API","description":"Paid data APIs for AI agents. Crypto market data, DeFi yields, IP geolocation, dispute resolution, marketing intelligence. Powered by x402 micropayments on Base.","url":"https://agentservices.to/v1/complete","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"model":{"type":"string"},"prompt":{"type":"string"},"max_tokens":{"type":"integer"}}},"responseSchema":{},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uEXmCggMDsz3yB0Fp8zGi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","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 LLM and returns a completion response, billed per-call via x402 micropayments on Base","exampleAgentPrompt":"Complete this prompt for me using AgentServices: 'Summarize the key risks of investing in DeFi protocols in 3 bullet points' — use up to 300 tokens.","exampleUseCases":[{"title":"Agent-to-LLM pay-per-call inference","prompt":"I need you to call an LLM with this prompt: 'Draft a one-paragraph executive summary of Q3 crypto market trends' — use up to 200 tokens and pay per call with USDC."},{"title":"DeFi research question answering","prompt":"Ask the AgentServices LLM: 'What are the top risks of providing liquidity on a DEX?' and give me back the answer — limit the response to 150 tokens."},{"title":"Automated content generation in a pipeline","prompt":"In my agent workflow, generate a short product description for a new DeFi yield aggregator tool — send the prompt to AgentServices with a max of 250 tokens."}],"resultDescription":"Returns an LLM-generated text completion based on the submitted prompt, optionally constrained by model choice and max_tokens. The response body structure is unspecified but expected to contain the generated text output.","failureModes":["Payment failure if USDC balance is insufficient or x402 payment is rejected","Missing required 'prompt' field returns a 400 validation error","Invalid model name may result in a 400 or 422 error","Max token limits exceeded by model may truncate or error the response","Service unavailability returns 5xx errors","Empty or malformed prompt may produce low-quality or empty completions"],"whenToPreferThis":"Choose this endpoint when your agent needs pay-per-call LLM text generation without a subscription, especially in crypto-native or DeFi-adjacent pipelines that already use x402 micropayments on Base. It is ideal for agents that need to call an LLM sporadically and want to pay in USDC rather than manage API keys or monthly billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:39:44.505Z","isFirstParty":false}