Skip to main content

Completions Request Format

Here is the request schema as a TypeScript type. This will be the body of your POST request to the /chat/completions endpoint. For a complete list of parameters, see the Parameters.
The response_format parameter ensures you receive a structured response from the LLM. The parameter is only supported by OpenAI models and some others

Assistant Prefill

BLACKBOX AI supports asking models to complete a partial response. This can be useful for guiding models to respond in a certain way. To use this features, simply include a message with role: "assistant" at the end of your messages array.