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 '
{
  "model": "<string>",
  "apiKey": "<string>",
  "baseURL": ""
}
'
"<unknown>"

Documentation Index

Fetch the complete documentation index at: https://docs.rxresu.me/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

The API key to authenticate requests.

Body

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

Response

The AI provider connection was successful.

The response is of type any.