Skip to Main Content
Economicsecon-009P1

Few-shot extraction minimizes context window usage vs zero-shot verbose.

3well-crafted few-shot examples (150 tokens) outperform a 600-token verbose instruction block, saving 75% on input costs per request.

Context & Methodology

Without concise few-shot examples, developers write lengthy prose instructions that consume 4x more tokens for equivalent or inferior output quality.

Applicable Use Cases

extraction

Applies To

openaianthropicgoogle

Primary Impact

cost

Confidence Level

High

Platform Status

Built

Implementation Effort

low

Recommendation

follow

Execution Priority

P1

Put This Evidence to Work

Use the STCO framework to implement findings like this in structured, testable prompts.

GPT-4o charges $15.00/MTok for output vs $5.00/MTok for input.OpenAI, 'API Pricing' page, updated 2024