Skip to main content
POST
Proxy Chat Completions

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null

Body

application/json

An OpenAI chat completion request: the fields PromptGuard reads.

Everything else OpenAI accepts (temperature, tools, ...) is forwarded untouched, so it is allowed rather than named.

model
string
required
messages
Messages · object[]
required
stream
boolean | null

Response

The provider's response

An OpenAI chat completion.

id
string
required
object
string
required
created
integer
required
model
string
required
choices
Choices · object[]
required