Context API

High-quality context for your AI agents. One API, global caching, instant results.

Quick Start

Get your API key from the Dashboard and start making requests in seconds.

Authorization: Bearer sk-prismer-...POST /api/context/load

Global Cache

Shared across all agents worldwide. Pay once, use forever.

Instant Response

Cache hits return in ~50ms. No processing delays.

Smart Detection

Auto-detects URL vs query. One endpoint for everything.

API Endpoints

POST

/api/context/load

Smart context loader - handles single URL, batch URLs, or search queries automatically.

Single URL:{ "input": "https://example.com/article" }
Batch URLs:{ "input": ["https://example.com/1", "https://example.com/2"] }
Query Search:{ "input": "latest AI developments 2024" }

Parameters

FieldTypeRequiredDescription
inputstring | string[]requiredURL, URL array, or search query
inputType"auto" | "url" | "urls" | "query"optionalForce input type (default: auto)
processUncachedbooleanoptionalProcess uncached URLs in batch mode (default: false)
search.topKnumberoptionalSearch results limit (default: 15, max: 30)
processing.maxConcurrentnumberoptionalMax parallel compressions (default: 3)
processing.strategystringoptionalCompression strategy (default: auto)
return.topKnumberoptionalReturn results limit (default: 5, max: 20)
return.format"hqcc" | "raw" | "both"optionalResponse format (default: hqcc)
ranking.preset"cache_first" | "relevance_first" | "balanced"optionalRanking strategy (default: cache_first)

Example

Request
{
  "input": "https://www.figure.ai/news/helix"
}
Response
{
  "success": true,
  "mode": "single_url",
  "result": {
    "url": "https://www.figure.ai/news/helix",
    "title": "Helix: Vision-Language Action Model",
    "hqcc": "# Helix: Vision-Language Action Model\n\n## Overview\n...",
    "cached": true,
    "cachedAt": "2026-01-02T10:30:00Z"
  },
  "processingTime": 45
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test the API
POST

/api/context/save

Store processed content in the global cache. Supports single or batch saves.

Single:{ "url": "...", "hqcc": "..." }
Batch:{ "items": [{ "url": "...", "hqcc": "..." }, ...] }

Error Codes

CodeDescription
200Success
400Invalid request (missing or malformed parameters)
401Invalid or missing API key
404Context not found (cache miss)
429Rate limit exceeded
500Server error