{"uid":"cap_tHN0dbHodjF5QrbODUcxI","slug":"locus-x402-deepseek-chat-api-6fff0f27","name":"Locus x402 DeepSeek Chat API","description":"Locus public pay-per-use API","url":"https://deepseek.x402.stage.paywithlocus.com/deepseek/chat","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stop":{"type":"string"},"model":{"type":"string"},"top_p":{"type":"number"},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"name":{"type":"string"},"role":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","required":["type"],"properties":{"text":{"type":"string"},"type":{"type":"string"},"image_url":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}},{"type":"null"}]},"tool_calls":{"type":"array","items":{"type":"object","additionalProperties":true}},"tool_call_id":{"type":"string"}},"additionalProperties":true}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}}},"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_hi9O92NZg0VnkqGSpF47t","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":"Pay-per-use DeepSeek LLM chat completions endpoint billed via x402 micropayments at $0.001 USDC per call","exampleAgentPrompt":"Use the Locus x402 DeepSeek chat endpoint with the deepseek-v4-flash model to answer this question: 'What are three key differences between REST and GraphQL?' — keep the response under 300 tokens and use a temperature of 0.7.","exampleUseCases":[{"title":"On-demand LLM for autonomous agent","prompt":"Call the Locus x402 DeepSeek API using deepseek-v4-pro with a system prompt saying 'You are a helpful legal research assistant' and ask it to summarize the key points of contract law in under 500 tokens — pay per use so I don't need a subscription."},{"title":"Code generation with metered billing","prompt":"Using the DeepSeek x402 pay-per-use chat endpoint, ask the deepseek-v4-flash model to write a Python function that parses a CSV file and returns a list of dictionaries — set max_tokens to 400 and temperature to 0.3 for more deterministic output."},{"title":"Multi-turn conversation for customer support bot","prompt":"Send a conversation history to the Locus x402 DeepSeek chat API — use deepseek-v4-flash, include the system message 'You are a friendly customer support agent for an e-commerce store', and a user asking about their refund status, keeping the reply under 200 tokens."}],"resultDescription":"Returns a chat completion response containing the assistant's generated message text, produced by the selected DeepSeek model (deepseek-v4-flash or deepseek-v4-pro), bounded by the specified max_tokens limit. The response follows standard OpenAI-compatible chat completion format.","failureModes":["Payment failure — insufficient USDC balance or x402 authorization rejected, resulting in 402 Payment Required","Invalid model name — if a model other than deepseek-v4-flash or deepseek-v4-pro is specified, request will fail","Missing max_tokens — this field is required to bound metered authorization; omitting it will cause rejection","Streaming requested — streaming is not supported; setting stream:true will result in an error","Token limit exceeded — requesting more than 384000 max_tokens will be rejected","Malformed messages array — incorrect role values or missing content fields will cause validation errors"],"whenToPreferThis":"Choose this endpoint when you need DeepSeek LLM chat completions on a true pay-per-use basis via x402 micropayments in USDC, especially for agent workflows where subscription billing is impractical. Prefer deepseek-v4-flash for cost-sensitive, high-throughput tasks and deepseek-v4-pro for higher-quality outputs. Best suited for agents that need to make occasional or unpredictable numbers of LLM calls without committing to a monthly plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:40.429Z","isFirstParty":false}