Search…
⌃K
🧙♂

Completions

Use this API to generate completions from a project. See the API section of your endpoint on the Baseplate console for copy-pasteable code.
post
https://www.trybaseplate.io
/api/endpoints/{id}/completions
Generates a completion
Generates a completion from endpoint {id}. Your endpoint ID can be found in the API tab of your endpoint or in the URL.
Parameters
Path
id*
String
Baseplate endpoint ID
Header
Authorization*
String
Baseplate API key. Needs to be in the format
"Bearer $BASEPLATE_API_KEY"
Content-Type*
String
Use application/json
Body
values
Json
A json object with keys matching the variables of your deployed template.
stream
Boolean
If true, response will be sent back as Server Sent Events. A [DONE] message is sent at the end of the completion and the search results (if applicable) are sent after the [DONE]. See below for example.
Responses
200: OK
401: Unauthorized
Unauthorized for project or invalid API key.
​

​

Example curl request