Skip to content

Test an AI feature's model​

POST
/api/ai/test

Sends a minimal prompt through the provider and model configured for
one feature, to check that it responds. A provider failure is reported
in the 200 body (success: false, error), not as an HTTP error.

Authorizations​

bearerAuth

API token created via POST /api/tokens or the db:create-token CLI command

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
"feature": "string"
}

Responses​

Test result

application/json
JSON
{
"data": {
"success": true,
"duration_ms": 0,
"provider": "string",
"provider_display": "string",
"model": "string",
"model_display": "string",
"error": "string"
}
}

Samples​

Powered by VitePress OpenAPI