Api Foundation Models 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

idintegerRequired

Response

idintegerRead-only
variantsstringRead-only
model_namestring<=255 characters
updated_atdatetimeRead-only
display_namestringOptional<=255 characters
speeddoubleOptional
max_context_windowintegerOptional-2147483648-2147483647
model_sizeintegerOptional-2147483648-2147483647
mmlu_scoredoubleOptional
mt_bench_scoredoubleOptional
big_bench_scoredoubleOptional
input_costdoubleOptional
output_costdoubleOptional
rate_limitintegerOptional-2147483648-2147483647
token_rate_limitintegerOptional-2147483648-2147483647
multilingualintegerOptional-2147483648-2147483647
streaming_supportintegerOptional-2147483648-2147483647
function_callintegerOptional-2147483648-2147483647
enforce_function_callintegerOptional-2147483648-2147483647
weightdoubleOptional
image_supportintegerOptional-2147483648-2147483647
hf_urlstringOptionalformat: "uri"<=200 characters
model_descriptionstringOptional
model_paramslist of stringsOptional
total_requestsintegerOptional-2147483648-2147483647
total_costdoubleOptional
total_tokenslongOptional-9223372036854776000-9223372036854776000
total_completion_tokenslongOptional-9223372036854776000-9223372036854776000
total_prompt_tokenslongOptional-9223372036854776000-9223372036854776000
avg_tpsdoubleOptional