{"uid":"cap_QQ2wyeXjXcEWuLYpWSja0","slug":"agentservices-chat-completions-e15bc1ce","name":"AgentServices Chat Completions","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/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","description":"Model ID (e.g., anthropic/claude-sonnet-4-6, google/gemini-3-pro)"},"messages":{"type":"array","description":"Chat messages [{role, content}]"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}},"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_4rTbh3XP2qbEwWjMqCWJy","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":"Provides an OpenAI-compatible chat completions endpoint powered by premium AI models (Claude, Gemini, etc.) paid via x402 micropayments on Base","exampleAgentPrompt":"Using the AgentServices completions endpoint with Claude Sonnet 4-6, generate a concise market summary for Bitcoin based on this context: 'BTC is up 5% today on high volume' — pay per call via x402 on Base.","exampleUseCases":[{"title":"Agent reasoning with Claude Sonnet","prompt":"I need my trading agent to reason about whether to rebalance my DeFi portfolio — use AgentServices to call Claude Sonnet 4-6 with the current portfolio state as context and get back a recommendation, paying per call."},{"title":"Gemini-powered content generation","prompt":"Use AgentServices with google/gemini-3-pro to write a 200-word product description for my new NFT collection based on the theme 'cyberpunk city at dawn', and charge it to my Base wallet per use."},{"title":"Per-call LLM for autonomous workflows","prompt":"My agent needs to classify customer support tickets as urgent or routine — route each one through AgentServices using Claude Sonnet at a temperature of 0.2, paying $0.03 USDC per ticket from my Base account."}],"resultDescription":"Returns an OpenAI-compatible chat completion object containing the assistant's generated message, model metadata, and token usage counts. The response follows the standard choices[].message.content structure.","failureModes":["Payment failure if x402 micropayment on Base cannot be processed or wallet has insufficient USDC","Invalid model ID returns an error indicating unsupported model","Malformed messages array (missing role or content) causes a 400-level validation error","Rate limiting or quota exhaustion on the underlying model provider side","Empty or null response if max_tokens is set too low for the prompt complexity"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call LLM inference without a subscription, particularly inside autonomous AI agents that use x402 micropayments on Base. It is ideal when you want to route to frontier models like Claude or Gemini with crypto-native billing and need OpenAI-compatible API structure for easy integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:52:10.077Z","isFirstParty":false}