{"uid":"cap_VXwvgxVAjrU9cL0XeW6BU","slug":"taifoon-deepseek-v4-flash-chat-completion-569f4f50","name":"Taifoon DeepSeek-V4-Flash Chat Completion","description":"OpenAI-compatible chat completion on deepseek-ai/DeepSeek-V4-Flash, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 3 % reseller cut: 0.0927 / 0.1854 USD per 1M tokens in/out. This request is priced at its prompt and max_tokens. The answer is checked before you are charged.","url":"https://coord.taifoon.dev/v1/chat/completions/deepseek-v4-flash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct","deepseek-ai/DeepSeek-V4-Flash","deepseek-v4-flash","openai/gpt-oss-120b","openai-gpt-oss-120b","meta-llama/Llama-3.3-70B-Instruct","Qwen/Qwen2.5-72B-Instruct","deepseek-ai/DeepSeek-V3.2","deepseek-v3.2","z-ai/glm-5.3-flash","Qwen/Qwen3-VL-30B-A3B-Instruct","Qwen/Qwen3-235B-A22B-Instruct-2507"],"description":"optional; one of the 22 models this wall delivers (GET lists them under terms.models); without it nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 answers"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"maxItems":32,"minItems":1},"max_tokens":{"type":"integer","maximum":700,"minimum":1}}},"responseSchema":null,"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_X8g_0o0N9m2eXpXx4eQcv","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 an OpenAI-compatible chat completion request against DeepSeek-V4-Flash via DeepInfra serverless inference, billed per call through Taifoon's x402 payment wall.","exampleAgentPrompt":"Ask DeepSeek-V4-Flash to summarize the following text in 3 bullet points, using up to 300 tokens: 'Quantum computing leverages superposition and entanglement to perform calculations exponentially faster than classical computers for certain problem classes.'","exampleUseCases":[{"title":"Quick LLM answer for agent pipeline","prompt":"Use DeepSeek-V4-Flash to answer this user question in under 200 tokens: 'What are the main differences between supervised and unsupervised learning?'"},{"title":"Draft a short marketing tagline","prompt":"Have DeepSeek-V4-Flash write three punchy one-line taglines for a fintech startup called 'LedgerLeap' that helps freelancers track invoices — keep the reply under 150 tokens."},{"title":"Classify sentiment of customer feedback","prompt":"Send this customer review to DeepSeek-V4-Flash and ask it to classify the sentiment as positive, negative, or neutral in at most 100 tokens: 'Delivery was late but the product quality exceeded my expectations.'"}],"resultDescription":"An OpenAI-compatible chat completion JSON object containing the assistant's generated message, finish reason, token usage counts (prompt tokens, completion tokens, total tokens), and model metadata. The answer is validated before the call is charged.","failureModes":["Exceeds max_tokens cap of 700 — request rejected or truncated","Invalid or unsupported model string — falls back to default model or returns error","messages array empty or missing required role/content fields — 422 validation error","Payment failure via x402 — charge not completed, no response returned","Rate limit or DeepInfra backend unavailability — 503 or timeout","Context too long for model's window — upstream inference error"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap DeepSeek-V4-Flash inference through an OpenAI-compatible interface without managing your own API keys or self-hosted infrastructure, especially in agentic pipelines that already support x402 micropayment headers. It is well-suited for short-to-medium completions (max 700 tokens output) where per-call pay-as-you-go pricing at ~$0.001 is preferable to subscription-based alternatives. Prefer it over the generic multi-model Taifoon endpoint when you specifically want DeepSeek-V4-Flash semantics and pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:15.040Z","isFirstParty":false,"canonicalSlug":"taifoon-deepseek-v4-flash-chat-completion-569f4f50"}