Skip to navigation

Get AI Gateway spend per model

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

accountstringRequired
Account name

Query parameters

fromstringOptional

Start of period (RFC3339, defaults to start of current month)

tostringOptional

End of period (RFC3339, defaults to now)

Response

OK
cost_usddoubleOptional
dailylist of objectsOptional
daily_unattributedlist of objectsOptional
modelslist of objectsOptional
unattributed_usddoubleOptional

Errors

502
Bad Gateway Error