Skip to main content
Base URL: https://api.chipipay.com/v1

When to use each

What you can build

  • Customer support bot/chat/stream for real-time replies, /chat for classification/routing behind the scenes
  • Code assistant/chat/stream so developers see code being written line by line
  • Transaction summarizer/chat to batch-summarize wallet activity on your backend
  • AI-powered search/chat to rerank results or generate answers from your data
  • DeFi copilot UI/chat/stream for the conversational layer, pair with /think for portfolio decisions
  • Telegram/Discord bot/chat for simple Q&A, /chat/stream if the platform supports progressive message edits
  • Content generation/chat to generate descriptions, emails, or marketing copy

POST /ai/chat

General-purpose AI. Any prompt, any model. Powers chatbots, code assistants, finance apps. Cost: Per token (varies by model — see Models & Pricing)

Request body

Response fields


POST /ai/chat/stream

Streaming version of /ai/chat. Returns Server-Sent Events (SSE) with token-by-token text deltas. Ideal for chatbots and real-time UIs. Cost: Same as /ai/chat — per token, debited after stream completes. Same request body as /ai/chat. Same models, same auth.

SSE event format

The completion event includes model, provider, usage, and cost — same fields as the synchronous response. Credits are debited when this event fires.

Error handling