{"uid":"cap_mxyCd2ZWFp1IElsZNcjMI","slug":"llm-chat-completion-via-deepseek-9b46058d","name":"LLM Chat Completion via DeepSeek","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/chat?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","properties":{"prompt":{"type":"string","description":"User prompt (max 8000 chars)"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["user","assistant","system"],"type":"string"},"content":{"type":"string"}}},"description":"Conversation messages"},"max_tokens":{"type":"integer","default":300,"maximum":400,"description":"Max tokens (1-400)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"model":"deepseek-chat","reply":"Hello! How can I assist you today?","usage":{"prompt_tokens":10,"completion_tokens":20},"product":"scanpay.chat","price_usd":0.02}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZRbexTz4VN5CsBp9Yw6WQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Send a prompt or conversation messages to DeepSeek chat and receive an AI-generated text reply.","exampleAgentPrompt":"Ask DeepSeek chat to explain the difference between proof-of-work and proof-of-stake in simple terms, keeping the reply under 300 tokens.","exampleUseCases":[{"title":"On-demand Q&A for user queries","prompt":"I need you to answer a user's question: 'What are the main causes of inflation?' — use the DeepSeek chat endpoint and keep the response under 300 tokens."},{"title":"Conversational multi-turn assistant","prompt":"Continue this conversation with DeepSeek: the user said 'What is Bitcoin?' and the assistant replied 'Bitcoin is a decentralized digital currency.' Now the user is asking 'How does mining work?' — send the full message history and get the next reply."},{"title":"Automated code explanation tool","prompt":"Send this prompt to the DeepSeek LLM and get back an explanation: 'Explain what this Python function does: def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)' — limit the reply to 400 tokens."}],"resultDescription":"A JSON object containing the DeepSeek model name used, the AI-generated reply text, token usage stats (prompt and completion tokens), the product identifier ('scanpay.chat'), and the price in USD for the call.","failureModes":["Prompt exceeds 8000 character limit — request rejected","max_tokens exceeds 400 — capped or rejected","Missing required 'prompt' or 'messages' query parameter — error response","Payment failure or insufficient USDC balance — 402 Payment Required","DeepSeek upstream service unavailable — upstream error propagated"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call DeepSeek chat completion accessible via a simple GET request with no OAuth setup, especially in x402-enabled micropayment workflows. It is best for short interactions (up to 400 tokens) where cost-efficiency ($0.002/call) and simplicity matter more than long-context or high-volume generation. Prefer sibling OpenAI-compatible endpoints when you need longer responses or drop-in OpenAI API compatibility.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:04.118Z","isFirstParty":false,"canonicalSlug":"llm-chat-completion-via-deepseek-9b46058d"}