---
title: "Create organization LLM provider"
method: POST
path: "/v1/llm-providers"
tags: ["LLM Providers"]
---

# Create organization LLM provider

`POST /v1/llm-providers`

Creates a new organization-scoped LLM provider from either a models.dev provider template, pasted JSON/JSONC custom configuration, or MCP-supplied customConfig object.

## Request body

- object
  - `name` string, required
  - `source` 'models_dev' | 'custom', required
  - `providerId` string
  - `modelIds` string[]
  - `customConfigText` string
  - `customConfig` unknown
  - `apiKey` string
  - `apiKeys` object
  - `memberIds` string[]
  - `teamIds` string[]
  - `allMembers` boolean

## Response `201`

Organization LLM provider created successfully.

- LlmProviderResponse
  - `llmProvider` object, required

## Other responses

- `400` — The provider creation request was invalid.
- `401` — The caller must be signed in to create organization LLM providers.
- `404` — A referenced provider, model, member, or team could not be found.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/805150503452/schema)
