{"uid":"cap_CQ-mjR1zfbO_c4KtJh2d0","slug":"redqueen-serving-deepseek-v4-flash-chat-completions-0db6478b","name":"RedQueen Serving - DeepSeek V4 Flash Chat Completions","description":"DeepSeek V4 Flash: fast general chat, tools, reasoning and JSON output.","url":"https://api.redqueen-serving.cloud/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["Qwen3.8-27B-abliterated"],"type":"string"},"tools":{"type":"array"},"stream":{"enum":[false],"type":"boolean"},"messages":{"type":"array","minItems":1},"max_tokens":{"type":"integer","minimum":1},"temperature":{"type":"number"},"response_format":{"type":"object"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tFonyxw9sR-5LAm8FCJW4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs fast LLM chat completions with tool use, reasoning, and structured JSON output across multiple model variants including DeepSeek and Qwen families.","exampleAgentPrompt":"Using the DeepSeek-V4-Flash model, chat with me: given the message 'Summarize the key benefits of transformer architectures', respond with up to 512 tokens at temperature 0.7 and return the reply as plain text.","exampleUseCases":[{"title":"Structured data extraction from text","prompt":"Use DeepSeek-V4-Flash to extract the company name, date, and total amount from this invoice text and return it as JSON: 'Invoice from Acme Corp, dated March 15 2025, total due $4,320.00'. Set max_tokens to 200 and use a JSON response format."},{"title":"Agent tool-calling backend","prompt":"I'm building an AI agent that needs to decide which tool to call — use the DeepSeek-V4-Flash model with my tools array including 'search_web' and 'send_email', and pass the user message 'Find the latest AAPL stock price and email it to me' so the model can pick the right function."},{"title":"Step-by-step reasoning for a math problem","prompt":"Ask DeepSeek-V4-Flash to reason through this problem step by step: 'If a train travels 120 km at 60 km/h and then 80 km at 40 km/h, what is the average speed for the whole journey?' — use temperature 0 and up to 1024 tokens."}],"resultDescription":"Returns a chat completion object with an assistant message containing generated text, optional tool call invocations, or structured JSON output depending on the request. Includes model name, finish reason, and token usage counts.","failureModes":["Invalid or unsupported model name in enum causes 400 error","stream: true is not supported — only stream: false is accepted","Empty messages array (minItems:1 violated) causes validation error","Payment not processed or insufficient USDC balance causes 402 response","Exceeding context length or max_tokens limit may cause truncation or error","Malformed response_format object causes unpredictable output or error"],"whenToPreferThis":"Choose this endpoint when you need fast, low-cost LLM inference with OpenAI-compatible chat completions and want access to DeepSeek or Qwen model families without managing infrastructure. It is especially useful for agents needing tool/function calling, structured JSON responses, or multi-step reasoning at $0.01 per call. Prefer it over hosted OpenAI or Anthropic when cost per call matters and the x402 micropayment pattern fits your stack.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T23:47:21.000Z","isFirstParty":false,"canonicalSlug":"redqueen-serving-deepseek-v4-flash-chat-completions-0db6478b"}