{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "How to save LLM tokens: caching, routing and prompt caching in practice",
    "canonical_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-11-22T00:00:00+00:00"
  },
  "summary": "Practical ways to cut LLM costs: response caching, model routing, prompt caching, and tracking daily usage.",
  "topics": [
    "token savings",
    "prompt caching",
    "model routing",
    "LLM cost"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "token savings",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "prompt caching",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "model routing",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "LLM cost",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "OpenAI",
      "type": "компания",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E7",
      "name": "Anthropic",
      "type": "компания",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E8",
      "name": "Claude",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E9",
      "name": "GPT-4",
      "type": "продукт/модель",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-KAKSEKONOM-001",
      "statement": "Python 3.9+ installed.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Python 3.9+ installed."
    },
    {
      "id": "AR-GUIDE-KAKSEKONOM-002",
      "statement": "An API key for a provider that supports prompt caching (Anthropic Claude, OpenAI GPT-4 class models).",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "An API key for a provider that supports prompt caching (Anthropic Claude, OpenAI GPT-4 class models)."
    },
    {
      "id": "AR-GUIDE-KAKSEKONOM-003",
      "statement": "The official SDK: `pip install anthropic openai`.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "The official SDK: `pip install anthropic openai`."
    },
    {
      "id": "AR-GUIDE-KAKSEKONOM-004",
      "statement": "Caching never activates.",
      "claim_type": "guide_fact",
      "confidence": "editorial_assessment",
      "source_type": "анализ AI Release",
      "verification_status": "editorial_analysis",
      "source_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
      "article_anchor": "#problems",
      "evidence_excerpt": "Caching never activates."
    },
    {
      "id": "AR-GUIDE-KAKSEKONOM-005",
      "statement": "The router sends complex tasks to the small model.",
      "claim_type": "guide_fact",
      "confidence": "editorial_assessment",
      "source_type": "анализ AI Release",
      "verification_status": "editorial_analysis",
      "source_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
      "article_anchor": "#problems",
      "evidence_excerpt": "The router sends complex tasks to the small model."
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "How to save LLM tokens: caching, routing and prompt caching in practice",
      "claim_id": "AR-GUIDE-KAKSEKONOM-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is this guide about?",
      "answer": "Practical ways to cut LLM costs: response caching, model routing, prompt caching, and tracking daily usage.",
      "claim_ids": [
        "AR-GUIDE-KAKSEKONOM-001"
      ],
      "article_anchor": "#suschnost"
    },
    {
      "question": "What is required?",
      "answer": "Python 3.9+ installed.; An API key for a provider that supports prompt caching (Anthropic Claude, OpenAI GPT-4 class models).; The official SDK: `pip install anthropic openai`.; Optional: an embedding model and a vector store (FAISS, Chroma) for semantic caching.",
      "claim_ids": [
        "AR-GUIDE-KAKSEKONOM-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "What can go wrong?",
      "answer": "Caching never activates.",
      "claim_ids": [
        "AR-GUIDE-KAKSEKONOM-006"
      ],
      "article_anchor": "#problems"
    }
  ],
  "limitations": [
    "Caching never activates.",
    "The router sends complex tasks to the small model.",
    "Semantic cache returns stale answers."
  ],
  "citation": {
    "preferred_citation": "AI Release. Как экономить токены LLM: кэш, роутинг и prompt caching на практике. https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
    "canonical_url": "https://ai-release.org/guides/kak-sekonomit-tokeny-llm_en.html",
    "publisher": "AI Release"
  }
}