We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

OpenAI: GPT-5

openai/gpt-5
TextInput: text · image · fileToolsReasoning400KAdded Aug 7, 2025

Try OpenAI: GPT-5 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

OpenAI: GPT-5 at a glance

  • Input price is 178% higher than the median of 434 Text models.
  • Context window of 400,000 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.02.

About OpenAI: GPT-5

GPT-5 is a text model from OpenAI, listed on api14 under the model id openai/gpt-5. It sits in the text category and is described by the provider as OpenAI's most advanced model, with improvements in reasoning, code quality and user experience. It was released by the provider on 7 August 2025, and its knowledge cutoff is 30 September 2024.

The model accepts text, images and files as input, and it produces text as output. Its context window is 400,000 tokens, which is large enough to hold long documents, extended conversations or sizeable codebases in a single request. The maximum output is 128,000 tokens, so responses can be long when the task calls for it. Because image and file inputs are supported alongside text, you can send mixed material such as a screenshot plus a written question, or a document plus instructions, and receive a text answer.

Those capabilities point to a few practical uses. Step-by-step reasoning and instruction following suit analytical work: working through multi-stage problems, reviewing a plan for gaps, or extracting structured answers from long reports. Code quality matters for generation, refactoring and explanation tasks, especially when the relevant files are passed in directly. The combination of a large context window and file input fits document-heavy workflows such as summarising contracts, comparing versions of a specification, or answering questions against a corpus you supply in the request. Image input extends this to material that arrives as screenshots, diagrams or scanned pages.

You call it through api14's OpenAI-compatible API using the model id openai/gpt-5, so existing OpenAI SDKs and clients work with only the base URL and key changed. The request parameters it supports are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, tool_choice, tools and verbosity. In practice that means you can cap output length, ask for reasoning to be surfaced or hidden, tune how much reasoning effort is spent, request JSON or schema-constrained output via response_format and structured_outputs, set a seed for reproducibility, and define tools with tool_choice for function calling. Verbosity gives another lever over how expansive the answer is.

Two constraints are worth noting when you choose a model. Output is text only, so if you need generated images or audio, this is not the model for that. The knowledge cutoff of 30 September 2024 also means anything after that date has to come from the prompt, from files you attach, or from tools you provide. For tasks where a smaller or faster model is sufficient, or where a different output modality is required, another model on api14 may fit better.

How to call the OpenAI: GPT-5 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-5".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "openai/gpt-5",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

Specifications

Context length
400,000
Max output
128,000
Input
text, image, file
Output
text
Knowledge cutoff
2024-09-30

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

OpenAI: GPT-5: frequently asked questions

How much does the OpenAI: GPT-5 API cost?
OpenAI: GPT-5 costs Input $4.38 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of OpenAI: GPT-5?
OpenAI: GPT-5 reads up to 400,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
What can OpenAI: GPT-5 do?
OpenAI: GPT-5 accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call OpenAI: GPT-5 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-5?
Comparable Text models at a similar price: OpenAI: GPT-5.1-Codex-Max, OpenAI: GPT-5.1, OpenAI: GPT-5.1-Codex. Each runs through the same API key, so switching is one string.

OpenAI: GPT-5 community

New topic

This community has no topics yet. Open the first one about OpenAI: GPT-5.