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.2

openai/gpt-5.2
TextInput: file · image · textToolsReasoning400KAdded Dec 10, 2025

Try OpenAI: GPT-5.2 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.2 at a glance

  • Input price is 289% 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.03.

About OpenAI: GPT-5.2

GPT-5.2 is a text model from OpenAI and the latest frontier-grade entry in the GPT-5 series. It was released by the provider on 10 December 2025 and follows GPT-5.1, with stronger agentic and long context performance than that earlier version. It is a general purpose text model rather than a specialist tool, so it is aimed at developers who want one model to handle a wide range of language tasks through a single API.

The model accepts text, images and files as input, and it returns text. Its context window is 400,000 tokens, and the maximum output is 128,000 tokens, which means you can supply very large documents or long conversation histories and still leave room for a substantial response. GPT-5.2 uses adaptive reasoning, allocating computation dynamically so that it can respond quickly to simple requests while spending more effort on harder ones. It also supports reasoning controls, so you can influence how much reasoning work the model performs.

Those capabilities point to a few practical uses. Long context handling suits tasks such as summarising or querying lengthy documents, contracts, codebases or research material in a single request. Image and file input make it useful for extracting information from screenshots, scanned pages or uploaded documents and turning that content into text. The agentic strengths and tool support fit workflows where the model needs to call functions, follow multi step instructions or operate as part of a pipeline. Structured outputs and response format controls help when you need machine readable results rather than free prose.

You can call GPT-5.2 through api14's OpenAI-compatible API using the model id "openai/gpt-5.2". 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. Because the interface follows the OpenAI format, existing OpenAI client libraries and request shapes should work with only the model id and base URL changed.

Keep the output ceiling in mind: responses are capped at 128,000 tokens even though the context window is larger, so very long generations may need to be split. If your task is purely text and does not need image or file input, reasoning controls or tool calling, a simpler model may be a better fit.

How to call the OpenAI: GPT-5.2 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.2".
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.2",
  "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
file, image, text
Output
text

Requests on api14 · last 7 days

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

OpenAI: GPT-5.2: frequently asked questions

How much does the OpenAI: GPT-5.2 API cost?
OpenAI: GPT-5.2 costs Input $6.13 / 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.2?
OpenAI: GPT-5.2 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.2 do?
OpenAI: GPT-5.2 accepts file, image, text and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call OpenAI: GPT-5.2 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5.2". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-5.2?
Comparable Text models at a similar price: OpenAI: GPT-5.3-Codex, OpenAI: GPT-5.2-Codex, OpenAI: GPT-5.2 Chat. Each runs through the same API key, so switching is one string.

OpenAI: GPT-5.2 community

New topic

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