{"uid":"cap_S1rpNZa6EP8za9fBWpH5C","slug":"telnyx-inference-deepseek-v4-flash-0731-chat-completions-large-82ad54e2","name":"Telnyx Inference – DeepSeek-V4-Flash-0731 Chat Completions (Large Context, Metered)","description":"Chat completions via Telnyx Inference (deepseek-ai/DeepSeek-V4-Flash-0731). OpenAI-compatible. $0.005214 USDC per call. (upto metered — large context)","url":"https://x402.telnyx.com/v1/chat/completions/_t/deepseek-v4-flash-0731/upto?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Fixed to one completion per paid call."},"model":{"type":"string","const":"deepseek-ai/DeepSeek-V4-Flash-0731","description":"Model identifier; fixed to deepseek-ai/DeepSeek-V4-Flash-0731 on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string","maxLength":900000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":8192,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.041977","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.041977/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.041977","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.041977","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lFcH0Poyxjnft4xRsnJbZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.041977","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-Flash-0731 on Telnyx's inference infrastructure, billed per call for large/metered context usage","exampleAgentPrompt":"Using the DeepSeek-V4-Flash-0731 model on Telnyx, send a chat completion with a system prompt that says 'You are a helpful assistant' and a user message asking 'Explain quantum entanglement in simple terms', with a max of 512 tokens and temperature 0.7.","exampleUseCases":[{"title":"Automated customer support reply drafting","prompt":"Use DeepSeek-V4-Flash on Telnyx to draft a reply to this customer complaint — system prompt: 'You are a polite customer service agent', user message: 'My order arrived broken and I need a refund immediately.' Keep the response under 200 tokens."},{"title":"Code explanation for developer tooling","prompt":"Ask DeepSeek-V4-Flash-0731 via Telnyx to explain what this Python function does — system: 'You are an expert software engineer', user: 'Explain this code: def fib(n): return n if n<=1 else fib(n-1)+fib(n-2)'. Max 300 tokens, temperature 0."},{"title":"Tool-calling agent for structured data extraction","prompt":"Send a chat request to DeepSeek-V4-Flash on Telnyx with a tool definition for extracting name, date, and amount from invoices, and the user message: 'Invoice #4421 from Acme Corp dated 2025-06-15 for $1,340.00' — use temperature 0 and max 512 tokens."}],"resultDescription":"Returns an OpenAI-compatible chat completion response containing the assistant's generated message, finish reason, token usage counts, and optionally tool call objects if tools were provided in the request.","failureModes":["Payment failure if x402 USDC payment is rejected or insufficient — returns 402 Payment Required","Context length exceeded if messages exceed 900,000 characters — request is rejected","Invalid model identifier if model field is changed from the fixed value — returns 422 or 400","Rate limiting or capacity errors — returns 429 or 503","Malformed messages array (missing role or content) — returns 400 validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cost-effective OpenAI-compatible chat completion using DeepSeek-V4-Flash-0731 with support for large context inputs (up to 900K characters per message), tool/function calling with up to 16 tools, and pay-per-call USDC billing via x402 — especially when running agentic workflows that require metered, unpredictable usage volumes without subscription commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:37.164Z","isFirstParty":false,"canonicalSlug":"telnyx-inference-deepseek-v4-flash-0731-chat-completions-large-82ad54e2"}