{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "Claude 5-Minute Prompt Cache vs GPT 30-Minute Cache: Configuring TTL and the Cost of Pauses",
    "canonical_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-12-02T00:00:00+00:00"
  },
  "summary": "Time to complete: 15–20 minutes in total. The Claude path (setting the TTL yourself) takes about 5 minutes; the OpenAI path takes about 30 because the cache is provider-managed and you can only measure it, not configure it. Difficulty: Intermediate",
  "topics": [
    "prompt caching TTL",
    "кэш промптов Claude или GPT",
    "сколько стоит кэширование промптов"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "prompt caching TTL",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "кэш промптов Claude или GPT",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "сколько стоит кэширование промптов",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "Windows",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "Linux",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "macOS",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E7",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E8",
      "name": "OpenAI",
      "type": "компания",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E9",
      "name": "Anthropic",
      "type": "компания",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E10",
      "name": "Claude",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-KESHPROMPT-001",
      "statement": "Time to complete: 15–20 minutes in total. The Claude path (setting the TTL yourself) takes about 5 minutes; the OpenAI path takes about 30 because the cache is provider-managed and you can only measure it, not configure it.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Time to complete: 15–20 minutes in total. The Claude path (setting the TTL yourself) takes about 5 minutes; the OpenAI path takes about 30 because the cache is provider-managed and you can only measure it, not configure it."
    },
    {
      "id": "AR-GUIDE-KESHPROMPT-002",
      "statement": "Difficulty: Intermediate",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Difficulty: Intermediate"
    },
    {
      "id": "AR-GUIDE-KESHPROMPT-003",
      "statement": "You need: Python 3.10+, the anthropic and openai SDKs, an ANTHROPIC_API_KEY and an OPENAI_API_KEY, a stable prompt prefix of a few thousand tokens, and shell access to the machine that runs your agent.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "You need: Python 3.10+, the anthropic and openai SDKs, an ANTHROPIC_API_KEY and an OPENAI_API_KEY, a stable prompt prefix of a few thousand tokens, and shell access to the machine that runs your agent."
    },
    {
      "id": "AR-GUIDE-KESHPROMPT-004",
      "statement": "Linux or macOS with a POSIX shell; Windows works through WSL2 with the same commands.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Linux or macOS with a POSIX shell; Windows works through WSL2 with the same commands."
    },
    {
      "id": "AR-GUIDE-KESHPROMPT-005",
      "statement": "Python 3.10 or newer: python3 --version must print 3.10 or higher.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Python 3.10 or newer: python3 --version must print 3.10 or higher."
    },
    {
      "id": "AR-GUIDE-KESHPROMPT-006",
      "statement": "The anthropic and openai SDKs installed in an isolated virtualenv. Pin them in requirements.txt and read the SDK changelog before upgrading, because cache-related fields have been added over time.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "The anthropic and openai SDKs installed in an isolated virtualenv. Pin them in requirements.txt and read the SDK changelog before upgrading, because cache-related fields have been added over time."
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "Claude 5-Minute Prompt Cache vs GPT 30-Minute Cache: Configuring TTL and the Cost of Pauses",
      "claim_id": "AR-GUIDE-KESHPROMPT-001"
    },
    {
      "subject": "Guide",
      "predicate": "includes step",
      "object": "Step 1. Split the prompt into a frozen prefix and a volatile tail",
      "claim_id": "AR-GUIDE-KESHPROMPT-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is required?",
      "answer": "Linux or macOS with a POSIX shell; Windows works through WSL2 with the same commands.; Python 3.10 or newer: python3 --version must print 3.10 or higher.; The anthropic and openai SDKs installed in an isolated virtualenv. Pin them in requirements.txt and read the SDK changelog before upgrading, because cache-related…",
      "claim_ids": [
        "AR-GUIDE-KESHPROMPT-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "How to do it?",
      "answer": "Step 1. Split the prompt into a frozen prefix and a volatile tail → Step 2. Set the TTL on Claude, set the key on OpenAI → Step 3. Survive a pause: TTL choice or keepalive ping",
      "claim_ids": [
        "AR-GUIDE-KESHPROMPT-004"
      ],
      "article_anchor": "#step-1"
    },
    {
      "question": "Which topics does it cover?",
      "answer": "prompt caching TTL, кэш промптов Claude или GPT, сколько стоит кэширование промптов",
      "claim_ids": [
        "AR-GUIDE-KESHPROMPT-002"
      ],
      "article_anchor": "#entities"
    },
    {
      "question": "What are the key points?",
      "answer": "Time to complete: 15–20 minutes in total. The Claude path (setting the TTL yourself) takes about 5 minutes; the OpenAI path takes about 30 because the cache is provider-managed and you can only measure it, not configure it. Difficulty: Intermediate",
      "claim_ids": [
        "AR-GUIDE-KESHPROMPT-007"
      ],
      "article_anchor": "#tldr"
    }
  ],
  "limitations": [
    "Current versions, prices and limits.",
    "Independent benchmarks and quality checks.",
    "Terms of use and data policy."
  ],
  "citation": {
    "preferred_citation": "AI Release. Кэш промптов Claude (5 минут) или GPT (30 минут): как настроить TTL и не переплачивать за паузы в работе агента. https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
    "canonical_url": "https://ai-release.org/guides/kesh-promptov-claude-5-minut-ili-gpt-30-minut-kak-nastr_en.html",
    "publisher": "AI Release"
  }
}