Guardrail check request
Path parameters
Request
Format of the response. Use {‘type’: ‘json_object’} for JSON mode or {‘type’: ‘json_schema’, ‘json_schema’: {…}} for structured outputs.
Deprecated in favor of tool_choice. ‘none’ means the model will not call a function and instead generates a message. ‘auto’ means the model can pick between generating a message or calling a function. Specifying a particular function via {‘name’: ‘my_function’} forces the model to call that function.
Modify the likelihood of specified tokens appearing in the completion. Maps token IDs (as strings) to bias values from -100 to 100.
Controls which (if any) tool is called by the model. ‘none’ means no tool is called, ‘auto’ lets the model decide, ‘required’ forces a tool call.
A unique identifier representing your end-user, used by some providers for abuse monitoring.
An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. Preferred over max_tokens for reasoning models.
Options for streaming response. Only set this when stream=True. Supports include_usage to receive token usage in the final stream chunk.
Whether this is a vision-capable request with image inputs.