OpenAIPaidOperational
Gpt 4
API model name: gpt-4
Gpt 4 is OpenAI's chat model, served on the Api.Airforce unified API. It has a 8K-token context window. Capabilities include Tool calling. It is priced at $6.42 per million input tokens and $12.84 per million output tokens. Knowledge cutoff: 2021-09-30. Access it through the OpenAI-compatible API with one key, alongside 65+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- OpenAI
- Type
- chat model
- Context window
- 8K tokens
- Max output
- 4K tokens
- Knowledge cutoff
- 2021-09-30
- Input
- text
- Output
- text
Capabilities
Tool callingStreaming
What is Gpt 4 used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
- Agents & automation — function calling and tool use for multi-step workflows.
- Real-time experiences — stream tokens for responsive chat and apps.
Gpt 4 vs. similar models
| Model | Context | Input / 1M | Output / 1M |
|---|---|---|---|
| Gpt 4 | 8K | $6.42 | $12.84 |
| Gpt 3.5 | — | — | — |
| Gpt 3.5 Turbo 16k | — | — | — |
| Gpt 4 0125 | — | $2.13 | $4.29 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Chatgpt ImageOpenAIDall E 2OpenAI · $10.00 / 1MDall E 3OpenAI · $20.00 / 1MGpt 3.5OpenAIGpt 3.5 Turbo 16kOpenAIGpt 4 0125OpenAI · $2.13 / 1MGpt 4 1106OpenAI · $2.13 / 1MGpt 4 32kOpenAIGpt 4 AllOpenAI · $5.13 / 1MGpt 4 TurboOpenAI · $2.13 / 1MGpt 4 VisionOpenAI · $2.13 / 1MGpt 4.1OpenAI · $0.42 / 1M
Gpt 4 — frequently asked questions
- How much does Gpt 4 cost?
- Gpt 4 is billed pay-as-you-go at $6.42 per 1M input tokens and $12.84 per 1M output tokens. There is no subscription — you only pay for what you use.
- What is the context window of Gpt 4?
- Gpt 4 supports a context window of up to 8K tokens. It can return up to 4K tokens in a single response.
- What can Gpt 4 do?
- Gpt 4 supports Tool calling.
- Is Gpt 4 free to use?
- Gpt 4 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Gpt 4 via the API?
- Gpt 4 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID gpt-4 with your Api.Airforce API key.
- Who makes Gpt 4?
- Gpt 4 is OpenAI's chat model, served through the unified Api.Airforce gateway alongside 65+ other models.
Loading live metrics…
Loading live metrics…
Use Gpt 4 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass gpt-4 as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "gpt-4",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);