Llm Models Foundation Model Retrieve
Foundation model detail by PK. Auth optional — API key OR JWT parsed if
present, anonymous allowed. Serializer filters variants by org when
authenticated.
Uses ``OptionalJWTAndAPIKeyAuthenticationViewMixin`` (not bare
``authentication_classes=[KeywordsAIJWTAuthentication]``): SimpleJWT raises
``InvalidToken`` (401) on any present-but-non-JWT bearer — i.e. an API key —
so the bare config 401'd legitimate API-key callers despite ``AllowAny``.
The mixin accepts API key OR JWT and treats unparseable creds as anonymous,
and IP-rate-limits anonymous callers via ``TokenBucketThrottle``.
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id
Response
id
variants
model_name
updated_at
display_name
speed
max_context_window
model_size
mmlu_score
mt_bench_score
big_bench_score
input_cost
output_cost
rate_limit
token_rate_limit
multilingual
streaming_support
function_call
enforce_function_call
weight
image_support
hf_url
model_description
model_params
total_requests
total_cost
total_tokens
total_completion_tokens
total_prompt_tokens
avg_tps