Why Thin Chart Lines Disappear: Vision Token Ceilings, 39-Endpoint GLM-5.3 Flash Audit & Hidden Multi-Image Caps
Our October 2026 Snellen eye-chart study showed that
different OpenRouter endpoints of the exact same VLM can differ by up to 7.5× in vision resolution. In
December 2026—originally prompted while hardening high-resolution trading chart analysis at
Gambit—we tested what happens on
realistic 1920×1080 and 2560×1440 candlestick charts with unlabeled 1px–2px drawn
lines across 20 models, swept all 39 live endpoints of z-ai/glm-5.3-flash, and
binary-searched undocumented per-endpoint max_images ceilings and multi-chart scaling.
Headline Findings (Verified Against Raw JSON Receipts, 1–2 Dec 2026):
- Hard model vision ceiling (~970 tok/image):
deepseek/deepseek-v4.1-flashencodes both1920×1080and2560×1440PNGs to 986–988 prompt tokens identically underdefault,detail: "high", anddetail: "original"across Fireworks, Together, CoreWeave, and DeepInfra—5.1× fewer vision tokens than Claude 5.5 (4,853–5,051) and 5.0× fewer than GLM-5.3 Flash (4,943–5,117). On a2560×1440BTC chart, it completely missed a 1px sky-blue line at$104,800(hMAE = $2,550) and snapped levels to$2,000gridlines (§2). - Google Vertex 4.1× silent downscaling on top of that:
google-vertex/globalbilled just 240 prompt tokens vs. 986 on identical1920×1080input (4.1× smaller), misreading NVDA close145.60 → 148.68and support$134.25 → $115.00($19.25error,6.5/11). - 39-endpoint live sweep of
z-ai/glm-5.3-flash: 36/39 endpoints served full native4,943tokens and scored 10.0/10 (hMAE = $67–$233), while 3/39 (relace/fp4,sail-research/us,sail-research/fp4) returned HTTP 404 (no image support) despite being listed. Settingreasoning: {"enabled": false}returns HTTP 400 on 5/5 providers, while omittingreasoningsilently triggerseffort: "max"(2–4× cost); explicitly passingeffort: "low"cuts cost to$0.00020–$0.00081/chart (0.8–2.3s)—faster and cheaper than Claude Haiku 5.5 (§4). - Undocumented hard
max_imageslimits & parallel-vs-batched multi-image scaling: OpenRouter's/endpointsmetadata publishes nomax_imagesfield, yet endpoints silently enforce hard caps (glm-5.3-flash:deepinfra= 30 exact,glm-5.3-flash:together= 64 exact, others ≥ 100), andglm-5.3-flash:coreweavestalled at 53.5–66.6s per vision call. All 8 endpoints scaled linearly (0.99×, zero multi-image resolution crush), and parallel 1-image calls beat single batched multi-image calls on dense 10-chart turns (40 thin 1px lines:37/40 → 40/40, andN=6latency dropped 2.8× from6.75s → 2.40s) (§5).
1. Ground-Truth Charts & Controls
Both reference charts are deterministic dark-mode candlestick PNGs (generate_charts.py) with unlabeled drawn trendlines and horizontal levels—forcing models to trace each colored 1px–2px line across to the right-side price axis rather than reading an on-chart label.
1920×1080 PNG, 36.9 KB): NVDA · 4h · NASDAQ (Close 145.60; Y-axis 120–160, step 2.50). Unlabeled 2px lines: cyan horiz 148.50, orange horiz 134.25, purple dashed horiz 154.00, yellow ascending diagonal 126.00 → 142.60.
2560×1440 PNG, 37.5 KB): BTCUSDT · 1D · BINANCE (Close 97,850; Y-axis 80,000–112,000, step 2,000). Unlabeled lines: 1px sky-blue horiz 104,800, 2px green horiz 91,500, 1px white horiz 86,200, 2px red descending diagonal 108,400 → 93,200.Transport & compression controls: (1) OpenRouter's HTTP image URL fetcher does zero downscaling—fetching a public PNG URL vs. sending the exact bytes as data:image/png;base64,... billed identical prompt tokens (1,008 == 1,008 on DeepSeek V4.1 Flash; 4,757 == 4,757 on Claude Haiku 5.5; bench_url_vs_b64.py). (2) Re-encoding Chart A as JPEG quality=80 scored identically to lossless PNG (11.0/11, hMAE = $0.02, dMAE = $0.05 on Haiku 5.5).
2. DeepSeek V4.1 Flash's Hard ~970-Token Ceiling & Vertex 4.1× Downscale
Probing deepseek/deepseek-v4.1-flash across resolutions from 512×288 up to 2560×1440 and across all three detail settings proves the ~970-image-token cap is baked into the model's vision preprocessor—while google-vertex/global silently crushes it another 4.1×:
| Model | Provider Tag | Input Size | detail | Prompt Tokens | Est. Image Tok | Cost |
|---|---|---|---|---|---|---|
| deepseek-v4.1-flash | fireworks | 512×288 | omitted | 210 | ~195 | $0.00003 |
| deepseek-v4.1-flash | fireworks | 1024×576 | omitted | 384 | ~369 | $0.00006 |
| deepseek-v4.1-flash | fireworks | 1920×1080 | omitted / high / original | 986 | ~970 | $0.00015 |
| deepseek-v4.1-flash | fireworks | 2560×1440 | omitted | 986 | ~970 | $0.00015 |
| deepseek-v4.1-flash | together | 1920×1080 | omitted / high | 988 | ~970 | $0.00030 |
| deepseek-v4.1-flash | coreweave/fp8 | 1920×1080 / 2560×1440 | omitted | 986 | ~970 | $0.00013 |
| deepseek-v4.1-flash | deepinfra/fp8 | 1920×1080 | omitted | 986 | ~970 | $0.00014 |
| deepseek-v4.1-flash | google-vertex/global | 1920×1080 | omitted | 240 | ~225 (4.1× cap!) | $0.00008 |
| deepseek-v4-flash-vision-exp | deepinfra | 1920×1080 / 2560×1440 | omitted | 386 | ~370 (2.6× cap) | $0.00009 |
What fails in practice: On Chart B (2560×1440), full-spec DeepSeek V4.1 Flash (fireworks/together/coreweave) returned $97,850 for the 1px sky-blue $104,800 line (a $6,950 error, hMAE = $2,550); in unprompted open-ended reading (max_tokens = 8000), coreweave stated "There are three distinct drawn lines" (omitting the 1px sky-blue line entirely) and all three snapped levels to $2,000 gridlines. On Vertex (240 image tokens), Chart A degraded to 6.5/11 (hMAE = $7.08).
3. 20-Model Head-to-Head Chart Precision & Two-Stage Open-Weights Pattern
Structured JSON grading at temperature: 0.0, max_tokens: 2500 (rows marked budget exhausted 2,500 tokens inside hidden reasoning before emitting JSON):
| Model / Configuration | Chart A | A hMAE | Chart B | B hMAE | B dMAE | B pt | B Latency | B Cost |
|---|---|---|---|---|---|---|---|---|
| anthropic/claude-sonnet-5.5 | 11.0/11 | $0.03 | 10.0/10 | $0 | $0 | 5,051 | 4.65s | $0.0142 |
| openai/gpt-5.6-terra (high) | 11.0/11 | $0.00 | 10.0/10 | $0 | $25 | 2,916 | 20.26s | $0.0254 |
| openai/gpt-5.6-luna (high) | 11.0/11 | $0.02 | 10.0/10 | $0 | $50 | 2,916 | 9.77s | $0.0019 |
| anthropic/claude-haiku-5.5 | 11.0/11 | $0.02 | 10.0/10 | $33 | $25 | 5,051 | 4.07s | $0.0009 |
| z-ai/glm-5.3-flash (coreweave, default max) | 11.0/11 | $0.08 | 10.0/10 | $33 | $50 | 4,943 | 6.56s | $0.0014 |
| z-ai/glm-5.3-flash (together, effort="low") | — | — | 10.0/10 | $67 | $150 | 4,943 | 1.04s | $0.00081 |
| z-ai/glm-5.3-flash (wafer/nvfp4, effort="low") | — | — | 10.0/10 | $67 | $50 | 4,943 | 1.63s | $0.00036 |
| openai/gpt-5.4 (high) | 11.0/11 | $0.05 | 10.0/10 | $100 | $75 | 2,916 | 1.73s | $0.0044 |
| openai/gpt-5.4-mini (high) | 11.0/11 | $0.08 | 10.0/10 | $117 | $50 | 2,916 | 1.63s | $0.0025 |
| z-ai/glm-5v-turbo | 11.0/11 | $0.42 | 10.0/10 | $233 | $50 | 4,936 | 16.59s | $0.0088 |
| x-ai/grok-4.20 | 11.0/11 | $0.25 | 10.0/10 | $333 | $200 | 2,766 | 1.36s | $0.0036 |
| moonshotai/kimi-k3 | 11.0/11 | $0.08 | budget | — | — | 5,027 | 16.28s | $0.0524 |
| google/gemini-3.6-flash | 11.0/11 | $0.08 | budget | — | — | 1,276 | 11.51s | $0.0103 |
| qwen/qwen3.8-27b (coreweave/fp8) | 9.5/11 | $0.92 | budget | — | — | 3,812 | 17.80s | $0.0090 |
| deepseek-v4.1-flash (together, r=on) | 10.5/11 | $0.33 | 9.0/10 | $2,550 | $150 | 1,165 | 2.48s | $0.0016 |
| deepseek-v4.1-flash (fireworks, r=off) | 11.0/11 | $0.12 | 9.0/10 | $2,550 | $400 | 1,137 | 1.19s | $0.0002 |
| deepseek-v4.1-flash (google-vertex/global) | 6.5/11 | $7.08 | budget | — | — | 417 | 12.39s | $0.0031 |
Two-stage open-weights pattern: Pairing a fast, high-res vision pre-pass (z-ai/glm-5.3-flash at reasoning: {"enabled": true, "effort": "low"}, injecting an untrusted structured visual readout) in front of deepseek-v4.1-flash raised Chart B accuracy from 9.0/10 (hMAE = $2,550) to 10.0/10 (hMAE = $67, $0 error on both 1px lines) at $0.00082–$0.00125 total turn cost—flat or cheaper than running DeepSeek V4.1 Flash reasoning alone ($0.0016), because Stage 2 stops burning thousands of reasoning tokens squinting at blurry lines.
4. Complete 39-Endpoint Live Vision Audit of z-ai/glm-5.3-flash
Sweeping all 39 live endpoints returned by OpenRouter's /api/v1/models/z-ai/glm-5.3-flash/endpoints on 2 December 2026 (bench_glm_all_providers.py, total spend $0.0230) uncovered three operational surprises:
- Mandatory-reasoning trap: Passing
reasoning: {"enabled": false}returns HTTP 400 ("Reasoning is mandatory for this endpoint and cannot be disabled") on 5/5 providers. Omittingreasoningsilently triggersdefault_effort: "max"($0.0014–$0.0029,6.5–22s—more expensive than Claude Haiku 5.5). Explicitly passingreasoning: {"enabled": true, "effort": "low"}drops cost to$0.00020–$0.00081and latency to0.8–2.3swith10/10accuracy. - 3/39 endpoints return HTTP 404 on images:
relace/fp4,sail-research/us, andsail-research/fp4were removed by OpenRouter's Filter by Image Support despite appearing in the model's live endpoint list. - 36/39 served full native
4,943–4,945tokens and scored10.0/10on Chart B—fromtogether/us(826 ms,hMAE = $67),particle-ai/nvfp4(1,061 ms,hMAE = $67,dMAE = $50), andwafer/nvfp4($0.00036,hMAE = $67) topareto-inference/nvfp4($0.00020) and slower outliers likedarkbloom/fp4(8,398 ms),baidu/fp8(5,629 ms), andz-ai/fp8(4,400 ms). Historical downscalers caught in our Oct 30 Snellen sweep (open-inference18×,primeintellect2.8×,tenstorrent2.8×,morph1.5×) were absent from the Dec 2 live catalog, whilesiliconflow/fp8remained slow (3,911 ms).
5. Undocumented Per-Endpoint max_images Caps & Multi-Image Scaling
OpenRouter's /api/v1/models/{slug}/endpoints API publishes no max_images field for any endpoint—yet upstream providers and OpenRouter's router silently enforce hard per-request integer limits. We probed 8 endpoints with N = 1, 5, 10 distinct 1920×1080 PNGs, N = 24 512×288 PNGs, and binary-searched N = 32..100 (bench_multi_image.py):
| Model & Provider | 1080p × 1 | 1080p × 5 | 1080p × 10 | Scaling | Exact Max Images / Req | Latency (1→10×1080p) | Behavior |
|---|---|---|---|---|---|---|---|
| glm-5.3-flash:together | 2,714 | 13,486 | 26,951 | 0.99× linear | 64 (exact) | 0.73s → 1.94s | N=65 → HTTP 400 ("limit of 64") |
| glm-5.3-flash:fireworks | 2,714 | 13,486 | 26,951 | 0.99× linear | ≥ 100 | 0.89s → 2.36s | Passed N=100 cleanly |
| glm-5.3-flash:deepinfra | 2,714 | 13,486 | 26,951 | 0.99× linear | 30 (exact) | 1.00s → 2.86s | N=31 → HTTP 404 (filtered out by router) |
| glm-5.3-flash:baseten | 2,715 | 13,487 | HTTP 429 | 0.99× linear | ≥ 100 | 0.57s → 1.30s (5×) | Passed N=100; hit 429 on 10×1080p |
| glm-5.3-flash:coreweave | 2,714 | 13,486 | 26,951 | 0.99× linear | ≥ 100 | 53.5s – 66.6s | 30–60× latency stall on GLM vision |
| ds4.1-flash:fireworks | 984 | 4,860 | 9,705 | 0.99× linear | ≥ 100 | 0.75s → 1.47s | ~970 tok cap is strictly per-image |
| ds4.1-flash:together | 986 | 4,866 | 9,716 | 0.99× linear | ≥ 100 | 0.70s → 2.56s | ~970 tok cap is strictly per-image |
| ds4.1-flash:coreweave | 984 | 4,860 | 9,705 | 0.99× linear | ≥ 100 | 0.82s → 1.80s | Fast on DeepSeek (stall is GLM-only) |
10-way concurrent burst & parallel per-image vs. batched multi-chart accuracy: Firing 10 simultaneous single-image 2560×1440 calls succeeded 10/10 with zero errors across all 4 fast GLM-5.3 Flash providers (baseten 1.79s, deepinfra 1.83s at $0.00434, together 2.31s, fireworks 2.52s). On a dense multi-chart stress test (N = 1, 5, 6, 10 distinct 2560×1440 charts with 4 unlabeled 1px lines each = 40 total levels at N=10):
N Charts (1px Lines) | Strategy | Stage 1 Wall Time | Stage 1 Cost | Accuracy (All) | Charts 7–10 |
|---|---|---|---|---|---|
| N = 6 (24 lines) | DeepSeek V4.1 Flash raw | — | $0 | 22/24 | — |
| N = 6 (24 lines) | Single batched GLM call (cap=6, mt=2000) | 6,752 ms | $0.00516 | 24/24 | — |
| N = 6 (24 lines) | Parallel per-image GLM (1/call, mt=1200) | 2,404 ms (2.8× faster) | $0.00307* | 24/24 | — |
| N = 10 (40 lines) | DeepSeek V4.1 Flash raw | — | $0 | 36/40 | 13/16 |
| N = 10 (40 lines) | Single batched GLM call (cap=6, mt=2000) | 5,210 ms | $0.00174* | 37/40 | 13/16 |
| N = 10 (40 lines) | Parallel per-image GLM (1/call, mt=1200) | 6,809 ms (conc=6) | $0.00654 | 40/40 (100%) | 16/16 |
*Includes provider prefix-cache hits on the shared inspection prompt. Parallelizing into one image per request eliminates output-token squeezing (6 charts crammed into 1,677/2,000 tokens vs. ~500 tok/chart cleanly), cuts wall latency 2.8× at N=6, avoids per-request max_images caps entirely, and degrades gracefully per image on partial provider timeouts.
6. Reproduce Everything (~$0.51 Total Spend)
Every script, reference PNG/JPEG, and raw JSON receipt lives in experiments/vision_charts/:
cd experiments/vision_charts export OPENROUTER_API_KEY="sk-or-v1-..." python3 bench_glm_all_providers.py # 39-endpoint GLM-5.3 Flash sweep (~$0.025) python3 bench_chart_vision.py # DeepSeek token ladder + 20-model Chart A & B (~$0.28) python3 bench_open_ended.py # Unprompted open-ended Chart B comparison (~$0.05) python3 bench_url_vs_b64.py # OpenRouter HTTP URL vs. base64 parity (~$0.002) python3 bench_multi_image.py # Hidden max_images caps, 10x burst & dense multi-chart (~$0.09)
Caveats: At temperature: 0.0, open-weights endpoints still exhibit minor ±$50–$200 single-shot variance on a $112k axis (1 px ≈ $24), whereas the vision token-cap signatures (986 vs. 4,943 vs. 240) and hard max_images caps (30, 64) are deterministic. High-reasoning models hit the max_tokens: 2500 ceiling during hidden reasoning on Chart B.