Getting Started as a Consumer
Sending your first consumption request
3
Make your first chat completions call
curl -L https://consumption.api.thegrid.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GRID_CONSUMPTION_API_KEY" \
-d '{
"model": "chat-fast",
"messages": [
{"role": "system", "content": "Be concise and correct."},
{"role": "user", "content": "Write one paragraph on why inference needs a market."}
]
}'pip install openaiLast updated
Was this helpful?