Skip to main content

DeepInfra

Route your DeepInfra API calls through AI SpendOps for automatic usage tracking and cost attribution.

Configuration

SettingValue
Route/v1/deepinfra/*
Upstreamhttps://api.deepinfra.com/v1/openai
Auth headerAuthorization: Bearer ...
Streaming usageStandard

SDK base URL

https://proxy.aispendops.com/v1/deepinfra/v1

Example

curl https://proxy.aispendops.com/v1/deepinfra/v1/chat/completions \
-H "Authorization: Bearer your-deepinfra-key" \
-H "X-ASO-API-Key: aso_k_yourkey.secret" \
-H "Content-Type: application/json" \
-d '{"model":"meta-llama/Llama-3.3-70B-Instruct","messages":[{"role":"user","content":"Hello"}]}'

Usage fields

FieldDescription
prompt_tokensInput tokens
completion_tokensOutput tokens

Notes

  • Open-source model hosting. OpenAI-compatible API.