OpenAI-compatible chat completions

OpenAI-compatible LLM chat completions and llm inference via DeepSeek (up to 2048 tokens); drop-in OpenAI base_url.

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": 512}

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/completions" -H 'Content-Type: application/json'  -H 'PAYMENT-SIGNATURE: <x402 payment header>'   -d '{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 512}'

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