Skip to main content
POST
gpt-4.1-mini: Responses
OpenAI’s GPT-4.1 mini is the fast, cost-efficient model of the GPT-4.1 family, served on ZeroGPU for general text generation. It excels at instruction following and tool calling, supports function calling and structured outputs, and works across a 1,047,576-token (1M) context window with low latency.
References: TermsPrivacy

Authorizations

x-api-key
string
header
required

Headers

x-project-id
string

Optional project identifier. Scopes the request to a specific project when provided.

Body

application/json
model
string
default:gpt-4.1-mini
required

Model identifier (fixed for this playground). Use request examples to change use cases.

Allowed value: "gpt-4.1-mini"
Example:

"gpt-4.1-mini"

input
string<textarea>
required

Multi-line text or document content to send to the model.

Required string length: 1 - 131072
instructions
string
max_tokens
integer

Maximum number of tokens to generate in the response.

Required range: x >= 1
Example:

800

metadata
object

Response

Success

The response is of type object.