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