Groq
Route your Groq API calls through AI SpendOps for automatic usage tracking and cost attribution.
Configuration
| Setting | Value |
|---|---|
| Route | /v1/groq/* |
| Upstream | https://api.groq.com/openai |
| Auth header | Authorization: Bearer gsk_... |
| Streaming usage | Standard |
SDK base URL
https://proxy.aispendops.com/v1/groq/v1
Example
curl https://proxy.aispendops.com/v1/groq/v1/chat/completions \
-H "Authorization: Bearer gsk_your-groq-key" \
-H "X-ASO-API-Key: aso_k_yourkey.secret" \
-H "Content-Type: application/json" \
-d '{"model":"llama-3.3-70b-versatile","messages":[{"role":"user","content":"Hello"}]}'
Usage fields
| Field | Description |
|---|---|
prompt_tokens | Input tokens |
completion_tokens | Output tokens |
Notes
- Ultra-fast inference. OpenAI-compatible API.