Skip to main content
POST
/
ai-providers
Create saved AI provider
curl --request POST \
  --url http://localhost:3000/api/openapi/ai-providers \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "label": "<string>",
  "model": "<string>",
  "apiKey": "<string>",
  "baseURL": ""
}
'
"<unknown>"

Authorizations

x-api-key
string
header
required

The API key to authenticate requests.

Body

application/json
label
string
required
Minimum string length: 1
provider
enum<string>
required
Available options:
openai,
anthropic,
gemini,
vercel-ai-gateway,
openrouter,
ollama,
openai-compatible
model
string
required
Minimum string length: 1
apiKey
string
required
Minimum string length: 1
baseURL
string
default:""

Response

OK

The response is of type any.