Skip to main content
POST
/
v1
/
test
Smoke-test a model through the gateway
curl --request POST \
  --url https://{host}/v2/workspaces/slug:llm-gateway/webhooks/v1/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "modelId": "<string>"
}
'
{
  "ok": true,
  "response": {},
  "dimensions": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

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

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Body

application/json
modelId
string
required

Model id to test.

Maximum string length: 256
type
enum<string>

Kind of test to run. Defaults to completions when omitted.

Available options:
embeddings,
completions
Maximum string length: 32

Response

Test result.

ok
boolean
required

true when the underlying provider call succeeded.

response
object
required

Raw provider payload on success, or the captured $error object on failure (free-form).

dimensions
integer

Returned only for type: "embeddings" (length of the embedding vector).