openai/gpt-4.1 logo

openai/gpt-4.1

GPT-4.1 is OpenAI's smart non-reasoning model optimized for instruction following and tool calling, with a very large context window.

OpenAI Vision 1,047,576 Tokens
Get API Key
Try in Playground
Free Trial Credit On first TopUp of minimum $5
$1.00

api_example.sh

curl -X POST "https://platform.qubrid.com/v1/chat/completions" \
  -H "Authorization: Bearer QUBRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-4.1",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image? Describe the main elements."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
          }
        }
      ]
    }
  ],
  "max_tokens": 4096,
  "temperature": 0.7,
  "stream": true,
  "top_p": 1
}'

Technical Specifications

Model Architecture & Performance

Variant GPT-4.1
Context Length 1,047,576 Tokens
Architecture Transformer-based model; internal architecture not publicly disclosed by OpenAI.
Developers OpenAI
Knowledge Cutoff Jun 01, 2024

Pricing

Pay-per-use, no commitments

Input Tokens $2.00/1M Tokens
Output Tokens $8.00/1M Tokens
Cached Input Tokens $0.50/1M Tokens

API Reference

Complete parameter documentation

Parameter Type Default Description
stream boolean true Enable streaming responses for real-time output.
temperature number 0.7 Controls randomness; higher values can increase creativity.
max_tokens number 4096 Maximum number of output tokens to generate.
top_p number 1 Nucleus sampling (probability mass to sample from).

Explore the full request and response schema in our external API documentation

Performance

Strengths & considerations

Strengths Considerations
Very large context window
Low latency and strong instruction following
Non-reasoning profile may be less effective on multi-step reasoning tasks vs GPT-5 class

Use cases

Recommended applications for this model

Tool-using assistants (web/file/function flows)
Long-context instruction following
Complex document and UI understanding with vision input

Enterprise
Platform Integration

Docker

Docker Support

Official Docker images for containerized deployments

Kubernetes

Kubernetes Ready

Production-grade KBS manifests and Helm charts

SDK

SDK Libraries

Official SDKs for Python, Javascript, Go, and Java

Don't let your AI control you. Control your AI the Qubrid way!

Have questions? Want to Partner with us? Looking for larger deployments or custom fine-tuning? Let's collaborate on the right setup for your workloads.

"Qubrid helped us turn a collection of AI scripts into structured production workflows. We now have better reliability, visibility, and control over every run."

AI Infrastructure Team

Automation & Orchestration