Sign in

Developer docs

Choose your integration path

PromptCacheAI sits before your model provider. Start with the SDK if you are building in Node or TypeScript, or use the REST API directly if you want full control or are integrating from another language.

Recommended

Quickstart with SDK

Install @promptcacheai/sdk, wrap your existing model call, and keep PromptCacheAI fail-open by default.

Manual integration

REST API Integration

Call /chat before your provider and save successful model responses with /cache/save.

Recommended rollout

  1. Create an API key.
  2. Create a namespace in test mode.
  3. Integrate with the SDK or REST API.
  4. Review cached responses and prompt variants in the dashboard.
  5. Switch the namespace to live when the cache behavior looks trustworthy.

For shared concepts like namespaces, similarity matching, validation, prompt variants, TTLs, and dashboard analytics, read How PromptCacheAI Works.

PromptCacheAI Developer Docs | PromptCacheAI