Admin — Model Config
Test model configuration
Tests a model configuration by making a minimal API call to the provider. Does not save the configuration.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3001/api/v1/admin/model-config/test" \ -H "Content-Type: application/json" \ -d '{ "provider": "anthropic", "model": "string", "apiKey": "string" }'{
"success": true,
"message": "string",
"modelName": "string"
}{
"error": "string",
"message": "string",
"requestId": "string"
}{
"property1": null,
"property2": null
}{
"property1": null,
"property2": null
}{
"property1": null,
"property2": null
}{
"error": "string",
"message": "string",
"requestId": "string"
}