Get a completion from the AI.
Messages to send for completion generation
The model to use for completion generation
The temperature of the generated completions
A JSON schema to describe the expected structured output as JSON
Whether the request should deduct AI credits from the user or not
Answer from the AI.