text
Create Completion
Create a Completion.
post/v1/completions
Request body
Example request
{
"peft": "example_peft_id"
}Response
An OctoAI text endpoint can be requested in either a synchronous orstreaming mode.When the request body has stream: False set the content type will beapplication/json. When the request body has stream: True set thecontent type will be text-event-stream and will respond with a stream ofserver-send-events (SSE).
Example response
{
"choices": [],
"created": 11,
"id": "cmpl-123",
"model": "my_model",
"system_fingerprint": "system_fingerprint"
}