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-3.5 Turbo
openai/gpt-3.5-turboTry OpenAI: GPT-3.5 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-3.5 Turbo at a glance
- Input price is 11% higher than the median of 434 Text models.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- A typical request (1,000 input / 500 output tokens) costs about $0.00437.
About OpenAI: GPT-3.5 Turbo
GPT-3.5 Turbo is a text model from OpenAI, identified on api14 as openai/gpt-3.5-turbo. OpenAI describes it as its fastest model, and it was released by the provider on 2023-05-28. It sits in the text category and is built to understand and generate natural language or code, with optimisation for chat and traditional completion tasks. If you are choosing a general purpose OpenAI model for everyday text work, this is the long standing default that much of the ecosystem was built around.
The model accepts text as input and returns text as output, so there is no image, audio or file handling to plan for. Its context window is 16,385 tokens, and the maximum output is 4,096 tokens, which means long inputs are possible but the reply itself is capped well below the context size. The knowledge cutoff is 2021-09-30, so anything after that date has to come from the prompt rather than from the model's training data. Supported request parameters include temperature, top_p, max_tokens, stop, frequency_penalty, presence_penalty, logit_bias, logprobs, top_logprobs, seed, response_format, structured_outputs, tools and tool_choice.
Those capabilities map onto a fairly wide set of practical jobs. Chat assistants, drafting and rewriting, summarisation of documents that fit inside the context window, classification and extraction into a fixed shape, and code generation or explanation are all reasonable fits, since the model handles both natural language and code. Because tools and tool_choice are supported, you can define function schemas and let the model decide when to call them, which suits agent style workflows and retrieval pipelines where the model needs to request data. The seed parameter helps when you want repeatable sampling, and response_format plus structured_outputs are useful when a downstream parser expects a predictable structure rather than free prose.
Calling it through api14 works the same way as any other OpenAI-compatible endpoint. Send your request to the chat completions route with the model id openai/gpt-3.5-turbo, and use the parameters listed above in the request body as needed. If you already have code written against the OpenAI SDK or a compatible client, pointing the base URL at api14 and swapping the model id is normally the only change required.
Two constraints are worth keeping in mind before you commit. The 2021-09-30 knowledge cutoff means the model will not know about recent events, libraries or APIs unless you supply that context, and the 4,096 token output ceiling limits how much it can produce in a single response. For very large inputs, very long generations, or tasks that depend on recent knowledge, a different model on api14 may serve you better.
How to call the OpenAI: GPT-3.5 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-3.5-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-3.5-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
- 16,385
- Max output
- 4,096
- Input
- text
- Output
- text
- Knowledge cutoff
- 2021-09-30
Requests on api14 · last 7 days
OpenAI: GPT-3.5 Turbo: frequently asked questions
- How much does the OpenAI: GPT-3.5 Turbo API cost?
- OpenAI: GPT-3.5 Turbo costs Input $1.75 / 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-3.5 Turbo?
- OpenAI: GPT-3.5 Turbo reads up to 16,385 tokens per request: prompt, history and documents together. It writes up to 4,096 output tokens per response.
- What can OpenAI: GPT-3.5 Turbo do?
- OpenAI: GPT-3.5 Turbo accepts text and returns text. It supports tool calling, structured JSON output.
- How do I call OpenAI: GPT-3.5 Turbo from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-3.5-turbo". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-3.5 Turbo?
- Comparable Text models at a similar price: Mistral: Mistral Large 3 2512, OpenAI: GPT-4.1 Mini, Perplexity: Sonar. Each runs through the same API key, so switching is one string.
OpenAI: GPT-3.5 Turbo community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-3.5 Turbo.