provider llm_analytics GET /api/environments/{environment_id}/llm_analytics/models/
@utdk/posthog /api/environments/{environment_id}/llm_analytics/models/
environments_llm_analytics_models_retrieve
List available models for a provider.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
key_id query
Optional provider key UUID. When supplied, models reachable with that specific key are returned (useful for Azure OpenAI, where the deployment list depends on the configured endpoint). Must belong to the same provider as the `provider` parameter.
string
provider query required
LLM provider to list models for. Must be one of the supported providers.
enum: anthropic, azure_openai, fireworks, gemini…

Try it

Authentication
Configure credentials for PostHog API
environmentsLlmAnalyticsModelsRetrieve
GET/api/environments/{environment_id}/llm_analytics/models/
List available models for a provider.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Optional provider key UUID. When supplied, models reachable with that specific key are returned (useful for Azure OpenAI, where the deployment list depends on the configured endpoint). Must belong to the same provider as the `provider` parameter.

required

LLM provider to list models for. Must be one of the supported providers.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsLlmAnalyticsModelsRetrieve()