Generate
Generate structured text responses using the Mixpeek platform and a specific language model configuration. This endpoint allows for the creation of text that adheres to a predefined JSON schema, enabling the generation of structured data from natural language input.
Request
Specifies the language model provider and the specific model to be used for generation. This field allows customization of the text generation process based on the model’s capabilities and characteristics.
Defines the JSON schema for the response. This schema specifies the structure and types of the data that the generated text should conform to, ensuring that the output meets specific data format requirements.
The context or prompt based on which the model will generate the text. This should be a clear and concise statement or question that guides the model’s output within the constraints of the specified response format.
An optional array of messages or additional context that can be provided to the model to further influence or guide the generation process.
Additional settings for the generation process, allowing for customization of model behavior, such as adjusting creativity levels, specifying output length, or other model-specific parameters.
Response
The generated text output structured according to the specified JSON schema. This object contains the data fields and values as defined in the response format.
Metadata about the generation process, including the total number of tokens generated, the unique identifier for the generation task, and details about the model used.
The time taken to generate the response, measured in milliseconds.