You're looking at a specific version of this model. Jump to the model overview.

openai /gpt-4.1-nano:5984d3fc

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
The prompt to send to the model
system_prompt
string
You are a helpful assistant.
System prompt to set the assistant's behavior
messages
array
[]
A JSON string representing a list of messages. If provided, prompt and system_prompt are ignored.
image_input
array
[]
List of images to send to the model
temperature
number
1

Max: 2

Sampling temperature between 0 and 2
max_completion_tokens
integer
4096
Maximum number of completion tokens to generate
top_p
number
1

Max: 1

Nucleus sampling parameter - the model considers the results of the tokens with top_p probability mass. (0.1 means only the tokens comprising the top 10% probability mass are considered.)
frequency_penalty
number
0

Min: -2

Max: 2

Frequency penalty parameter - positive values penalize the repetition of tokens.
presence_penalty
number
0

Min: -2

Max: 2

Presence penalty parameter - positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'title': 'Output', 'type': 'string'}