{
  "schema_version": 1,
  "id": "operate/iris/langcache/use-langcache",
  "title": "Use the LangCache API on Redis Cloud",
  "url": "https://redis.io/docs/latest/operate/iris/langcache/use-langcache/",
  "summary": "",
  "tags": [
    "docs",
    "operate",
    "iris"
  ],
  "last_updated": "2026-08-07T08:57:54-07:00",
  "page_type": "content",
  "content_hash": "33cd3a66f6c583f52963fc4a701ac659dc324d04597ed8c91c3693a62d1d035b",
  "sections": [
    {
      "id": "content",
      "title": "Content",
      "role": "content",
      "text": "You can use the [LangCache API and SDK](https://redis.io/docs/latest/develop/ai/context-engine/langcache/api-examples) from your client app to store and retrieve LLM, RAG, or agent responses. \n\nTo access the LangCache API, you need:\n\n- LangCache API base URL\n- LangCache service API key\n- Cache ID\n\nFor LangCache on Redis Cloud, the base URL and cache ID are available in the LangCache service's **Configuration** page in the [**Connectivity** section](https://redis.io/docs/latest/operate/iris/langcache/view-edit-cache#connectivity).\n\nThe LangCache API key is only available immediately after you create the LangCache service. If you lost this value, you will need to [replace the service API key](https://redis.io/docs/latest/operate/iris/langcache/view-edit-cache#replace-service-api-key) to be able to use the LangCache API.\n\nWhen you call the API, you need to pass the LangCache API key in the `Authorization` header as a Bearer token and the Cache ID as the `cacheId` path parameter. \n\nSee the [LangCache API and SDK examples](https://redis.io/docs/latest/develop/ai/context-engine/langcache/api-examples) for more information on how to use the LangCache API."
    }
  ],
  "examples": []
}
