OpenAI

GPT-4.1

Text

OpenAI's non-reasoning GPT-4.1; 1M context, image input and tools via OpenAI-compatible API

Input $2.00 / 1M tokens | Output $8.00 / 1M tokens GPT-4.1 API reference →
Model health Insufficient data
runapi.ai
# Base URL
https://runapi.ai

# Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1beta/models/gpt-4.1:generateContent
POST /v1beta/models/gpt-4.1:streamGenerateContent
curl https://runapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4.1",
  "messages": [
    {
      "role": "user",
      "content": "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."
    }
  ]
}'
from openai import OpenAI

client = OpenAI(
    base_url="https://runapi.ai/v1",
    api_key="your-runapi-key"
)

response = client.chat.completions.create(
    model="gpt-4.1",
    messages=[{"role": "user", "content": "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://runapi.ai/v1",
  apiKey: "your-runapi-key"
});

const response = await client.chat.completions.create({
  model: "gpt-4.1",
  messages: [{ role: "user", content: "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations." }]
});
https://runapi.ai 5 endpoints
OVERVIEW

What GPT-4.1 is built for

GPT-4.1 is the flagship of OpenAI's GPT-4.1 family, released on April 14, 2025 as the snapshot gpt-4.1-2025-04-14. OpenAI calls it its smartest non-reasoning model: it answers without a reasoning step and is positioned for instruction following and tool calling at low latency.

The context window is 1,047,576 tokens and output goes up to 32,768 tokens. It accepts text and image input, and OpenAI supports function calling and structured outputs on the model.

On RunAPI, call gpt-4.1 through the OpenAI-compatible Chat Completions endpoint (/v1/chat/completions). To move existing Chat Completions code, set the OpenAI SDK base URL to https://runapi.ai/v1, use your RunAPI API key, and keep model set to gpt-4.1. OpenAI recommends GPT-5 models for complex tasks, and RunAPI lists the newer GPT models under the same key.

Model ID
gpt-4.1
Released
April 14, 2025
Context window
1,047,576 tokens
Max output
32,768 tokens
Input
Text and images
Reasoning
None (non-reasoning model)
Endpoint on RunAPI
OpenAI Chat Completions
Playground

Try GPT-4.1

Pick any model and generate in seconds.

Estimated: Input $2.00 / 1M tokens | Output $8.00 / 1M tokens

Sign in to generate with RunAPI.

Sign in to generate

Sign in to start generating with your available language models.

Specifications

Technical details

Provider OpenAI
Model ID gpt-4.1
Modality Text
Task types Synchronous
API endpoint /v1/chat/completions
/v1/responses
/v1/messages
/v1beta/models/gpt-4.1:generateContent
/v1beta/models/gpt-4.1:streamGenerateContent
Billing unit 1K tokens
Catalog status Operational
HOW IT WORKS

Use This Model in 3 Steps

  1. Get Your Key

    Sign up for free and create an API key for gpt-4.1 from the dashboard.

  2. Send a Request

    POST to /v1/chat/completions with the gpt-4.1 model slug and your parameters.

  3. Get Results

    Read the completed gpt-4.1 response directly from the endpoint.

What this model offers

Endpoint coverage

Exposes 1 public endpoint(s): chat_completion.

Usage-based billing

Metered by 1K tokens with no subscription requirement.

GPT-4.1 Pricing

Endpoint
Price
chat_completion
Input: $2.00 / 1M tokens Output: $8.00 / 1M tokens
  • Cache read: $0.50 / 1M tokens
API REFERENCE

Endpoint Specification

Endpoint
POST /v1/chat/completions
Model ID
gpt-4.1
Task Types
chat_completion

Request parameters

No request parameters are published for this endpoint.

USE CASES

Customer support

Answer customer questions from a private knowledge base, reducing ticket volume.

Document analysis

Draft contract summaries and flag key clauses for attorney review.

Code generation

Auto-generate unit tests, code reviews, and refactoring suggestions in CI.

Usage metrics

Trusted by developers
23
API Calls / Day
52.2%
Success Rate
10.9s
Avg Generation

Verified customer feedback is not available for this model yet.

FAQ

Frequently asked questions about GPT-4.1

Is GPT-4.1 a reasoning model?

No. OpenAI describes it as its smartest non-reasoning model. It does not generate a reasoning step before the answer, and OpenAI positions it for low-latency instruction following and tool calling. For complex multi-step problems, OpenAI recommends GPT-5.

What is the difference between gpt-4.1 and gpt-4.1-mini?

Both have a 1,047,576-token context window, 32,768 output tokens, text and image input, and function calling. gpt-4.1 is the larger model for harder instruction-following work, and gpt-4.1-mini is the smaller model for fast, high-volume requests.

Can I call GPT-4.1 with the OpenAI SDK on RunAPI?

Yes. Set the base URL to https://runapi.ai/v1, use your RunAPI API key, and send Chat Completions requests with model set to gpt-4.1. Images go in image_url parts, and tools use the standard OpenAI tools format.

Is GPT-4.1 being retired?

No. As of October 2026, OpenAI lists gpt-4.1 as active and has announced no shutdown date for it.

How do I select gpt-4.1?

Pass the model ID shown in the quickstart.

What's the rate limit on this variant?

Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.

Can I switch variants later?

Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.

Does it stream?

Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.

Where do I report quality issues?

Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.

Do I need a separate provider account?

No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.

Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

Contact Us