{"uid":"cap_WiIXTRqoCSs9mz8ycRXfC","slug":"openai-compatible-chat-completions-via-deepseek-scanpay-f24d09d6","name":"OpenAI-Compatible Chat Completions via DeepSeek (ScanPay)","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/v1/chat/completions?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":["messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["user","assistant","system"],"type":"string"},"content":{"type":"string","maxLength":8000}}},"maxItems":20,"minItems":1},"max_tokens":{"type":"integer","default":512,"minimum":1,"description":"Capped at 2048 tokens"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object","required":["type"],"properties":{"type":{"enum":["text","json_object"],"type":"string"}}}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-sp-0123456789abcdef","model":"deepseek-chat","usage":{"total_tokens":7,"prompt_tokens":5,"completion_tokens":2},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"created":1793462400,"_receipt":{"price_usd":0.002}}},"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_HA5uw97Y-Cd9xQe2S7p21","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":"Provides pay-per-call OpenAI-compatible LLM chat completions powered by DeepSeek, accepting messages in OpenAI format and returning standard chat completion responses (up to 2048 tokens).","exampleAgentPrompt":"Using the DeepSeek chat completions endpoint, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the concept of compound interest in two sentences' — with a max of 256 tokens and temperature 0.7, and give me the assistant's reply.","exampleUseCases":[{"title":"Agentic pipeline LLM step","prompt":"I'm building an agent that needs to call an LLM for each task step without a subscription. Use the DeepSeek-backed chat completions endpoint to send: system 'You are a task planner', user 'Break down writing a blog post into 5 steps', max 512 tokens, and return the result."},{"title":"Structured JSON extraction from text","prompt":"Call the pay-per-call LLM endpoint with response_format set to json_object, system prompt 'Extract named entities as JSON', and this user message: 'Apple Inc. was founded by Steve Jobs in Cupertino, California in 1976.' Keep max_tokens at 300."},{"title":"One-off creative writing request","prompt":"Send a single chat completion request to the DeepSeek endpoint — no subscription needed — with the user message 'Write a three-sentence product description for a reusable bamboo coffee cup' and temperature 1.2, up to 200 tokens."}],"resultDescription":"Returns a standard OpenAI-format chat.completion JSON object containing the assistant's message content, finish reason, token usage breakdown (prompt, completion, total), model name, a unique completion ID, creation timestamp, and a _receipt field with the USD price charged for the call.","failureModes":["Payment not settled via x402 — returns 402 Payment Required","Messages array empty or missing — returns 400 validation error","Content exceeds 8000 characters per message — rejected by schema","max_tokens exceeds hard cap of 2048 — silently capped or rejected","DeepSeek upstream timeout — may return 504 or partial response","Invalid role value outside enum (user/assistant/system) — 400 error","Model field specifying unsupported model — may fall back to deepseek-chat or error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible LLM inference on a strict pay-per-call basis (no subscription), especially in agentic or automated workflows where you want to pay $0.002 USDC per request via x402 micropayment. It's ideal for agents that already use the OpenAI SDK (drop-in base_url replacement), need DeepSeek-quality reasoning cheaply, or want deterministic per-call billing rather than monthly quota plans. Prefer alternatives if you need more than 2048 output tokens, streaming responses, embeddings, or function/tool calling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T14:07:58.656Z","isFirstParty":false,"canonicalSlug":"openai-compatible-chat-completions-via-deepseek-scanpay-f24d09d6"}