POST
/
v1
/
llm-providers
{
  "provider": "openai",
  "enabled": true,
  "credentials": {}
}
Create a new LLM provider configuration.

Request Body

{
  "provider": "openai",
  "enabled": true,
  "credentials": {
    "api_key": "sk-your-api-key",
    "organization": "org-your-org-id"  // optional
  }
}

Provider-Specific Credentials

OpenAI

{
  "api_key": "sk-...",
  "organization": "org-..."  // optional
}

Anthropic

{
  "api_key": "sk-ant-..."
}

Google

{
  "api_key": "..."
}

Azure

{
  "api_key": "...",
  "endpoint": "https://your-resource.openai.azure.com",
  "deployment_id": "..."
}

Amazon Bedrock

{
  "aws_access_key_id": "...",
  "aws_secret_access_key": "...",
  "region": "us-west-2"
}

Response Examples

Success Response

{
  "provider": "openai",
  "enabled": true,
  "credentials": {
    "api_key": "sk-***",
    "organization": "org-***"
  }
}

Provider Already Exists

{
  "error": {
    "code": "CONFLICT",
    "message": "Configuration already exists for provider: openai"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

OK

The response is of type object.