---
title: "Create Provider"
method: POST
path: "/v1/providers/"
tags: ["providers"]
---

# Create Provider

`POST /v1/providers/`

Create a new custom provider.

## Request body

- ProviderCreate
  - `name` string, required — The name of the provider.
  - `provider_type` 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'deepseek' | 'google_ai' | 'google_vertex' | 'groq' | 'hugging-face' | 'letta' | 'lmstudio_openai' | 'mistral' | 'ollama' | 'openai' | 'together' | 'vllm' | 'xai', required
  - `api_key` string, required — API key or secret key used for requests to the provider.
  - `access_key` string, nullable — Access key used for requests to the provider.
  - `region` string, nullable — Region used for requests to the provider.
  - `base_url` string, nullable — Base URL used for requests to the provider.
  - `api_version` string, nullable — API version used for requests to the provider.

## Response `200`

Successful Response

- Provider
  - `id` string, nullable — The id of the provider, lazily created by the database manager.
  - `name` string, required — The name of the provider
  - `provider_type` 'anthropic' | 'azure' | 'bedrock' | 'cerebras' | 'deepseek' | 'google_ai' | 'google_vertex' | 'groq' | 'hugging-face' | 'letta' | 'lmstudio_openai' | 'mistral' | 'ollama' | 'openai' | 'together' | 'vllm' | 'xai', required
  - `provider_category` 'base' | 'byok', required
  - `api_key` string, nullable — API key or secret key used for requests to the provider.
  - `base_url` string, nullable — Base URL for the provider.
  - `access_key` string, nullable — Access key used for requests to the provider.
  - `region` string, nullable — Region used for requests to the provider.
  - `api_version` string, nullable — API version used for requests to the provider.
  - `updated_at` string, date-time, nullable — The last update timestamp of the provider.
  - `api_key_enc` string, nullable — Encrypted secret value (stored as encrypted string)
  - `access_key_enc` string, nullable — Encrypted secret value (stored as encrypted string)

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-09** `6cec99480c13` — 2 info
  - added the optional property `access_key_enc` to the response with the `200` status
  - added the optional property `api_key_enc` to the response with the `200` status

[Change history](https://skmtc.dev/yu-code666/apis/letta-api/changes/v1/providers/post.md)

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
