{"uid":"cap_yaOHWNC38SC-XElLmMmPg","slug":"farout-deepseek-v4-flash-chat-completions-via-x402-0095291d","name":"FarOut DeepSeek V4 Flash Chat Completions via x402","description":"Fixed-price chat completions for deepseek-v4-flash on FarOut: flat $0.002 per call (includes up to 4,000 input + 1,000 output tokens). Rate: $0.023/1M input tokens, $0.069/1M output tokens. Pay with USDC on Base using x402. No API key, no account, no prepaid balance.","url":"https://farouter.tech/v1/models/deepseek-v4-flash/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id from GET /v1/models, e.g. glm-5.3. No provider prefix."},"stream":{"type":"boolean","description":"SSE streaming."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","developer","user","assistant","tool"],"type":"string"},"content":{}},"additionalProperties":true},"minItems":1,"description":"Chat messages, [OI]-compatible {role, content}."},"max_tokens":{"type":"integer","minimum":1,"description":"Output token budget. Sets your spending cap; actual usage is what gets settled (true-up)."},"temperature":{"type":"number","maximum":2,"minimum":0,"description":"Sampling temperature."},"max_completion_tokens":{"type":"integer","minimum":1,"description":"Alias of max_tokens (gpt-5.x models)."}}},"responseSchema":{"type":"json","example":{"usage":{"prompt_tokens":6,"completion_tokens":8},"choices":[{"message":{"role":"assistant","content":"Hello! How can I help?"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7sncS5RiOA7jt21etSMK8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Run chat/reasoning/coding inference against DeepSeek V4 Flash (and other frontier models) with per-call USDC micropayment on Base — no API key or account required.","exampleAgentPrompt":"Ask DeepSeek V4 Flash to write a Python function that parses nested JSON and explain each step — up to 512 output tokens, temperature 0.7, paying per call with USDC on Base.","exampleUseCases":[{"title":"Autonomous agent reasoning loop","prompt":"I'm building an agent that needs to reason through multi-step tasks without me setting up accounts anywhere — use DeepSeek V4 Flash to think through this problem: 'Given a user's calendar and a list of tasks, propose an optimal schedule for tomorrow.' Give it up to 1024 tokens to think, temperature 0.3."},{"title":"Pay-per-call code generation","prompt":"Generate a TypeScript function that validates an Ethereum address and returns a checksummed version — use DeepSeek V4 Flash, max 256 tokens, temperature 0, and just pay per request with USDC so I don't need to top up any balance."},{"title":"No-account AI chat for a demo app","prompt":"My demo app needs to call an LLM for chat without managing API keys or accounts — send these messages to DeepSeek V4 Flash with a 512-token budget and stream the response back to the user."}],"resultDescription":"A JSON object containing an array of choices, each with an assistant message (role + content), a finish_reason (e.g. 'stop'), and a usage object reporting prompt_tokens and completion_tokens consumed.","failureModes":["Payment insufficient or x402 micropayment rejected — request fails before inference runs","Invalid or unsupported model ID — returns error listing valid model IDs from GET /v1/models","max_tokens too large for the model's context window — returns a validation error","Network timeout or upstream model provider outage — gateway returns 5xx","Malformed messages array (missing role or content) — schema validation error returned"],"whenToPreferThis":"Choose this endpoint when your agent needs LLM inference with zero onboarding friction — no API key, no account, no prepaid credit — and can settle per-call in USDC on Base via x402. It's ideal for autonomous agents operating in trustless environments, demo apps avoiding credential management, or workflows that want pay-as-you-go economics at $0.001/call. Prefer it over OpenAI or Anthropic direct APIs when you want crypto-native micropayment settlement or when you specifically need DeepSeek V4 Flash's reasoning/coding profile at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:39.058Z","isFirstParty":false}