{"uid":"cap_ktO7IbauQxiWMpcyNjxTa","slug":"model-access-gateway-deepseek-v4-pro-chat-completions-x402-usdc-528befa1","name":"Model Access Gateway – DeepSeek V4 Pro Chat Completions (x402 USDC)","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://modelaccessgateway.com/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_2eGt4GboNRcFDHn_H24kZ","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 against DeepSeek V4 Pro, billed per call in USDC on Base via x402 — no account or API key required.","exampleAgentPrompt":"Ask DeepSeek V4 Pro to write a concise explanation of transformer attention mechanisms, streaming the response, and pay for it per-call in USDC using the Model Access Gateway — no API key needed.","exampleUseCases":[{"title":"Agent-to-agent reasoning on demand","prompt":"I need you to call DeepSeek V4 Pro via Model Access Gateway to reason through this multi-step logic puzzle and return a step-by-step answer — pay per call in USDC, no API key, stream the response."},{"title":"Code generation without API subscription","prompt":"Use the pay-per-call DeepSeek V4 Pro endpoint on Model Access Gateway to generate a Python function that parses nested JSON — max 2048 tokens, temperature 0.2, no account required."},{"title":"Structured JSON output for data extraction","prompt":"Send this product description to DeepSeek V4 Pro through Model Access Gateway and have it return structured JSON with fields for name, price, and features — pay micro in USDC, response_format as JSON object."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object with the assistant's message content, finish_reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model identifier, and a unique completion ID. Streaming mode delivers server-sent events per token after payment settles.","failureModes":["Payment insufficient or x402 flow fails — no completion returned, automatic refund issued","Model unavailable or overloaded — gateway returns error, refund triggered","Invalid messages array (empty or missing role) — 400 validation error","max_tokens exceeds 16384 — schema validation rejection","Temperature out of 0–2 range — request rejected","Network timeout during streaming — partial stream, no refund guarantee"],"whenToPreferThis":"Choose this endpoint when you need DeepSeek V4 Pro specifically — known for strong reasoning and coding — without committing to an API subscription or managing credentials. Ideal for autonomous agents that need to pay per inference call on-chain in USDC via x402 on Base, especially in serverless or ephemeral contexts where storing API keys is impractical. Prefer over direct DeepSeek API when you want automatic refunds on model failure and zero account setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:35:11.198Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-deepseek-v4-pro-chat-completions-x402-usdc-528befa1"}