> For the complete documentation index, see [llms.txt](https://learn.doubletick.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.doubletick.io/ai-agent/how-much-does-one-openai-api-call-cost.md).

# How Much Does One OpenAI API Call Cost?

The cost of a single API call depends on **three main factors**:\
1️The **model** you use (e.g., GPT-3.5 Turbo vs GPT-4 Turbo)\
2️The size of your **input prompt** (number of tokens)\
3️ The length of the **output response** (number of tokens)

***

#### &#x20;**Current Pricing (as of May 2025)**

| Model         | Input Cost (per 1,000 tokens) | Output Cost (per 1,000 tokens) |
| ------------- | ----------------------------- | ------------------------------ |
| GPT-3.5 Turbo | $0.0015                       | $0.002                         |
| GPT-4 Turbo   | $0.01                         | $0.03                          |

***

#### **Example Calculation**

&#x20;**Example Scenario:**

* Input Prompt: 500 tokens
* Output Response: 300 tokens

**GPT-3.5 Turbo**

* 500 input tokens = 0.5K → $0.00075
* 300 output tokens = 0.3K → $0.0006
* **Total:** \~$0.00135 per call

**GPT-4 Turbo**

* 500 input tokens = 0.5K → $0.005
* 300 output tokens = 0.3K → $0.009
* **Total:** \~$0.014 per call

***

#### &#x20;**Average Cost Range**

| Model         | Typical Cost per Call |
| ------------- | --------------------- |
| GPT-3.5 Turbo | \~$0.001 – $0.005     |
| GPT-4 Turbo   | \~$0.01 – $0.05       |

**Note:** Actual cost varies depending on how long your prompts and responses are.

***

#### &#x20;**How to Reduce Cost**

&#x20;Use shorter prompts and responses\
&#x20;Choose GPT-3.5 Turbo for simple tasks\
&#x20;Limit the maximum tokens in your API call

***

#### &#x20;**How to Estimate Your Own Cost**

**Formula:**\
Cost = (Input Tokens ÷ 1,000) × Input Rate + (Output Tokens ÷ 1,000) × Output Rate


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.doubletick.io/ai-agent/how-much-does-one-openai-api-call-cost.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
