OpenAI logo
LLM

4O

OpenAI GPT 4.0 N/A

Fast, intelligent, flexible GPT model with robust reasoning and up to 128k context window.

Model Capabilities

Input

Accepted Formats

Text
Vision (General)

Input Length

Context Window: 128K Tokens

Output

Generated Formats

Text

Output Length

Max Output: 16,384 Tokens

Core Features & Strengths

Function Calling / Tools
Prompt Caching

Specifications & Pricing

Specifications

Model Size: 0 params
Architecture: Transformer

Pricing

Input / 1M tk

$2.5000

Output / 1M tk

$10.0000

Cached Input

$1.2500

Cached Output

$5.0000

Est. cost in USD

Rate limits up to Tier 5: 30,000,000 TPM

Usage Guidance

Prompting Guide

General Tips

  • **Be Specific & Clear:** Detail the desired outcome, format, tone, and constraints.
  • **Provide Context:** Explain the background, your role, or the purpose (e.g., "Act as a helpful architect...").
  • **Specify Format:** Request bullet points, JSON, markdown, code blocks, etc.
  • **Use Examples (Few-Shot):** Provide 1-3 examples of input/output for complex tasks.
  • **Iterate:** Refine prompts based on the model's responses. Don't expect perfection first try.

Vision Prompt Example

Analyze the attached site plan. List potential challenges for drainage and suggest mitigation strategies.

Function Calling Example

"Book a meeting room for 3 people tomorrow at 2 PM for 1 hour. Find available rooms first."

// Model should trigger 'find_rooms' then 'book_room'