---
title: "Add Provider"
method: POST
path: "/api/providers"
tags: ["Provider Management"]
---

# Add Provider

`POST /api/providers`

Add a new AI provider configuration with API keys, network settings, and concurrency options.

## Request body

- AddProviderRequest
  - `provider` 'openai' | 'anthropic' | 'azure' | 'bedrock' | 'cohere' | 'vertex' | 'mistral' | 'ollama' | 'groq' | 'sgl', required — AI model provider
  - `keys` Key[], required — API keys for the provider
    - `value` string, required — API key value or environment variable reference
    - `weight` number — Weight for load balancing
    - `models` string[] — Models this key can access
    - `azure_key_config` object — Azure key configuration
      - `endpoint` string — Azure endpoint
      - `deployments` object — Azure deployments
      - `api_version` string — Azure API version
    - `vertex_key_config` object — Vertex key configuration
      - `project_id` string — Vertex project ID
      - `region` string — Vertex region
      - `auth_credentials` string — Vertex auth credentials
    - `bedrock_key_config` object
      - `access_key` string — Bedrock access key
      - `secret_key` string — Bedrock secret key
      - `session_token` string — Bedrock session token
      - `region` string — Bedrock region
      - `arn` string — Bedrock ARN
      - `deployments` object — Bedrock deployments
  - `network_config` NetworkConfig
    - `timeout` integer — Request timeout in seconds
    - `max_retries` integer — Maximum number of retries
  - `concurrency_and_buffer_size` ConcurrencyAndBufferSize
    - `concurrency` integer — Maximum concurrent requests
    - `buffer_size` integer — Request buffer size
  - `proxy_config` ProxyConfig
    - `url` string — Proxy URL
    - `username` string — Proxy username
    - `password` string — Proxy password

## Response `200`

Provider added successfully

- SuccessResponse
  - `status` 'success', required — Operation status
  - `message` string, required — Success message

## Other responses

- `400` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/getbifrost/apis/bifrost-http-transport-api.md) · [All operations](https://skmtc.dev/getbifrost/apis/bifrost-http-transport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getbifrost/bifrost-http-transport-api/revisions/e70d3ae3c0d0/schema)
