API by router
Usage internal
POST
instance_id*Instance IdFormat
uuidapplication/json- body
conversation_id?string|nullcost_platform_usd?number|nullcost_tenant_usd?number|nullduration_seconds?number|nullis_byok?Is ByokDefault
falsekey_source?Key SourceLength
length <= 20Default
"platform"modality*ModalityLength
length <= 30model_slug*Model SlugLength
length <= 100provider*ProviderLength
length <= 50request_id?string|nulltask?|nulltokens_cached?integer|nulltokens_input?integer|nulltokens_output?integer|nulltotal_ms?integer|nullttft_ms?integer|nullunits?integer|nullSuccessful Response
application/json- response
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage' \ -H 'Content-Type: application/json' \ -d '{ "modality": "string", "model_slug": "string", "provider": "string"}'Example Response
{}GET
instance_id*Instance IdFormat
uuidSuccessful Response
application/json- response
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage/spend'Example Response
{}