import type { Metadata } from 'next';
import Link from 'next/link';
import type { ScatterPoint } from '@/components/charts';
import { EfficiencyScatter } from '@/components/intelligence/client-charts';
import { ChangeRow } from '@/components/changes/change-row';
import { DistBars, Methodology, RankChips, TrustChip } from '@/components/intelligence/bits';
import { SectionNav, Ticker, type TickerItem } from '@/components/layout/terminal';
import { Chip, OpennessBadge } from '@/components/ui/badges';
import { DataTable, EmptyRow, Td, Th } from '@/components/ui/data-table';
import { EntityLink } from '@/components/ui/entity';
import { Container, Note, PageHeader, Section } from '@/components/ui/section';
import { EmptyState, Unavailable } from '@/components/ui/unavailable';
import { intel } from '@/lib/api';
import { safe } from '@/lib/api';
import { fmtDate, fmtDateTime, fmtInt, fmtParams, fmtScore, fmtTokens, fmtUsdPerM, num } from '@/lib/format';
import { eventTone, routes, SITE_NAME, SITE_URL } from '@/lib/site';
import { eventDate, type Deployment, type EntitySummary, type ModelRef } from '@/lib/types';
export const revalidate = 300;
const TITLE = 'The AI frontier right now — leaders per benchmark, price, context and open weights';
const DESC = 'What defines the AI frontier today: the latest major models, the leader and runner-up of every benchmark comparability group, the cheapest frontier offers, the largest context windows, the open-weight frontier, the quality-vs-price Pareto set, agentic and multimodal leaders and recent movements — observed dimensions only, no composite score.';
export const metadata: Metadata = {
title: TITLE,
description: DESC,
alternates: { canonical: routes.frontier() },
openGraph: { title: `${TITLE} | ${SITE_NAME}`, description: DESC, url: `${SITE_URL}${routes.frontier()}`, type: 'website', siteName: SITE_NAME },
twitter: { card: 'summary_large_image', title: TITLE, description: DESC },
};
const NAV = [
{ id: 'latest', label: 'Latest major models' },
{ id: 'benchmarks', label: 'Benchmark frontier' },
{ id: 'price', label: 'Price frontier' },
{ id: 'context', label: 'Context frontier' },
{ id: 'open', label: 'Open-weight frontier' },
{ id: 'efficiency', label: 'Efficiency frontier' },
{ id: 'agentic', label: 'Agentic' },
{ id: 'multimodal', label: 'Multimodal' },
{ id: 'movements', label: 'Recent movements' },
];
const modelHref = (m: { slug: string; entity_type?: string }) => routes.entity({ entity_type: m.entity_type ?? 'model', slug: m.slug });
const orgName = (m: ModelRef | EntitySummary) => m.organization?.name ?? null;
function DeploymentStrip({ d, label }: { d: Deployment | null | undefined; label: string }) {
return (
{label}
{d && d.model ? (
<>
{d.model.organization && {d.model.organization.name} }
{fmtUsdPerM(d.prices.output)} output / 1M
input {fmtUsdPerM(d.prices.input)} · context {fmtTokens(d.context_length)} · via · observed {fmtDate(d.observed_at)}
>
) : (
No frontier model has a current priced offer in the API response.
)}
);
}
export default async function FrontierPage() {
const [f, idx] = await Promise.all([safe(intel.frontier(12)), safe(intel.priceIndex(30))]);
if (!f) {
return (
);
}
const latest = f.latest_major_models ?? [];
const bench = f.benchmark_frontier ?? [];
const pf = f.price_frontier;
const ctx = f.context_frontier ?? [];
const open = f.open_weight_frontier;
const eff = f.efficiency_frontier;
const agentic = f.agentic_frontier ?? [];
const multi = f.multimodal_frontier ?? [];
const moves = f.recent_frontier_movements ?? [];
const compo = pf?.composition ?? f.price_frontier?.composition ?? null;
// efficiency scatter
const points: ScatterPoint[] = (eff?.points ?? [])
.filter((p) => num(p.x) !== null && num(p.y) !== null)
.map((p) => ({ id: p.id, x: num(p.x) as number, y: num(p.y) as number, label: p.model.name, sub: `${p.model.organization ?? ''}${p.provider ? ` · via ${p.provider.name}` : ''} · rank ${p.rank}`, href: modelHref(p.model), color: p.pareto ? 'var(--accent-2)' : undefined }));
const frontierSet = new Set(eff?.frontier ?? []);
const frontierLine = points.filter((p) => frontierSet.has(p.id)).sort((a, b) => a.x - b.x);
const ticker: TickerItem[] = moves.slice(0, 24).map((e) => ({ id: e.id, tone: eventTone(e.event_type), href: e.entity ? routes.entity(e.entity) : routes.changes(), label: e.summary.length > 100 ? `${e.summary.slice(0, 99)}…` : e.summary, meta: num(e.percent_change) !== null ? `${(num(e.percent_change) as number) > 0 ? '+' : ''}${(num(e.percent_change) as number).toFixed(0)}%` : fmtDate(eventDate(e)) }));
const ld = {
'@context': 'https://schema.org',
'@type': 'Dataset',
name: 'AI Atlas Frontier',
description: DESC,
url: `${SITE_URL}${routes.frontier()}`,
dateModified: f.generated_at,
creator: { '@type': 'Organization', name: SITE_NAME, url: SITE_URL },
isAccessibleForFree: true,
};
return (
computed {fmtDateTime(f.generated_at)} : undefined} />
{ticker.length > 0 && }
{/* ---------------------------------------------------------------------------------------------- latest */}
{latest.length === 0 ? (
The API returned an empty list for latest_major_models.
) : (
Model
Organization
Released
Key facts
Evidence
{latest.map((e) => {
const m = e.entity;
const a = m?.attributes ?? {};
return (
{m ? : {e.summary} }
{typeof a.openness === 'string' && }
{m?.organization ? {m.organization.name} : '—'}
{typeof a.release_date === 'string' ? fmtDate(a.release_date) : fmtDate(eventDate(e))}
{[num(a.parameter_count) !== null ? `${fmtParams(a.parameter_count)} params` : null, num(a.context_length) !== null ? `${fmtTokens(a.context_length)} context` : null, Array.isArray(a.modalities) && a.modalities.length ? (a.modalities as string[]).join(' · ') : null, typeof a.license === 'string' ? a.license : null].filter(Boolean).join(' · ') || '—'}
{e.source_url ? (
{new URL(e.source_url).hostname.replace(/^www\./, '')}
) : (
—
)}
{e.connector_name && {e.connector_name} }
{e.is_backfill && (back-filled date) }
);
})}
)}
{/* ------------------------------------------------------------------------------------------ benchmarks */}
{bench.length === 0 ? (
The frontier lists groups with at least 20 current results.
) : (
Benchmark
Leader
Score
Second
Gap
Trust
{bench.map((b) => (
{b.benchmark.name}
{b.group && {b.group.label} · n={fmtInt(b.group.model_count)} models }
{b.leader ? (
<>
{b.leader.model.name}
{orgName(b.leader.model) && {orgName(b.leader.model)} }
>
) : (
'—'
)}
{b.leader ? `${fmtScore(b.leader.score)}${b.leader.unit ? ` ${b.leader.unit}` : ''}` : '—'}
{b.second ? (
<>
{b.second.model.name}
{' '}
{fmtScore(b.second.score)}
>
) : (
'—'
)}
{num(b.gap) === null ? '—' : fmtScore(b.gap)}
))}
)}
{/* ----------------------------------------------------------------------------------------------- price */}
Current offers by output price
Frontier universe: {fmtInt(pf?.frontier_models)} canonical models
{compo && (
<>
{' '}
({fmtInt(compo.recent_by_active_orgs)} recent releases by active organizations · {fmtInt(compo.top10_on_a_benchmark)} top-10 on a benchmark
{compo.since ? ` · since ${fmtDate(compo.since)}` : ''})
>
)}
.
{/* --------------------------------------------------------------------------------------------- context */}
{ctx.length === 0 ? (
) : (
{ctx.map((c, i) => (
{i + 1}
{c.model.organization && {c.model.organization.name} }
{fmtTokens(c.context_length)}
))}
)}
{/* ------------------------------------------------------------------------------------------------ open */}
{!open || open.items.length === 0 ? (
) : (
Model
Best rank
On
Parameters
Context
Other ranks
{open.items.map((it) => (
{it.model.organization && {it.model.organization.name} }
{typeof it.model.attributes?.license === 'string' && {it.model.attributes.license as string} }
{num(it.best_rank) === null ? '—' : `#${fmtInt(it.best_rank)}`}
{it.best_rank_on ? {it.best_rank_on} : '—'}
{fmtParams(it.parameter_count)}
{fmtTokens(it.context_length)}
))}
)}
{/* ------------------------------------------------------------------------------------------- efficiency */}
Quality vs output price · {eff.quality.benchmark}> : 'Quality vs output price'} lede={eff ? `y = ${eff.quality.group?.label ?? 'score'} in the primary comparability group; x = ${eff.x}. Amber points form the Pareto set (higher score, lower price); the rest are dimmed.` : undefined} action={eff?.quality?.benchmark ? { href: routes.benchmark(eff.quality.benchmark), label: 'Leaderboard' } : undefined}>
{points.length < 2 ? (
The efficiency frontier needs models with both a current benchmark result and a current output price.
) : (
<>
({ x: p.x, y: p.y }))} highlight={[...frontierSet]} yLabel={eff?.quality.group?.label ?? 'score'} />
{frontierLine.map((p) => (
{p.label} {fmtScore(p.y)} · {fmtUsdPerM(p.x)}
))}
{fmtInt(points.length)} models plotted · {fmtInt(frontierLine.length)} on the Pareto frontier · group n={fmtInt(eff?.quality.group?.model_count)}
>
)}
{/* ---------------------------------------------------------------------------------------------- agentic */}
{agentic.length === 0 ? (
) : (
{agentic.map((g) => (
{g.benchmark.name}
{g.group && {g.group.label} · n={fmtInt(g.group.model_count)} }
{g.leaders.map((l) => (
{l.rank}
{l.model.name}
{orgName(l.model) && {orgName(l.model)} }
{fmtScore(l.score)}
))}
))}
)}
{/* ------------------------------------------------------------------------------------------- multimodal */}
{multi.length === 0 ? (
) : (
Model
Modalities
Top-10 on
{multi.map((m) => (
{m.model.name}
{'organization' in m.model && m.model.organization && {m.model.organization.name} }
{m.modalities.map((x) => (
{x}
))}
{m.top10_on.slice(0, 6).map((b) => (
{b}
))}
{m.top10_on.length > 6 && +{m.top10_on.length - 6} }
))}
)}
{/* -------------------------------------------------------------------------------------------- movements */}
{moves.length === 0 ? (
The atlas has not observed a leadership change or a ≥ 20 % price move that occurred in the window (historical backfill is excluded). The change feed lists everything else.
) : (
)}
Composition and every threshold above are the API's ( GET /frontier); this page adds no ranking of its own.
);
}