DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

Many workloads send the same large context on every call — an agent's system prompt and tools, a long conversation, or a document a user asks many questions about. Prompt Cache Retention lets you keep that context's cache resident for a window you choose — 5 minutes or 1 hour — with a one-line addition to your request. While it's retained, every reuse skips prefill for a faster time to first token and is billed at the discounted cache-read rate. Holding the cache costs a small write premium upfront.
Inference engines already cache prompt prefixes when they can, but that cache is best-effort: under load, older entries are evicted and the next request pays full price to recompute the whole prompt. Retention removes that uncertainty — you decide what stays cached, and for how long. It's built for workloads that reuse a large context repeatedly:
The larger and more frequently reused your context, the bigger the latency and cost savings.
Add two fields to any Chat Completions or Text Completions request:
prompt_cache_key — a stable identifier for the context you're caching (for example a session or agent id). Reuse is matched on this key plus the prompt content.prompt_cache_options — { "mode": "explicit", "ttl": "5m" | "1h" } to retain the prompt for that window.The first request carrying a ttl writes the cache and starts the clock. Later requests that send the same prompt_cache_key reuse it — at the cache-read rate — for as long as the window is alive. Retention is scoped to your account and works with streaming and non-streaming, chat and text-completions.
POST /v1/openai/chat/completionsPOST /v1/openai/completionsPOST https://api.deepinfra.com/v1/openai/chat/completions
{
"model": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
"messages": [ "... your large, reused context ..." ],
"prompt_cache_key": "agent-session-123",
"prompt_cache_options": { "mode": "explicit", "ttl": "1h" }
}
The context is now cached for one hour. This first call still prefills (and is billed the retention write premium on the cached portion). The response reports what was retained in usage.prompt_tokens_details:
{
"id": "chatcmpl-...",
"object": "chat.completion",
"choices": [ "..." ],
"usage": {
"prompt_tokens": 34375,
"total_tokens": 34495,
"completion_tokens": 120,
"prompt_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 32768
}
}
}
cache_write_tokens is the portion that was written to cache and billed at the retention write rate; the remainder is billed as standard input.
Send follow-up requests with the same prompt_cache_key and no ttl. They reuse the retained cache: no prefill, and the reused tokens are billed at the cache-read rate.
{
"model": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
"messages": [ "... same context + a new question ..." ],
"prompt_cache_key": "agent-session-123"
}
Now cached_tokens reports the reused prefix (billed at the cache-read rate) and cache_write_tokens is 0 — no new cache was written:
"usage": {
"prompt_tokens": 34380,
"total_tokens": 34475,
"completion_tokens": 95,
"prompt_tokens_details": {
"cached_tokens": 32768,
"cache_write_tokens": 0
}
}
Most prompts are a stable prefix (system instructions, tools, a document) followed by a variable tail (the user's actual question). You usually only want to retain the stable part. Mark where the reusable prefix ends with a prompt_cache_breakpoint on a content part — retention then applies to everything up to and including that part, and ignores the variable remainder.
{
"model": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
"messages": [
{ "role": "system", "content": [
{ "type": "text",
"text": "... large stable system prompt, tools, and reference context ...",
"prompt_cache_breakpoint": { "mode": "explicit" } }
]},
{ "role": "user", "content": "... the variable question — not retained ..." }
],
"prompt_cache_key": "agent-session-123",
"prompt_cache_options": { "mode": "explicit", "ttl": "1h" }
}
This keeps your retained cache stable across requests even as the question changes, so every follow-up reuses the same prefix.
To keep the cache alive past its original expiry, send a request with a ttl again — it reuses the cache and pushes the deadline out. A shorter ttl sent inside a longer window never shortens it.
{
"model": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
"messages": [ "... same context ..." ],
"prompt_cache_key": "agent-session-123",
"prompt_cache_options": { "mode": "explicit", "ttl": "1h" }
}
Relative to the model's standard input price:
| Action | Rate |
|---|---|
| Reuse a retained prefix (cache read) | model's cache-read rate (e.g. 0.2× input for Nemotron-3-Ultra) |
| Retain for 5 minutes (cache write) | 1.25× input |
| Retain for 1 hour (cache write) | 2.0× input |
| Non-retained input | 1× (standard) |
Only whole cacheable blocks count as cache read/write; any remainder is billed as standard input. The write premium applies only when a request actually creates or extends the retention window — reuse inside a window you've already paid for is billed at the read rate.
Available on select large-context models — NVIDIA Nemotron-3-Ultra-550B-A55B and Moonshot AI Kimi-K2.7-Code — with more to follow. You can verify retention on any request from the usage field of the response: prompt_tokens_details.cache_write_tokens shows how much was retained, and on later calls prompt_tokens_details.cached_tokens shows how much was reused.
You can also rely on a few guarantees:
prompt_cache_key.ttl sent inside a longer window never shortens it; a longer ttl extends it.Add a ttl to your next request, reuse the same prompt_cache_key, and skip the prefill on every call that follows. See the Prompt Cache Retention documentation for the full reference.
Qwen3.5 397B A17B API Benchmarks: Latency, Throughput & Cost<p>About Qwen3.5 397B A17B Qwen3.5 397B A17B is Alibaba Cloud’s largest and most capable multimodal foundation model, released in February 2026. It features a hybrid Mixture-of-Experts (MoE) architecture with 397 billion total parameters and 17 billion active parameters per inference pass, utilizing 512 experts with a routing mechanism selecting a subset per token. This sparse […]</p>
NVIDIA Nemotron 3.5 Lightning Is Live on DeepInfra: Day-Zero Access to the Fastest Open Model for AgentsNVIDIA Nemotron 3.5 Lightning is available on DeepInfra's serverless API from day zero. It's a 30B hybrid MoE model with 3B active parameters, a 1M-token context window, and up to 4x higher throughput for high-volume agentic workloads.
Kimi K3: Comprehensive Model Analysis & API Provider Comparison<p>Moonshot AI’s Kimi K3 represents a significant leap in open-weight AI model development. Released on July 16, 2026, this 2.8-trillion-parameter reasoning model has quickly become a focal point for developers seeking frontier-level intelligence with the flexibility of open weights. This analysis evaluates Kimi K3’s technical specifications, benchmark performance, and compares the leading API providers offering […]</p>
© 2026 DeepInfra. All rights reserved.