v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Exposes an OpenAI-compatible endpoint for chat completions.

post/v1/{+endpoint}/chat/completions

Path parameters

endpointstring required

Required. The name of the endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Request body

contentTypestring

The HTTP Content-Type header value specifying the content type of the body.

datastring byte

The HTTP request/response body as raw binary.

extensionsobject[]

Application specific response metadata. Must be set in the first response for streaming APIs.

Response

Successful response