provider llm_analytics POST /api/projects/{project_id}/llm_analytics/provider_keys/
@utdk/posthog /api/projects/{project_id}/llm_analytics/provider_keys/
llm_analytics_provider_keys_create
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
llmAnalyticsProviderKeysCreate
POST/api/projects/{project_id}/llm_analytics/provider_keys/

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required

* `openai` - Openai * `anthropic` - Anthropic * `gemini` - Gemini * `openrouter` - Openrouter * `fireworks` - Fireworks * `azure_openai` - Azure OpenAI * `together_ai` - Together AI * `minimax` - MiniMax * `zeabur` - Zeabur AI Hub

required
required
required
required

Azure OpenAI endpoint URL

Azure OpenAI API version

required

Azure endpoint (read-only, for display)

required

Azure API version (read-only, for display)

required
required
required

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.llmAnalyticsProviderKeysCreate({
  "set_as_active": false
})