Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.chipipay.com/llms.txt

Use this file to discover all available pages before exploring further.

1. Get your API key

Go to dashboard.chipipay.com, create an org, and copy your API key from the Credentials page.

2. Make your first call

curl -X POST https://api.chipipay.com/v1/ai/chat \
  -H "Authorization: Bearer sk_prod_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [{"role": "user", "content": "What is Starknet?"}]
  }'

3. Stream a response

For chatbots and real-time UIs, use the streaming endpoint — same request body, token-by-token delivery via SSE:
curl -N -X POST https://api.chipipay.com/v1/ai/chat/stream \
  -H "Authorization: Bearer sk_prod_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "haiku", "messages": [{"role": "user", "content": "Tell me a joke"}]}'

4. Buy credits

AI calls debit from your org’s credit balance. Buy a credit pack (2/2 / 5 / 25/25 / 50 / $100) at dashboard.chipipay.com/configure/billing by sending USDC. $5 gets you ~50,000 calls with gpt-4o-mini or ~700 calls with haiku.

Auth

Two options — both work on all AI endpoints, no JWKS setup needed:
MethodHeaderBest for
Secret keyAuthorization: Bearer sk_prod_...Server-side (backend, agent)
Public keyx-api-key: pk_prod_...Client-side (browser, mobile)
Never put sk_ keys in client-side code. Use pk_ for browser/mobile apps.

What you can build

Use caseEndpointCost
Chatbot / code assistantPOST /ai/chatPer token
Real-time streaming UIPOST /ai/chat/streamPer token
DeFi portfolio advisorPOST /ai/thinkPer token
Swap executionPOST /ai/execute$0.002/call
Token prices for walletsGET /ai/pricesFree
Market signals for agentsGET /ai/signals$0.0005/call

Next