Python Integration
Point your OpenAI or Anthropic Python client to the AiSpendTrack proxy and pass your project key via headers or environment variables.
See Installation and Authentication for setup.
Example
from openai import OpenAI
client = OpenAI(
base_url=os.environ.get("AISPENDTRACK_PROXY_URL"),
api_key=os.environ.get("OPENAI_API_KEY"),
default_headers={
"X-AiSpendTrack-Project": os.environ.get("AISPENDTRACK_PROJECT_KEY"),
},
)Use your proxy URL and project key from the dashboard .
Last updated on