The assistant's prompt cache hit rate per provider and model (Hub › Assistant)
GET
/v1/studio/admin/assistant/cache
const url = 'http://localhost:8300/v1/studio/admin/assistant/cache';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8300/v1/studio/admin/assistant/cache \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Admin only (403). Over the last days days of every user’s assistant model calls, from the hits each reply reported (DeepSeek prompt_cache_hit_tokens, OpenAI cached_tokens, Anthropic cache_read_input_tokens); 503 when pipelines does not answer in 5 s.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The hit rate per model
Media typeapplication/json
The prompt cache hit rate of the assistant’s model calls per provider and model
object
days
required
The window counted (30)
integer
models
required
Array<object>
object
provider
required
string
model
required
string
calls
required
Model calls that reported their cache hits
integer
prompt_tokens
required
Their prompt tokens
integer
hit_tokens
required
Of those, read from the provider’s cache
integer
hit_rate
required
Hit_tokens / prompt_tokens; null with no prompt tokens
number | null
Example generated
{ "days": 1, "models": [ { "provider": "example", "model": "example", "calls": 1, "prompt_tokens": 1, "hit_tokens": 1, "hit_rate": 1 } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}