{"uid":"cap_3LcgQK7qSUTS3Zd5GP18d","slug":"deepseek-v4-1-flash-chat-completions-via-agent402-x402-c169c211","name":"DeepSeek V4.1 Flash Chat Completions via Agent402 (x402)","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.1-flash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (deepseek/deepseek-v4.1-flash)"},"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.1-flash","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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LRceJ80g-i7Cqlt800ZUx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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.1 Flash, billed per-request in USDC via x402 with no account or API key required.","exampleAgentPrompt":"Using the pay-per-request DeepSeek V4.1 Flash model — no API key needed, just pay in USDC — complete this chat: system says 'You are a helpful assistant' and the user asks 'What is the capital of France?'","exampleUseCases":[{"title":"On-demand summarization without API accounts","prompt":"Summarize this article for me using DeepSeek V4.1 Flash — I don't want to set up an API account, just pay per call in USDC: 'The European Central Bank raised interest rates again this quarter citing persistent inflation…'"},{"title":"Agent-to-agent LLM inference with crypto billing","prompt":"My autonomous agent needs to call a fast language model to classify customer intent from this message: 'I want to cancel my subscription.' Use the DeepSeek Flash endpoint and pay per request in USDC on Base."},{"title":"Rapid prototyping without signing up","prompt":"I want to test a quick prompt without creating any accounts — use DeepSeek V4.1 Flash with x402 micropayment to answer: 'Give me 5 creative names for a coffee shop that specializes in cold brew.'"}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply message, finish reason, token usage breakdown (prompt, completion, total tokens), model name, and a unique completion ID.","failureModes":["402 Payment Required if USDC payment is missing or insufficient","invalid or malformed request body yields a 400 error","model unavailable or overloaded may return 503","malformed chat message structure causes schema validation failure","network timeout on the Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap DeepSeek V4.1 Flash inference with no API key or account registration — ideal for autonomous agents that hold USDC on Base and want to pay per call using the x402 protocol. Prefer it over OpenAI or Anthropic APIs when you want crypto-native, permissionless LLM access billed in stablecoin micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:33:56.938Z","isFirstParty":false,"canonicalSlug":"deepseek-v4-1-flash-chat-completions-via-agent402-x402-c169c211"}