grok-4.3 · api

api
config
grok-4.3--api--official--dev
batch
2026-07-19--unified
transport
xai-official-api
protocol
api · metered
served model
grok-4.3
采集于
2026年7月18日 11:54 · N=4
variant
live
slot 0 · P-q · sandboxed iframe
grok-4.3 · api P-q slot 0 截图

截图是 similarity 通道测量时的原始像素。运行 live 会在 sandboxed iframe 中重新执行原始输出;渲染结果取决于你的浏览器和字体,不保证与测量像素一致。

similarity 邻居

限于 session 2026-07-19--unified

similarity 衡量本 session 内的趋同程度 —— 不是质量。

Fidelity —— 卡片展示的数据对不对?

  • namematch
  • conditionmatch
  • datematch
  • max tempambiguous展示值:25.3max-equals-min
  • min tempambiguous展示值:25.3max-equals-min
  • hourlyambiguouscoverage · 0 命中 · 0 不符 · 24 未展示
  • request sidematch0 处违规

extractor fidelity-extractor-v1+Berlin-2026-07-15

源码 —— 原始模型输出,一字节未改

下载 card.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Weather</title>
<style>
body{margin:0;padding:0;background:#0f172a;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;display:flex;align-items:center;justify-content:center;min-height:800px;width:1280px}
.card{width:620px;background:linear-gradient(145deg,#1e2937,#0f172a);border-radius:24px;box-shadow:0 25px 50px -12px rgb(0 0 0 / 0.4);overflow:hidden;border:1px solid #334155}
.header{padding:32px 32px 24px;display:flex;justify-content:space-between;align-items:flex-start}
.location{font-size:28px;font-weight:600;letter-spacing:-0.5px}
.date{font-size:15px;color:#94a3b8;margin-top:4px}
.temps{display:flex;align-items:baseline;gap:12px;padding:0 32px}
.temp-max{font-size:72px;font-weight:700;line-height:1}
.temp-min{font-size:36px;font-weight:500;color:#64748b}
.condition{padding:16px 32px 24px;font-size:21px;color:#cbd5e1;display:flex;align-items:center;gap:12px}
.hourly{padding:24px 32px 32px;background:#1e2937}
.hourly-title{font-size:13px;font-weight:600;color:#64748b;margin-bottom:16px;text-transform:uppercase;letter-spacing:0.5px}
.hourly-list{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
.hourly-list::-webkit-scrollbar{display:none}
.hour-item{background:#334155;border-radius:12px;padding:12px 14px;min-width:52px;text-align:center;flex-shrink:0}
.hour{font-size:12px;color:#94a3b8;margin-bottom:4px}
.temp{font-size:17px;font-weight:600}
.error{padding:80px 32px;text-align:center;color:#f87171;font-size:18px}
</style>
</head>
<body>
<div class="card" id="card">
  <div id="content"></div>
</div>
<script>
function getParams() {
  const url = new URL(window.location.href);
  const lat = parseFloat(url.searchParams.get('lat')) || 52.52;
  const lon = parseFloat(url.searchParams.get('lon')) || 13.405;
  const name = url.searchParams.get('name') || 'Berlin';
  let date = url.searchParams.get('date');
  if (!date) {
    const today = new Date();
    date = today.toISOString().split('T')[0];
  }
  return { lat, lon, name, date };
}

function getApiEndpoint(dateStr) {
  const today = new Date();
  today.setUTCHours(0,0,0,0);
  const reqDate = new Date(dateStr + 'T00:00:00Z');
  return reqDate < today ? '/api/om/archive' : '/api/om/forecast';
}

function weatherCodeToText(code) {
  const map = {
    0: 'Clear sky', 1: 'Mainly clear', 2: 'Partly cloudy', 3: 'Overcast',
    45: 'Fog', 48: 'Depositing rime fog', 51: 'Light drizzle', 53: 'Moderate drizzle',
    55: 'Dense drizzle', 61: 'Slight rain', 63: 'Moderate rain', 65: 'Heavy rain',
    71: 'Slight snow', 73: 'Moderate snow', 75: 'Heavy snow', 77: 'Snow grains',
    80: 'Slight rain showers', 81: 'Moderate rain showers', 82: 'Violent rain showers',
    85: 'Slight snow showers', 86: 'Heavy snow showers', 95: 'Thunderstorm',
    96: 'Thunderstorm with slight hail', 99: 'Thunderstorm with heavy hail'
  };
  return map[code] || 'Unknown';
}

async function fetchWeather(lat, lon, date) {
  const endpoint = getApiEndpoint(date);
  const params = new URLSearchParams({
    latitude: lat,
    longitude: lon,
    daily: 'temperature_2m_max,temperature_2m_min,weather_code',
    hourly: 'temperature_2m',
    timezone: 'UTC',
    temperature_unit: 'celsius',
    start_date: date,
    end_date: date
  });
  const res = await fetch(`${endpoint}?${params}`);
  if (!res.ok) throw new Error('API error');
  return res.json();
}

function render(data, params) {
  const container = document.getElementById('content');
  if (!data.daily || !data.daily.time.length) {
    container.innerHTML = `<div class="error">No weather data available for this date.</div>`;
    return;
  }
  const max = data.daily.temperature_2m_max[0];
  const min = data.daily.temperature_2m_min[0];
  const code = data.daily.weather_code[0];
  const condition = weatherCodeToText(code);
  const hourlyTemps = data.hourly.temperature_2m;

  let html = `
    <div class="header">
      <div>
        <div class="location">${params.name}</div>
        <div class="date">${params.date}</div>
      </div>
    </div>
    <div class="temps">
      <div class="temp-max">${max}°</div>
      <div class="temp-min">${min}°</div>
    </div>
    <div class="condition">
      <span>${condition}</span>
    </div>
    <div class="hourly">
      <div class="hourly-title">Hourly temperature</div>
      <div class="hourly-list">
  `;
  for (let i = 0; i < 24; i++) {
    const hour = String(i).padStart(2, '0') + ':00';
    const temp = hourlyTemps[i] !== undefined ? Math.round(hourlyTemps[i]) : '–';
    html += `
      <div class="hour-item">
        <div class="hour">${hour}</div>
        <div class="temp">${temp}°</div>
      </div>
    `;
  }
  html += `</div></div>`;
  container.innerHTML = html;
}

async function init() {
  const params = getParams();
  try {
    const data = await fetchWeather(params.lat, params.lon, params.date);
    render(data, params);
  } catch (e) {
    document.getElementById('content').innerHTML = `<div class="error">Unable to load weather data.</div>`;
  }
}
init();
</script>
</body>
</html>

L1 —— 廉价的确定性描述量

bytes 总计5,128html / css / js213 / 1,483 / 3,432
dom 节点9dom 深度4
css 规则17含 js
brightness27.8contrast15.6
colorfulness9.3留白95.0%

该 slot 的 telemetry

prompt tokens493completion tokens1,502
total tokens1,995wall18.2 s
costrequest id
config.json542 B
{
  "N": 4,
  "auth": {
    "credential_ref": "WCB_XAI_OFFICIAL_KEY",
    "method": "api-key"
  },
  "billing": "metered",
  "config_id": "grok-4.3--api--official--dev",
  "effort": null,
  "family": "grok",
  "m": {
    "min": 4,
    "q": 4
  },
  "model_id": "grok-4.3",
  "protocol": "api",
  "served_model": "grok-4.3",
  "telemetry": {
    "completion_tokens": 14208,
    "cost_usd": null,
    "prompt_tokens": 3912,
    "total_tokens": 18120,
    "wall_ms": 138538
  },
  "transport": "xai-official-api",
  "vendor_sanction_ref": null
}
send-log4.6 KB
{
  "N": 4,
  "batch_id": "2026-07-18--official-grok",
  "config_id": "grok-4.3--api--official--dev",
  "positions": [
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:44:23.637251+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:44:08.880788+00:00"
        }
      ],
      "block_index": 0,
      "model_reaching_attempt_index": 0,
      "slot_index": 0,
      "terminal_state": "valid",
      "variant": "P-min"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:44:47.436662+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:44:29.222928+00:00"
        }
      ],
      "block_index": 0,
      "model_reaching_attempt_index": 0,
      "slot_index": 0,
      "terminal_state": "valid",
      "variant": "P-q"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:45:10.349211+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:44:50.544776+00:00"
        }
      ],
      "block_index": 1,
      "model_reaching_attempt_index": 0,
      "slot_index": 1,
      "terminal_state": "valid",
      "variant": "P-q"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:45:27.470585+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:45:14.852896+00:00"
        }
      ],
      "block_index": 1,
      "model_reaching_attempt_index": 0,
      "slot_index": 1,
      "terminal_state": "valid",
      "variant": "P-min"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:45:48.208941+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:45:31.319099+00:00"
        }
      ],
      "block_index": 2,
      "model_reaching_attempt_index": 0,
      "slot_index": 2,
      "terminal_state": "valid",
      "variant": "P-min"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:46:13.229490+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:45:50.972245+00:00"
        }
      ],
      "block_index": 2,
      "model_reaching_attempt_index": 0,
      "slot_index": 2,
      "terminal_state": "valid",
      "variant": "P-q"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:46:34.121296+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:46:17.333860+00:00"
        }
      ],
      "block_index": 3,
      "model_reaching_attempt_index": 0,
      "slot_index": 3,
      "terminal_state": "valid",
      "variant": "P-q"
    },
    {
      "attempts": [
        {
          "attempt_index": 0,
          "backoff_ms": null,
          "charged": true,
          "ended_at": "2026-07-17T14:46:54.774439+00:00",
          "http_status": 200,
          "outcome": "valid",
          "reached_model": true,
          "reason": "ok",
          "request_id": null,
          "started_at": "2026-07-17T14:46:37.558749+00:00"
        }
      ],
      "block_index": 3,
      "model_reaching_attempt_index": 0,
      "slot_index": 3,
      "terminal_state": "valid",
      "variant": "P-min"
    }
  ],
  "retry_policy": {
    "max_unreachable_retries": 5,
    "rate_limit_backoff": {
      "max_attempts": 4,
      "max_total_ms": 60000
    }
  }
}