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-4 Turbo
openai/gpt-4-turboTry OpenAI: GPT-4 Turbo now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
OpenAI: GPT-4 Turbo at a glance
- Input price is 2122% higher than the median of 434 Text models.
- Context window of 128,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.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.09.
About OpenAI: GPT-4 Turbo
GPT-4 Turbo is a text generation model from OpenAI, listed on api14 under the model id openai/gpt-4-turbo. It is the latest GPT-4 Turbo variant and adds vision capabilities to the GPT-4 Turbo line. OpenAI describes it as supporting vision requests alongside JSON mode and function calling, and its training data runs up to December 2023.
The model accepts text and images as input and returns text. It has a context window of 128,000 tokens, which allows long documents, extended conversations and multiple images to be handled in a single request. The maximum output is 4,096 tokens, so responses are bounded even when the input is large. Its knowledge cutoff is 2023-12-31, meaning it has no awareness of events after that date unless you supply the information in the prompt.
Because it reads images as well as text, the model suits tasks such as describing or extracting information from screenshots, diagrams, charts and scanned documents, answering questions about an uploaded image, or combining visual context with a written instruction. The large context window makes it a reasonable fit for summarising long reports, reviewing sizable code files or contracts, and maintaining long multi turn conversations. Tool calling and structured outputs let you build workflows where the model selects functions or returns data in a defined shape, which is useful for agents, extraction pipelines and integrations that need machine readable results.
You call it through api14's OpenAI-compatible API using the model id openai/gpt-4-turbo, so existing OpenAI SDKs and clients work with only a base URL and key change. The supported request parameters are frequency_penalty, logit_bias, logprobs, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs and top_p. That covers sampling controls, deterministic-ish behaviour via seed, token limits, stop sequences, probability inspection through logprobs and top_logprobs, structured output formatting, and function or tool calling with tool_choice.
Two constraints are worth noting when choosing this model. Output is capped at 4,096 tokens, so tasks that need very long single responses may require chunking or a model with a higher output limit. The knowledge cutoff of 2023-12-31 means questions about newer events depend on context you provide. If your workload is text only and does not benefit from image input, a text focused model may be a simpler fit, but for mixed text and image requests within a 128,000 token context, this model covers the common cases.
How to call the OpenAI: GPT-4 Turbo API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-4-turbo".
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-4-turbo",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biaslogprobsmax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_pSpecifications
- Context length
- 128,000
- Max output
- 4,096
- Input
- text, image
- Output
- text
- Knowledge cutoff
- 2023-12-31
Requests on api14 · last 7 days
OpenAI: GPT-4 Turbo: frequently asked questions
- How much does the OpenAI: GPT-4 Turbo API cost?
- OpenAI: GPT-4 Turbo costs Input $35.00 / 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-4 Turbo?
- OpenAI: GPT-4 Turbo reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 4,096 output tokens per response.
- What can OpenAI: GPT-4 Turbo do?
- OpenAI: GPT-4 Turbo accepts text, image and returns text. It supports tool calling, structured JSON output.
- How do I call OpenAI: GPT-4 Turbo from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4-turbo". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-4 Turbo?
- Comparable Text models at a similar price: Sakana: Fugu Ultra v2, Sakana: Fugu Ultra, OpenAI: GPT Chat Latest. Each runs through the same API key, so switching is one string.
OpenAI: GPT-4 Turbo community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-4 Turbo.