Skip to main content

Token Efficiency

AI agents pay for tokens. OMNI Datastream is designed to minimize token consumption while maximizing information density.

The Token Tax

When an AI agent queries SEC data, every byte of the API response consumes tokens. Bloated responses waste money and slow down agent reasoning. OMNI Datastream solves this with compact, purpose-built responses.

Side-by-Side: OMNI vs sec-api.io

Entity Resolution

MetricOMNIsec-api.ioSavings
Response size273 bytes412 bytes34%
Estimated tokens6810334%
Latency62ms231ms73%
MetricOMNIsec-api.ioSavings
Response size500 bytes792 bytes37%
Estimated tokens12519837%
Latency64ms281ms77%

Section Extraction

MetricOMNIsec-api.ioSavings
Response size1,800 bytes2,880 bytes38%
Estimated tokens45072038%
Latency64ms348ms82%

Intelligence Bundles: 75% Token Reduction

A typical “company briefing” requires assembling data from multiple sources:

Traditional Approach (sec-api.io)

1. Entity resolve         →  103 tokens
2. Latest 10-K search     →  198 tokens
3. Item 1A extraction     →  720 tokens
4. Latest 10-Q search     →  198 tokens
5. Executive compensation →  450 tokens
6. Insider trades          →  350 tokens
7. 13F holdings           →  400 tokens
8. Recent 8-K events      →  600 tokens
─────────────────────────────────────
Total: 8 API calls, ~3,019 tokens

OMNI Intelligence Bundle

1. Company intelligence   →  ~800 tokens
─────────────────────────────────────
Total: 1 API call, ~800 tokens
Result: 75% fewer tokens, 87% fewer API calls.

Why OMNI Responses Are Smaller

  1. No wrapper bloat. Responses contain data, not framework metadata.
  2. Compact mode. Use ?view=compact to get minimal responses for agent consumption.
  3. Pre-computed intelligence. One bundle call replaces 8+ raw API calls.
  4. Semantic search. Find relevant content in one call instead of paginating through keyword results.

Measure It Yourself

# Compare response sizes
OMNI_SIZE=$(curl -s "https://api.secapi.ai/v1/entities/resolve?ticker=AAPL" \
  -H "x-api-key: $OMNI_KEY" | wc -c)

SEC_API_SIZE=$(curl -s "https://api.sec-api.io/mapping/ticker/AAPL" \
  -H "Authorization: $SEC_API_KEY" | wc -c)

echo "OMNI: $OMNI_SIZE bytes, sec-api.io: $SEC_API_SIZE bytes"