OpenAI-compatible chat nano

OpenAI-compatible nano LLM chat completion and llm inference via DeepSeek (up to 500 tokens).

Price: $0.002 per call · USDC on Base (eip155:8453) or Solana · no signup, no API key.

Request

{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 256}

Response (shape)

{"id": "chatcmpl-sp-0123456789abcdef", "object": "chat.completion", "created": 1793462400, "model": "deepseek-chat", "choices": [{"index": 0, "message": {"role": "assistant", "content": "Hello!"}, "finish_reason": "stop"}], "usage": {"prompt_tokens": 5, "completion_tokens": 2, "total_tokens": 7}, "_receipt": {"price_usd": 0.002}}

Call it

curl "https://scanpay-edge.alextaghiashvili.workers.dev/v1/chat/nano" -H 'Content-Type: application/json'  -H 'PAYMENT-SIGNATURE: <x402 payment header>'   -d '{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 256}'

Quickstart (TypeScript / Python) · llms.txt · catalogue.json · all tools