Skip to main content
POST
/
v1
/
proxy
/
chat
/
completions
Proxy chat/completions
curl --request POST \
  --url https://api.braintrust.dev/v1/proxy/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '"<any>"'
"<any>"

Authorizations

Authorization
string
header
required

Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.

Body

application/json · any

See the OpenAI docs for details.

The body is of type any.

Response

200 - application/json

Proxy response (supports both streaming and non-streaming formats)

The response is of type any.