{"uid":"cap_ZnVbzFh3pFInG5_EwI0bf","slug":"openai-compatible-chat-nano-deepseek-500-token-cap-39c029ed","name":"OpenAI-Compatible Chat Nano (DeepSeek, 500-token cap)","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/v1/chat/nano?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["user","assistant","system"],"type":"string"},"content":{"type":"string","maxLength":4000}}},"maxItems":20,"minItems":1},"max_tokens":{"type":"integer","default":256,"minimum":1,"description":"Capped at 500 tokens"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object","required":["type"],"properties":{"type":{"enum":["text","json_object"],"type":"string"}}}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-sp-0123456789abcdef","model":"deepseek-chat","usage":{"total_tokens":7,"prompt_tokens":5,"completion_tokens":2},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"created":1793462400,"_receipt":{"price_usd":0.002}}},"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_jnOKmmCFuuU9XpCqOqR1w","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":"Pay-per-call OpenAI-compatible LLM chat completion powered by DeepSeek, capped at 500 output tokens per request.","exampleAgentPrompt":"Ask the DeepSeek nano chat endpoint: given the system message 'You are a concise assistant', send the user message 'What is the capital of France?' with temperature 0.7 and return plain text — keep the response under 100 tokens.","exampleUseCases":[{"title":"Lightweight agent reasoning step","prompt":"Use the nano chat endpoint to reason through this step: system prompt is 'You are a JSON-only responder', user message is 'List three pros of solar energy as a JSON array', set response_format to json_object and max_tokens to 200."},{"title":"Quick fact lookup for a bot","prompt":"Send this to the DeepSeek nano chat: user message 'In one sentence, who wrote Pride and Prejudice?', temperature 0, max_tokens 50 — I just need the fast, cheap answer."},{"title":"Agent prompt classification","prompt":"Run this through the nano LLM: system message 'Classify the following user input as one of: question, command, or statement. Reply with only the label.', user message 'Turn off the lights in the living room', temperature 0 and max_tokens 10."}],"resultDescription":"Returns an OpenAI-formatted chat.completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), prompt/completion/total token counts, a model name ('deepseek-chat'), a completion ID, a Unix timestamp, and a _receipt object with the price paid in USD. Token output is capped at 500.","failureModes":["Missing or empty messages array returns a 400 validation error","messages content exceeding 4000 characters per message is rejected","max_tokens above 500 is silently capped or rejected","Payment not settled via x402 returns 402 Payment Required","Malformed response_format object causes a 400 error","Model field ignored or overridden by backend; specifying unsupported model names may be silently ignored","Network timeout on the Cloudflare Worker edge node","Rate limiting if too many calls are made in quick succession"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call, OpenAI-compatible LLM inference call without managing API keys or subscriptions — ideal for agent pipelines that make occasional short completions (under 500 tokens), need x402 micropayment settlement, or want DeepSeek-quality inference billed at $0.002 per call. Prefer alternatives when you need longer outputs (500+ tokens), streaming, function calling, embeddings, or image inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T14:07:55.655Z","isFirstParty":false,"canonicalSlug":"openai-compatible-chat-nano-deepseek-500-token-cap-39c029ed"}