Create Inference (v4)
lyzr_create_inference_v4Create a v4 inference response by submitting a model and input, with support for tools and reasoning options to deliver AI-generated outputs.
Instructions
Create a v4 inference response (OpenAI Responses-API style: model + input + tools).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text output format options | |
| user | No | End-user identifier | |
| input | Yes | A plain text prompt, or a list of structured input items | |
| model | Yes | The model name | |
| store | No | Whether to store the response (default true) | |
| tools | No | Tool definitions | |
| top_p | No | Top-p | |
| stream | No | Whether to stream (default false) | |
| include | No | Additional fields to include in the response | |
| reasoning | No | Reasoning options | |
| truncation | No | Truncation strategy | |
| temperature | No | Sampling temperature | |
| tool_choice | No | Tool choice strategy | |
| instructions | No | System instructions | |
| max_output_tokens | No | Max output tokens | |
| previous_response_id | No | Previous response id to continue from |