Skip to main content
POST
/
api
/
v1
/
model_providers
Create Model Provider
curl --request POST \
  --url https://api.example.com/api/v1/model_providers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "anthropic",
  "base_url": "<string>",
  "api_key": "<string>",
  "name": "<string>",
  "description": "<string>",
  "watsonx_project_id": "<string>",
  "watsonx_space_id": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "anthropic",
  "base_url": "<string>",
  "capabilities": [
    "llm"
  ],
  "name": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "registry": "<string>",
  "state": "online"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
type
enum<string>
required
Available options:
anthropic,
bedrock,
cerebras,
chutes,
cohere,
deepseek,
gemini,
github,
groq,
watsonx,
jan,
mistral,
moonshot,
nvidia,
ollama,
openai,
openrouter,
perplexity,
together,
voyage,
rits,
other
base_url
string<uri>
required
Required string length: 1 - 2083
api_key
string
required
name
string | null
description
string | null
watsonx_project_id
string | null
watsonx_space_id
string | null

Response

Successful Response

id
string<uuid>
required
type
enum<string>
required

Type of model provider

Available options:
anthropic,
bedrock,
cerebras,
chutes,
cohere,
deepseek,
gemini,
github,
groq,
watsonx,
jan,
mistral,
moonshot,
nvidia,
ollama,
openai,
openrouter,
perplexity,
together,
voyage,
rits,
other
base_url
string<uri>
required

Base URL for the API (unique)

Required string length: 1 - 2083
capabilities
enum<string>[]
required
Available options:
llm,
embedding
name
string | null

Human-readable name for the model provider

description
string | null

Optional description of the provider

created_at
string<date-time>
registry
string<uri> | null
Minimum string length: 1
state
enum<string>
default:online
Available options:
online,
offline