Skip to main content
POST
Smoke-test a model through the gateway

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

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).