Skip to main content

Try GPT 4.1 in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: gpt-4-1-2025-04-14 GPT 4.1 is an LLM that excels in coding, instruction following, and handling extremely long contexts—supporting up to one million tokens per interaction. It offers significant improvements over previous models in generating accurate code, following complex instructions, and understanding nuanced prompts within large documents or multi-step workflows. Some other noteworthy features of GPT 4.1 include enhanced performance for agentic workflows and improved collaboration on tasks requiring detailed reasoning or multi-part instructions.
MetricValue
Parameter CountUnknown
Mixture of ExpertsNo
Context Length1,000,000 tokens
MultilingualYes
Quantized*Unknown
*Quantization is specific to the inference provider and the model may be offered with different quantization levels by other providers.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.
curl -X POST https://hub.oxen.ai/api/ai/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
  "model": "gpt-4-1-2025-04-14",
  "messages": [
    {
      "role": "user",
      "content": "Hello, what can you do?"
    }
  ]
}'

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/gpt-4-1-2025-04-14

Request parameters

This model follows the standard OpenAI chat completions request body. See the chat completions reference for the full parameter list.