{"uid":"cap_C4o8y1yqAfpl7sEpEUkKh","slug":"model-access-gateway-deepseek-v4-pro-chat-completions-bc8c4784","name":"Model Access Gateway – DeepSeek V4 Pro Chat Completions","description":"LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.","url":"https://agent402-arb.rosariovitale0096.workers.dev/llm/deepseek-v4-pro?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (deepseek/deepseek-v4-pro)"},"tools":{"type":"array"},"stream":{"type":"boolean","description":"true: server-sent events after payment"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool","developer"],"type":"string"},"content":{"type":["string","array","null"]}}},"minItems":1},"max_tokens":{"type":"integer","maximum":16384,"minimum":1,"description":"Optional, default 4096"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-7f3c2a91","model":"deepseek/deepseek-v4-pro","usage":{"total_tokens":10,"prompt_tokens":9,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"OK"},"finish_reason":"stop"}],"created":1791979200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0014","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.0014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kuLX7mjm5BsXHmogPDQi1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible chat completions using DeepSeek V4 Pro, billed per-request in USDC on Base via x402 with no account or API key required.","exampleAgentPrompt":"Send the message 'Summarize the key differences between transformer and diffusion models' to DeepSeek V4 Pro and give me the response — pay with USDC on Base, no API key needed.","exampleUseCases":[{"title":"Autonomous agent LLM reasoning step","prompt":"I need you to call DeepSeek V4 Pro with this system prompt: 'You are a concise legal summarizer' and user message: 'Summarize this clause: The licensor grants a non-exclusive, royalty-free license...' — pay per call in USDC on Base."},{"title":"Crypto-native chatbot backend","prompt":"For my Web3 app, hit the DeepSeek V4 Pro chat endpoint with the user's question 'What is EIP-4844?' and return the answer — I want to pay per inference in USDC, no subscriptions."},{"title":"Code generation without API subscription","prompt":"Ask DeepSeek V4 Pro to write a Python function that parses a CSV and computes column averages, then return the code — use the x402 pay-per-call gateway so I don't need to set up an account."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's message content, role, finish reason, model name, token usage (prompt, completion, total), a completion ID, and a created timestamp.","failureModes":["Insufficient USDC balance causes 402 Payment Required before request is processed","Malformed request body missing required 'messages' field returns 400 Bad Request","Model overload or worker timeout may return 503 or 504","Invalid x402 payment header causes authentication failure","DeepSeek upstream outage propagates as 502 Bad Gateway"],"whenToPreferThis":"Choose this endpoint when you need DeepSeek V4 Pro specifically, want OpenAI-compatible chat completions without managing API keys or subscriptions, and can pay per call in USDC on Base via the x402 protocol — ideal for autonomous agents or crypto-native apps that need per-inference billing with no account setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:34:11.128Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-deepseek-v4-pro-chat-completions-bc8c4784"}