← Back to all generators

openai/gpt-5-structured

GPT-5 with support for structured outputs, web search and custom tools

Capabilities

Reference Images

Cost

Community model (estimated from hardware time)

Input Parameters

enable_web_search boolean

Allow GPT-5 to use web search for the response.

Default: false
image_input array

List of images to send to the model

Default:
input_item_list array

A list of one or many input items to the model, containing different content types. This parameter corresponds with the `input` OpenAI API parameter. For more details see: https://platform.openai.com/docs/api-reference/responses/create#responses_create-input. Similar to the `messages` parameter, but with more flexibility in the content types.

Default:
instructions string

A system (or developer) message inserted into the model's context. When using along with previous_response_id, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.

json_schema object

A JSON schema that the response must conform to. For simple data structures we recommend using `simple_text_format_schema` which will be converted to a JSON schema for you.

Default: [object Object]
max_output_tokens integer

Maximum number of completion tokens to generate. For higher reasoning efforts you may need to increase your max_completion_tokens to avoid empty responses (where all the tokens are used on reasoning).

model string

GPT-5 model to use.

Default: "gpt-5"
gpt-5 gpt-5-mini gpt-5-nano
previous_response_id string

The ID of a previous response to continue from.

prompt string

A simple text input to the model, equivalent to a text input with the user role. Ignored if input_item_list is provided.

reasoning_effort string

Constrains effort on reasoning for GPT-5 models. Currently supported values are minimal, low, medium, and high. The minimal value gets answers back faster without extensive reasoning first. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. For higher reasoning efforts you may need to increase your max_completion_tokens to avoid empty responses (where all the tokens are used on reasoning).

Default: "minimal"
minimal low medium high
simple_schema array

Create a JSON schema for the output to conform to. The schema will be created from a simple list of field specifications. Strings: 'thing' (defaults to string), 'thing:str', 'thing:string'. Booleans: 'is_a_thing:bool' or 'is_a_thing:boolean'. Numbers: 'count:number', 'count:int'. Lists: 'things:list' (defaults to list of strings), 'things:list:str', 'number_things:list:number', etc. Nested objects are not supported, use `json_schema` instead.

Default:
tools array

Tools to make available to the model. Should be a JSON object containing a list of tool definitions.

Default:
verbosity string

Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are low, medium, and high. GPT-5 supports this parameter to help control whether answers are short and to the point or long and comprehensive.

Default: "medium"
low medium high
Version: 9f4cd9ec1133 Updated: 6/26/2026 528.8K runs