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

Authorizations

x-api-key
string
header
required

The API key to authenticate requests.

Body

application/json
provider
enum<string>
required
Available options:
ollama,
openai,
gemini,
anthropic,
vercel-ai-gateway
model
string
required
apiKey
string
required
baseURL
string
required

Response

The AI provider connection was successful.

The response is of type any.