← Reddit

Anthropic removed temperature from the newest models, so I put it back by rendering the prompt as an image and physically smudging it

Reddit · laul_pogan · July 7, 2026
A developer created a CLI tool circumventing Anthropic's removal of the temperature parameter from recent Claude models by rendering prompts as visually degraded images. The tool adds blur, grain, and jitter to prompt images, causing OCR misreads that function as sampling noise and increased output variability threefold in testing. The creator characterizes the approach as a conceptual demonstration rather than a production-ready sampling mechanism.

Detailed Analysis

A developer-shared project describes an unusual response to a purported change in Anthropic's API: newer Claude models allegedly reject requests that include a `temperature` parameter, returning a 400 error and pushing users toward prompt-based steering instead of numeric sampling controls. In reaction, the author built a small command-line tool that restores randomness through an entirely different mechanism—rendering the input prompt as a PNG image, then applying blur, photocopier-style grain, and baseline jitter before feeding it to Claude as visual input rather than plain text. Because optical character recognition becomes unreliable past a certain distortion threshold, the model's misreadings of the smudged text function as a proxy for sampling noise, with the tool exposing this as a `--temperature` flag that maps to blur intensity.

The technical claim behind the hack is that image-based misreading can approximate the statistical effect of temperature: on a prompt that Opus normally answers identically across repeated calls, increasing the smudge level reportedly tripled the mean pairwise edit distance between outputs, measured via the `claude -p` CLI rather than the API directly. The author also notes an implementation detail—blur radius must scale with font size, since at high resolution the model simply reads through the noise and produces the original, unperturbed answer. This is a workaround built on top of a known quirk in how vision-capable LLMs bill and process image input: dense text rendered as a picture is charged by pixel area rather than token count, which is the same property that tools like "pxpipe" have reportedly exploited purely for cost reduction. Here, the exploit is repurposed not to save money but to reintroduce a degree of freedom the model provider intentionally removed.

The significance of this project, whether read as a genuine technical trick or as a pointed piece of commentary, lies in what it reveals about the tension between provider-controlled model behavior and developer demand for low-level control. Temperature has long been a standard lever for balancing determinism against creativity in LLM outputs, and its removal—if accurate—reflects a broader industry trend of abstracting away raw sampling parameters in favor of "steer with prompting" guidance, ostensibly to make model behavior more predictable, auditable, and safe by default. Frontier labs increasingly favor constrained, opinionated APIs that reduce the surface area for misuse or inconsistent outputs, especially as models are embedded in agentic and enterprise workflows where reproducibility matters. This shift mirrors patterns seen elsewhere in AI infrastructure, where providers trade fine-grained user control for guardrails, then face community-driven workarounds that route around those limits through creative reinterpretation of input modalities.

More broadly, the piece is illustrative of a recurring dynamic in applied AI development: when a platform closes off a parameter, sufficiently motivated users find adjacent surfaces—here, image-based OCR noise—to reconstruct the lost functionality, even if the result is acknowledged as a "meme" rather than a production-grade solution. The explicit caveat that byte-exact content like IDs, hashes, or editable code should remain as plain text underscores that this is a narrow, almost novelty-grade technique rather than a robust alternative sampling method. Still, its existence highlights how billing quirks (image input priced by area) and multimodal input pathways can become unintended side channels for behavior that text-only APIs no longer expose, a pattern likely to recur as more capabilities get locked behind opinionated, safety-oriented defaults across the industry.

Read original article →