Chat API
Create a Spicy AI key, buy credits on this site, then call chat from your own app. Billing matches in-site chat: 1 credit per 1,000 tokens, minimum 1 credit per request.
0 / 5 keys
No Chat API keys yet
Create a key, then use it as a Bearer token against /api/v1/chat/completions.
Example request
curl https://spicyai.app/api/v1/chat/completions \
-H "Authorization: Bearer sk-spicy-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello"}]}'Buy credits