⏱ Capsule Public Coding
The Real Sky Test
Ezarwebmaster· Jul 7, 2026
Brief
## Why this capsule exists
Unlike the Ray Marching capsule (pure rendering logic), this one tests whether a model can correctly **consume a real external API with a provided key** and translate raw JSON into an accurate, honest visual representation — three separate failure surfaces in one small artifact:
1. Does it call the API correctly and use the key properly (right param name: `appid`, right `units` param)?
2. Does it correctly map the returned condition code to icon + background, or fake it?
3. Does it fail honestly when the API errors, or invent plausible-looking fallback data?
## Expected spread
- **Strong models:** correct query string (`lat`, `lon`, `appid`, `units=metric`), correct icon/background mapping using OpenWeatherMap's `weather[0].id` or `icon` code ranges, working C°/F° toggle with correct formula, visible error state on failure.
- **Mid-tier models:** live data works and displays correctly, but icon/background logic is shallow — e.g. only handles "Clear" and "Clouds" and defaults everything else to sunny, or hardcodes gradient colors that don't actually change with the fetched data.
- **Weak models:** static/hardcoded temperature and condition regardless of the API response (silent fake), broken toggle math, wrong endpoint/param usage causing a silent failure that's papered over with fabricated numbers, or forgetting `units=metric` and displaying raw Kelvin as if it were Celsius.
## Known implementation risks / cheats to watch for
- **Hardcoded visual, live number:** temperature is real (pulled from API) but the icon and background are static regardless of actual condition — easy to miss unless you check if condition ever changes vs the icon shown.
- **Kelvin bug:** forgetting `units=metric` and displaying ~280+ as if it were °C, or applying the C→F formula to a Kelvin value.
- **Fake error handling:** catching the fetch error but replacing it with invented "sunny, 22°C" placeholder data instead of a visible error message.
- **Key misuse:** using `apikey=` or `api_key=` instead of the correct `appid=` param, or putting the key in a header when OpenWeatherMap expects it as a query param — causes silent 401s that some models might paper over with fake data instead of surfacing the failure.
- **Timezone bug (high-value trap):** OpenWeatherMap returns `sunrise`/`sunset` as UTC epoch timestamps plus a separate `timezone` field (Paris's UTC offset in seconds). The correct approach applies that offset explicitly. A common failure is calling `new Date(sunrise * 1000).toLocaleTimeString()` directly, which silently renders the sunrise/sunset in whatever timezone the grading machine/browser happens to be in — wrong unless that machine happens to be on Paris time. Very easy to miss visually unless you check the grading environment's own timezone against the displayed value.
- **Wind unit desync:** converting temperature to Fahrenheit on toggle but forgetting to also convert wind speed to mph (or vice versa) — the two values end up in mismatched unit systems after toggling.
- **"Feels like" always shown:** ignoring the ≥2°C threshold and displaying `feels_like` unconditionally, or comparing the wrong two values.
- **Day/night claimed via made-up logic instead of the API's own icon suffix:** OpenWeatherMap's `weather[0].icon` field already ends in `d` (day) or `n` (night), correctly computed server-side for the exact coordinates and moment of the request. A model reinventing day/night detection client-side (e.g. checking the browser's local hour) is likely to get it wrong for the same reason as the timezone bug above; the correct, robust approach is to just read the icon suffix already provided by the API.
## Grading / infra note
Grading requires actually rendering the HTML with live network access to `api.openweathermap.org` (headless Chromium/Playwright, as with other coding capsules), and comparing the displayed condition against the real weather in Paris at run time. Confirm the grading sandbox has egress to that domain before running — a network-access failure in the grading environment itself should never be scored as a model failure.
## Ground Truth Checklist
- **GT1** — Makes an actual live `fetch` call to the OpenWeatherMap endpoint with correct `lat`, `lon`, `appid`, and `units` params
- **GT2** — Displays today's date correctly
- **GT3** — Displayed temperature matches the real live Paris weather at run time (reasonable tolerance)
- **GT4** — Celsius/Fahrenheit toggle is present, functional, and mathematically correct
- **GT5** — Weather icon accurately reflects the real returned condition (not a static icon regardless of data)
- **GT6** — Background visually and dynamically changes to match the real returned condition (not static)
- **GT7** — On API failure, shows a clear, honest error message — never fabricated fallback data
- **GT8** — Single self-contained HTML file, renders without console errors
- **GT9** — Sunrise/sunset displayed in correct Paris local time (using the API's `timezone` offset, not the grading machine's local timezone)
- **GT10** — "Feels like" temperature shown only when it differs from the actual temperature by ≥2°C, correctly hidden otherwise
- **GT11** — Wind speed unit toggles in sync with the C°/F° toggle (m/s ↔ mph), both updating from the same single switch
- **GT12** — Icon and background correctly reflect day vs night in Paris at run time (via the API's own day/night icon suffix, not a broken client-side reimplementation)
## Scoring tiers
- **Full pass:** GT1–GT12 all met
- **Partial pass:** Live data, temperature, and unit toggle correct (GT1–GT4, GT11), but one or more of: shallow icon/background logic (GT5/GT6), wrong sunrise/sunset timezone (GT9), or incorrect feels-like threshold (GT10)
- **Fail:** Any fabricated data presented as live (GT3/GT7 violated), broken API usage causing silent wrong values, icon/background completely disconnected from real data, or a sunrise/sunset time that is wrong by a full timezone offset (GT9 badly violated)
## Grading note
As with other capsules: `finish_reason: length` runs are hard fails and should be flagged/excluded from Winners metrics, same rule as elsewhere on the platform.
Locked Reference Prompt
IMMUTABLEScientific timeline lock active
Build a single self-contained HTML file containing a live weather widget for Paris, France (latitude 48.8566, longitude 2.3522).
Fetch live current weather data client-side using the OpenWeatherMap Current Weather API:
`https://api.openweathermap.org/data/2.5/weather`
Use this API key: {{SECRET:WEATHER_API_KEY}}
Requirements:
- Display today's date.
- Display the current temperature, with a toggle switch to convert between Celsius and Fahrenheit.
- Also display the "feels like" temperature, but only if it differs from the actual temperature by 2°C or more; otherwise don't show it.
- Display the current wind speed, converting between metric (m/s) and imperial (mph) units in sync with the same Celsius/Fahrenheit toggle — both the temperature and the wind speed must update together from a single toggle switch.
- Display the sunrise and sunset time for Paris, converted correctly to Paris local time (not the browser's or server's local time zone).
- Display a weather icon (sun, cloud, rain, snow, etc.) that visually matches the actual current weather condition returned by the API, including whether it is currently day or night in Paris.
- The page background should dynamically change to visually reflect the current weather condition (for example: a warm bright gradient for clear/sunny skies, grey-blue tones for clouds or rain, white/pale tones for snow), and should also look different for night vs day.
- If the API call fails or returns an error, show a clear error message on the page instead of showing fabricated or placeholder weather data.
Return the complete code as a single HTML file with embedded CSS and JavaScript.
Add a Benchmark Run
Sign in to run this prompt against hundreds of models with your own OpenRouter key and archive the results.
Timeline (24 runs)
Run Activity
24 runs in the last 6 months
May
Jun
Jul
Aug
Sep
Oct
Nov
LessMore
Cost vs Speed
size = output tokens · top-left is best
size = tokens
value frontier — no model is faster & cheaper Capsule Stats
Runs
24
Total cost
$1.9803
Tokens
262k
Avg latency
2m 50s
Models
24
Web Searches
1
1/24 runs
Top provider
Anthropic×5
Anthropic×5 63k reasoning 1 web search last 2mo ago
Tip: Select 2 or more runs via their "Compare" buttons — or filter by company below and compare them all at once — then open the Compare Studio: verdicts, benchmark bars, charts, side-by-side reading and response diff.
⏱
Benchmark Run — Sep 17, 2026
Ezarwebmaster Latest
Stealthunion-alpha
🌐 Web Search Extended
stop
Latency
3m 1s
client → response
Input Tokens
6,227
prompt tokens
Output
4,720
generated
Total Tokens
10,947
in + out
Billed Cost
$0.0070
OR Credits
Reasoning
—
thinking tokens
Model Output
union-alpha — Canvas
⏱
Benchmark Run — Aug 24, 2026
Ezarwebmaster
Stealthox-alpha
Extended
stop
Latency
21m 38s
client → response
Input Tokens
538
prompt tokens
Output
46,274
generated
Total Tokens
46,812
in + out
Billed Cost
$0.000000
OR Credits
Reasoning
≈ 28,715
estimated · not reported by the provider
Model Output
ox-alpha — Canvas
⏱
Benchmark Run — Jul 26, 2026
Ezarwebmaster

Anthropicclaude-opus-5
Extended
stop
Reasoning: Default Latency
1m 44s
client → response
Input Tokens
735
prompt tokens
Output
10,076
generated
Total Tokens
10,811
in + out
Billed Cost
$0.2556
OR Credits
Reasoning
114
thinking tokens
Model Output
claude-opus-5 — Canvas
⏱
Benchmark Run — Jul 20, 2026
Ezarwebmaster

Moonshot AI (Kimi)kimi-k3
Extended
stop
Reasoning: Default Latency
17m 44s
client → response
Input Tokens
545
prompt tokens
Output
37,534
generated
Total Tokens
38,079
in + out
Billed Cost
$0.5646
OR Credits
Reasoning
27,519
thinking tokens
Model Output
kimi-k3 — Canvas
⏱
Benchmark Run — Jul 9, 2026
Ezarwebmaster

OpenAIgpt-5.6-sol-20260709
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
456
prompt tokens
Output
5,260
generated
Total Tokens
5,716
in + out
Billed Cost
$0.1601
OR Credits
Reasoning
516
thinking tokens
Model Output
gpt-5.6-sol-20260709 — Canvas
⏱
Benchmark Run — Jul 9, 2026
Ezarwebmaster

OpenAIgpt-5.6-terra-20260709
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
456
prompt tokens
Output
4,468
generated
Total Tokens
4,924
in + out
Billed Cost
$0.0682
OR Credits
Reasoning
327
thinking tokens
Model Output
gpt-5.6-terra-20260709 — Canvas
⏱
Benchmark Run — Jul 9, 2026
Ezarwebmaster

OpenAIgpt-5.6-luna-20260709
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
456
prompt tokens
Output
4,161
generated
Total Tokens
4,617
in + out
Billed Cost
$0.0254
OR Credits
Reasoning
504
thinking tokens
Model Output
gpt-5.6-luna-20260709 — Canvas
⏱
Benchmark Run — Jul 9, 2026
Ezarwebmaster

xAI (Grok)grok-4.3-20260430
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
638
prompt tokens
Output
2,499
generated
Total Tokens
3,137
in + out
Billed Cost
$0.0069
OR Credits
Reasoning
552
thinking tokens
Model Output
grok-4.3-20260430 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Xiaomi (MiMo)mimo-v2.5-20260422
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
464
prompt tokens
Output
18,307
generated
Total Tokens
18,771
in + out
Billed Cost
$0.0052
OR Credits
Reasoning
14,393
thinking tokens
Model Output
mimo-v2.5-20260422 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

StepFunstep-3.7-flash-20260528
Extended
stop
Latency
—
client → response
Input Tokens
471
prompt tokens
Output
13,404
generated
Total Tokens
13,875
in + out
Billed Cost
$0.0155
OR Credits
Reasoning
—
thinking tokens
Model Output
step-3.7-flash-20260528 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Tencent (Hunyuan)hy3-preview-20260421
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
471
prompt tokens
Output
8,452
generated
Total Tokens
8,923
in + out
Billed Cost
$0.0018
OR Credits
Reasoning
3,092
thinking tokens
Model Output
hy3-preview-20260421 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Moonshot AI (Kimi)kimi-k2.7-code-20260612
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
461
prompt tokens
Output
9,928
generated
Total Tokens
10,389
in + out
Billed Cost
$0.0351
OR Credits
Reasoning
1,704
thinking tokens
Model Output
kimi-k2.7-code-20260612 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Z.AI (GLM)glm-5.2-20260616
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
463
prompt tokens
Output
5,573
generated
Total Tokens
6,036
in + out
Billed Cost
$0.0236
OR Credits
Reasoning
234
thinking tokens
Model Output
glm-5.2-20260616 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

MiniMaxminimax-m3-20260531
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
621
prompt tokens
Output
5,465
generated
Total Tokens
6,086
in + out
Billed Cost
$0.0067
OR Credits
Reasoning
1,325
thinking tokens
Model Output
minimax-m3-20260531 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Qwen (Alibaba)qwen3-coder-plus
Extended
stop
Latency
—
client → response
Input Tokens
466
prompt tokens
Output
3,024
generated
Total Tokens
3,490
in + out
Billed Cost
$0.0101
OR Credits
Reasoning
—
thinking tokens
Model Output
qwen3-coder-plus — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Google DeepMindgemini-3.1-pro-preview-20260219
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
479
prompt tokens
Output
7,031
generated
Total Tokens
7,510
in + out
Billed Cost
$0.0853
OR Credits
Reasoning
2,547
thinking tokens
Model Output
gemini-3.1-pro-preview-20260219 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Anthropicclaude-5-fable-20260609
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
735
prompt tokens
Output
4,870
generated
Total Tokens
5,605
in + out
Billed Cost
$0.2509
OR Credits
Reasoning
174
thinking tokens
Model Output
claude-5-fable-20260609 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Anthropicclaude-4.8-opus-20260528
Extended
stop
Latency
—
client → response
Input Tokens
735
prompt tokens
Output
3,818
generated
Total Tokens
4,553
in + out
Billed Cost
$0.0991
OR Credits
Reasoning
—
thinking tokens
Model Output
claude-4.8-opus-20260528 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

DeepSeekdeepseek-v4-pro-20260423
Extended
stop
Reasoning: Default Latency
—
client → response
Input Tokens
458
prompt tokens
Output
12,642
generated
Total Tokens
13,100
in + out
Billed Cost
$0.0193
OR Credits
Reasoning
6,045
thinking tokens
Model Output
deepseek-v4-pro-20260423 — Canvas
⏱
Benchmark Run — Jul 8, 2026
Ezarwebmaster

Anthropicclaude-sonnet-5-20260630
Extended
stop
Latency
—
client → response
Input Tokens
735
prompt tokens
Output
7,778
generated
Total Tokens
8,513
in + out
Billed Cost
$0.0793
OR Credits
Reasoning
—
thinking tokens
Model Output
claude-sonnet-5-20260630 — Canvas
⏱
Benchmark Run — Jul 7, 2026
Ezarwebmaster

Anthropicclaude-3-haiku
Extended
stop
Latency
—
client → response
Input Tokens
502
prompt tokens
Output
2,851
generated
Total Tokens
3,353
in + out
Billed Cost
$0.0037
OR Credits
Reasoning
—
thinking tokens
Model Output
claude-3-haiku — Canvas
⏱
Benchmark Run — Jul 7, 2026
Ezarwebmaster

OpenAIgpt-5.5-20260423
Continued
stop
Reasoning: Default Latency
—
client → response
Input Tokens
456
prompt tokens
Output
5,987
generated
Total Tokens
10,480
in + out
Billed Cost
$0.2021
OR Credits
Reasoning
516
thinking tokens
Model Output
gpt-5.5-20260423 — Canvas
⏱
Benchmark Run — Jul 7, 2026
Ezarwebmaster

Google DeepMindgemini-3.5-flash-20260519
Extended
stop
Latency
—
client → response
Input Tokens
479
prompt tokens
Output
5,769
generated
Total Tokens
6,248
in + out
Billed Cost
$0.0526
OR Credits
Reasoning
—
thinking tokens
Model Output
gemini-3.5-flash-20260519 — Canvas
⏱
Benchmark Run — Jul 7, 2026
Ezarwebmaster

DeepSeekdeepseek-v4-flash-20260423
Continued
stop
Reasoning: Default Latency
—
client → response
Input Tokens
458
prompt tokens
Output
8,669
generated
Total Tokens
9,792
in + out
Billed Cost
$0.0022
OR Credits
Reasoning
3,879
thinking tokens
Model Output
deepseek-v4-flash-20260423 — Canvas
No runs recorded on this timeline
Select a model above to run your very first prompt execution and unlock this capsule's historical archive.