ybrault commited on
Commit
6c43d2e
·
verified ·
1 Parent(s): 7976460

Update SovAPI launch pricing to 0.018/0.16

Browse files
Files changed (4) hide show
  1. README.md +55 -55
  2. index.html +1405 -1405
  3. legal.html +130 -130
  4. terms.html +147 -147
README.md CHANGED
@@ -10,7 +10,7 @@ short_description: Private modeless inference · EU-hosted.
10
  ---
11
 
12
  # SovAPI Arena page
13
-
14
  Duplicate-capable HTML Space source for the public Arena comparison. The official
15
  repository is Protected; duplication is limited to authorised operations.
16
 
@@ -21,43 +21,43 @@ sleeps after 48 hours of inactivity. `/health`, the unlocked root page, the exac
21
  production CORS origin and a live SovAPI SSE stream pass. The official
22
  `SOVINFRA_API_KEY` is installed as a write-only Space secret. Temporary Duplicate
23
  acceptance passed and the test key, secret and Space were revoked/removed.
24
-
25
- Active client direction as of 2026-07-07: align this Space with the Manus visual
26
- reference
27
- `https://predeploy-54834d22-sovapi-bfbjw6da-2xnytaovact3rest.manus.space`, launch without
28
  waiting for DeepSeek, and position the demo around Qwen3-Coder plus Gemma 4. Legal
29
  notices and terms are active client-approved pages. Their July 2026 versions omit
30
  OpenRouter, describe the quota per duel and distinguish the European gateway from the
31
  third-party Arena host.
32
-
33
- Local update on 2026-07-07: `index.html` has been visually aligned with the Manus
34
- reference while keeping the existing safe `/v1/challenge` contract.
35
-
36
- Client update on 2026-07-09: a newer English Manus reference exists at
37
- `https://predeploy-5553c316-sovapi-bfbjw6da-okbabhpaajvgdv9t.manus.space`. It includes a
38
- transcription/vocal tab, but Thierry explicitly deferred transcription. The Monday
39
- 2026-07-13 target is only the core Arena/SovAPI path with a sovereign key and
40
- `https://api.sovinfra.ai/v1`.
41
-
42
- Implementation update on 2026-07-09: the Space UI is aligned to the English Arena copy,
43
- adds the `reasoning` terrain, keeps the transcription tab absent, and degrades gracefully
44
- when the challenger route is not yet configured. The SovAPI side remains executable on
45
- its own.
46
-
47
  Historical runtime note on 2026-07-09: only the Code terrain was live and OpenRouter was
48
  not provisioned. This is superseded: the server-side challenger and four approved terrains
49
  are deployed on Shadow. Agent existed from 2026-07-12 to 2026-07-16 and was then retired
50
  at Thierry's request because it duplicated Structure without executing a tool.
51
-
52
- Client validation on 2026-07-07: the Space fixed price is accepted, `/v1/challenge` is
53
- included in that scope, OpenRouter stays server-side only, and the reasoning terrain
54
- should run through modeless `sovapi` routing without a DeepSeek dependency.
55
-
56
- `app.py` serves:
57
-
58
- - a locked CTA when `SOVINFRA_API_KEY` is absent;
59
- - the HTML challenge page when the fork has `SOVINFRA_API_KEY` configured.
60
-
61
  The key is never embedded in the HTML response. It is currently an activation gate for
62
  this wrapper: the server requires the canonical `sk-sov-` format, but does not call an
63
  authentication endpoint on each page load. Browser duels use `/v1/challenge`, whose
@@ -65,10 +65,10 @@ controlled SovAPI and OpenRouter keys remain server-side on the gateway. Active/
65
  state must therefore be validated separately against an authenticated SovAPI endpoint.
66
  The production create/revoke/reactivate smoke is recorded in
67
  `docs/recette-hf-provisionnement-2026-07-17.md`.
68
-
69
  The browser never receives provider keys. It calls:
70
-
71
- - `GET /v1/challenge/models` for the challenger model selector.
72
  - `POST /v1/challenge` twice per duel, once with `side=sovapi` and once with
73
  `side=challenger`.
74
 
@@ -165,7 +165,7 @@ primary browser API origin and preconnect target. `https://api.sovinfra.cloud` r
165
  the explicit browser fallback. The API ACCESS examples use
166
  `https://api.sovinfra.ai/v1`; the fork wrapper keeps its independently configurable
167
  `SOVAPI_BASE_URL` default.
168
-
169
  The current production API route injects `SOVAPI_CHALLENGE_SOVAPI_API_KEY` and
170
  `SOVAPI_CHALLENGE_OPENROUTER_API_KEY` server-side. The gateway atomically reserves a
171
  worst-case Challenger budget before the call, then reconciles it from the provider's real
@@ -173,23 +173,23 @@ usage. The caps are 30,000 tokens per duel, 100 unique duels per source IP over
173
  and 500 unique duels globally over 24 hours. In the prepared release, direct-provider
174
  credentials also stay only in the gateway secret layer; no value belongs in this
175
  repository, the Space or browser code.
176
-
177
- The 2026-07-07 Manus mockup shows an optional visitor OpenRouter key field, but the
178
- client validated the safer server-side-only implementation. Do not add a browser-visible
179
- OpenRouter key input.
180
-
181
- ## Local preview
182
-
183
- Open `index.html` directly in a browser for static review. Live execution requires a
184
- running gateway exposing `/v1/challenge` and permissive CORS for the page origin.
185
-
186
- Run as a local Space wrapper:
187
-
188
- ```powershell
189
- $env:SOVINFRA_API_KEY = "local-presence-only"
190
- uvicorn spaces.sovapi_challenge.app:app --reload
191
- ```
192
-
193
  ## Required gateway env
194
 
195
  - `SOVAPI_CHALLENGE_SOVAPI_BASE_URL`: SovAPI base URL, default `http://127.0.0.1:8000`
@@ -275,7 +275,7 @@ pair remains
275
  live IDs, controlled recipe, report to Thierry and explicit GO remain release blockers.
276
 
277
  ## Metrics
278
-
279
- Displayed GPU/network/cost/token metrics are read from upstream response chunks when
280
- present. Missing upstream values are rendered as unavailable; the UI must not ship
281
- hardcoded performance numbers.
 
10
  ---
11
 
12
  # SovAPI Arena page
13
+
14
  Duplicate-capable HTML Space source for the public Arena comparison. The official
15
  repository is Protected; duplication is limited to authorised operations.
16
 
 
21
  production CORS origin and a live SovAPI SSE stream pass. The official
22
  `SOVINFRA_API_KEY` is installed as a write-only Space secret. Temporary Duplicate
23
  acceptance passed and the test key, secret and Space were revoked/removed.
24
+
25
+ Active client direction as of 2026-07-07: align this Space with the Manus visual
26
+ reference
27
+ `https://predeploy-54834d22-sovapi-bfbjw6da-2xnytaovact3rest.manus.space`, launch without
28
  waiting for DeepSeek, and position the demo around Qwen3-Coder plus Gemma 4. Legal
29
  notices and terms are active client-approved pages. Their July 2026 versions omit
30
  OpenRouter, describe the quota per duel and distinguish the European gateway from the
31
  third-party Arena host.
32
+
33
+ Local update on 2026-07-07: `index.html` has been visually aligned with the Manus
34
+ reference while keeping the existing safe `/v1/challenge` contract.
35
+
36
+ Client update on 2026-07-09: a newer English Manus reference exists at
37
+ `https://predeploy-5553c316-sovapi-bfbjw6da-okbabhpaajvgdv9t.manus.space`. It includes a
38
+ transcription/vocal tab, but Thierry explicitly deferred transcription. The Monday
39
+ 2026-07-13 target is only the core Arena/SovAPI path with a sovereign key and
40
+ `https://api.sovinfra.ai/v1`.
41
+
42
+ Implementation update on 2026-07-09: the Space UI is aligned to the English Arena copy,
43
+ adds the `reasoning` terrain, keeps the transcription tab absent, and degrades gracefully
44
+ when the challenger route is not yet configured. The SovAPI side remains executable on
45
+ its own.
46
+
47
  Historical runtime note on 2026-07-09: only the Code terrain was live and OpenRouter was
48
  not provisioned. This is superseded: the server-side challenger and four approved terrains
49
  are deployed on Shadow. Agent existed from 2026-07-12 to 2026-07-16 and was then retired
50
  at Thierry's request because it duplicated Structure without executing a tool.
51
+
52
+ Client validation on 2026-07-07: the Space fixed price is accepted, `/v1/challenge` is
53
+ included in that scope, OpenRouter stays server-side only, and the reasoning terrain
54
+ should run through modeless `sovapi` routing without a DeepSeek dependency.
55
+
56
+ `app.py` serves:
57
+
58
+ - a locked CTA when `SOVINFRA_API_KEY` is absent;
59
+ - the HTML challenge page when the fork has `SOVINFRA_API_KEY` configured.
60
+
61
  The key is never embedded in the HTML response. It is currently an activation gate for
62
  this wrapper: the server requires the canonical `sk-sov-` format, but does not call an
63
  authentication endpoint on each page load. Browser duels use `/v1/challenge`, whose
 
65
  state must therefore be validated separately against an authenticated SovAPI endpoint.
66
  The production create/revoke/reactivate smoke is recorded in
67
  `docs/recette-hf-provisionnement-2026-07-17.md`.
68
+
69
  The browser never receives provider keys. It calls:
70
+
71
+ - `GET /v1/challenge/models` for the challenger model selector.
72
  - `POST /v1/challenge` twice per duel, once with `side=sovapi` and once with
73
  `side=challenger`.
74
 
 
165
  the explicit browser fallback. The API ACCESS examples use
166
  `https://api.sovinfra.ai/v1`; the fork wrapper keeps its independently configurable
167
  `SOVAPI_BASE_URL` default.
168
+
169
  The current production API route injects `SOVAPI_CHALLENGE_SOVAPI_API_KEY` and
170
  `SOVAPI_CHALLENGE_OPENROUTER_API_KEY` server-side. The gateway atomically reserves a
171
  worst-case Challenger budget before the call, then reconciles it from the provider's real
 
173
  and 500 unique duels globally over 24 hours. In the prepared release, direct-provider
174
  credentials also stay only in the gateway secret layer; no value belongs in this
175
  repository, the Space or browser code.
176
+
177
+ The 2026-07-07 Manus mockup shows an optional visitor OpenRouter key field, but the
178
+ client validated the safer server-side-only implementation. Do not add a browser-visible
179
+ OpenRouter key input.
180
+
181
+ ## Local preview
182
+
183
+ Open `index.html` directly in a browser for static review. Live execution requires a
184
+ running gateway exposing `/v1/challenge` and permissive CORS for the page origin.
185
+
186
+ Run as a local Space wrapper:
187
+
188
+ ```powershell
189
+ $env:SOVINFRA_API_KEY = "local-presence-only"
190
+ uvicorn spaces.sovapi_challenge.app:app --reload
191
+ ```
192
+
193
  ## Required gateway env
194
 
195
  - `SOVAPI_CHALLENGE_SOVAPI_BASE_URL`: SovAPI base URL, default `http://127.0.0.1:8000`
 
275
  live IDs, controlled recipe, report to Thierry and explicit GO remain release blockers.
276
 
277
  ## Metrics
278
+
279
+ Displayed GPU/network/cost/token metrics are read from upstream response chunks when
280
+ present. Missing upstream values are rendered as unavailable; the UI must not ship
281
+ hardcoded performance numbers.
index.html CHANGED
@@ -1,7 +1,7 @@
1
- <!doctype html>
2
- <html lang="en" data-theme="light">
3
- <head>
4
- <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Arena</title>
7
  <link rel="preconnect" href="https://api.sovinfra.ai" crossorigin />
@@ -17,229 +17,229 @@
17
  }
18
  </script>
19
  <style>
20
- :root {
21
- color-scheme: light;
22
- --paper: #f3eadc;
23
- --paper-deep: #e7d8c3;
24
- --panel: #fff8ec;
25
- --panel-strong: #f7e5ce;
26
- --ink: #15110d;
27
- --muted: #6f6255;
28
- --line: #201812;
29
- --line-soft: rgba(32, 24, 18, 0.22);
30
- --orange: #ff5a1f;
31
- --orange-dark: #c83a10;
32
- --green: #26744b;
33
- --danger: #bb2c2c;
34
- --input: #fffdf7;
35
- --shadow: 8px 8px 0 rgba(21, 17, 13, 0.16);
36
- }
37
-
38
- html[data-theme="dark"] {
39
- color-scheme: dark;
40
- --paper: #15110d;
41
- --paper-deep: #231a14;
42
- --panel: #201811;
43
- --panel-strong: #2d2118;
44
- --ink: #fff8ec;
45
- --muted: #c5b39f;
46
- --line: #f3eadc;
47
- --line-soft: rgba(243, 234, 220, 0.2);
48
- --orange: #ff7a2d;
49
- --orange-dark: #ff5a1f;
50
- --green: #64c18a;
51
- --danger: #ff7777;
52
- --input: #17120d;
53
- --shadow: 8px 8px 0 rgba(0, 0, 0, 0.38);
54
- }
55
-
56
- * {
57
- box-sizing: border-box;
58
- }
59
-
60
- html {
61
- min-width: 320px;
62
- }
63
-
64
- body {
65
- background:
66
- linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 42px 42px,
67
- linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 42px 42px,
68
- var(--paper);
69
- color: var(--ink);
70
- font-family:
71
- "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
72
- "Segoe UI", sans-serif;
73
- font-size: 16px;
74
- line-height: 1.45;
75
- margin: 0;
76
- }
77
-
78
- button,
79
- input,
80
- select,
81
- textarea {
82
- font: inherit;
83
- }
84
-
85
- a {
86
- color: inherit;
87
- }
88
-
89
- button:focus-visible,
90
- a:focus-visible,
91
- select:focus-visible,
92
- textarea:focus-visible {
93
- outline: 3px solid var(--orange);
94
- outline-offset: 2px;
95
- }
96
-
97
- .page {
98
- margin: 0 auto;
99
- max-width: 1320px;
100
- padding: 18px;
101
- }
102
-
103
- .topbar {
104
- align-items: center;
105
- border: 2px solid var(--line);
106
- background: var(--panel);
107
- display: flex;
108
- gap: 16px;
109
- justify-content: space-between;
110
- min-height: 68px;
111
- padding: 12px 14px;
112
- }
113
-
114
- .brand-mark {
115
- align-items: center;
116
- display: flex;
117
- gap: 12px;
118
- min-width: 0;
119
- }
120
-
121
- .brand-badge {
122
- align-items: center;
123
- background: var(--ink);
124
- color: var(--paper);
125
- display: inline-flex;
126
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
127
- font-size: 12px;
128
- font-weight: 800;
129
- height: 38px;
130
- justify-content: center;
131
- letter-spacing: 0;
132
- min-width: 38px;
133
- }
134
-
135
- .brand-copy {
136
- display: grid;
137
- gap: 2px;
138
- }
139
-
140
- .brand-copy strong {
141
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
142
- font-size: 13px;
143
- letter-spacing: 0.04em;
144
- text-transform: uppercase;
145
- }
146
-
147
- .brand-copy span {
148
- color: var(--muted);
149
- font-size: 13px;
150
- }
151
-
152
- .topnav {
153
- align-items: center;
154
- display: flex;
155
- flex-wrap: wrap;
156
- gap: 8px;
157
- justify-content: flex-end;
158
- }
159
-
160
- .nav-link,
161
- .button,
162
- .tab,
163
- .terrain-button {
164
- border: 2px solid var(--line);
165
- cursor: pointer;
166
- min-height: 42px;
167
- }
168
-
169
- .nav-link {
170
- align-items: center;
171
- background: transparent;
172
- display: inline-flex;
173
- font-size: 13px;
174
- font-weight: 800;
175
- justify-content: center;
176
- padding: 0 12px;
177
- text-decoration: none;
178
- text-transform: uppercase;
179
- }
180
-
181
- .nav-link:hover,
182
- .button.secondary:hover,
183
- .terrain-button:hover {
184
- background: var(--panel-strong);
185
- }
186
-
187
- .button {
188
- align-items: center;
189
- background: var(--orange);
190
- color: #120b07;
191
- display: inline-flex;
192
- font-weight: 900;
193
- justify-content: center;
194
- min-width: 0;
195
- padding: 0 16px;
196
- text-transform: uppercase;
197
- }
198
-
199
- .step .button {
200
- margin-top: 12px;
201
- }
202
-
203
- .button.secondary {
204
- background: transparent;
205
- color: var(--ink);
206
- }
207
-
208
- .button:disabled,
209
- select:disabled {
210
- cursor: not-allowed;
211
- opacity: 0.55;
212
- }
213
-
214
- .hero {
215
- display: grid;
216
- gap: 20px;
217
- grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
218
- padding: 34px 0 18px;
219
- }
220
-
221
- .hero-copy {
222
- min-width: 0;
223
- }
224
-
225
- .eyebrow-row {
226
- align-items: center;
227
- display: flex;
228
- flex-wrap: wrap;
229
- gap: 8px;
230
- margin-bottom: 16px;
231
- }
232
-
233
- .eyebrow {
234
- border: 2px solid var(--line);
235
- background: var(--panel);
236
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
237
- font-size: 12px;
238
- font-weight: 800;
239
- padding: 7px 10px;
240
- text-transform: uppercase;
241
- }
242
-
243
  .hero h1 {
244
  font-family:
245
  "Arial Black", Impact, "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
@@ -247,715 +247,715 @@
247
  letter-spacing: -0.045em;
248
  line-height: 0.92;
249
  margin: 0;
250
- max-width: 980px;
251
- text-wrap: balance;
252
- }
253
-
254
- .hero-lede {
255
- border-left: 8px solid var(--orange);
256
- color: var(--muted);
257
- font-size: clamp(19px, 2.4vw, 30px);
258
- font-weight: 700;
259
- line-height: 1.15;
260
- margin: 24px 0 0;
261
- max-width: 900px;
262
- padding-left: 18px;
263
- }
264
-
265
- .proof-grid {
266
- display: grid;
267
- gap: 8px;
268
- grid-template-columns: repeat(2, minmax(0, 1fr));
269
- margin-top: 24px;
270
- max-width: 820px;
271
- }
272
-
273
- .proof-chip {
274
- border: 2px solid var(--line);
275
- background: var(--panel);
276
- min-height: 58px;
277
- padding: 10px 12px;
278
- }
279
-
280
- .proof-chip strong {
281
- display: block;
282
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
283
- font-size: 12px;
284
- text-transform: uppercase;
285
- }
286
-
287
- .proof-chip span {
288
- color: var(--muted);
289
- display: block;
290
- font-size: 13px;
291
- margin-top: 2px;
292
- }
293
-
294
- .status-panel {
295
- align-self: end;
296
- background: var(--ink);
297
- border: 2px solid var(--line);
298
- color: var(--paper);
299
- min-height: 260px;
300
- padding: 18px;
301
- position: relative;
302
- }
303
-
304
- html[data-theme="dark"] .status-panel {
305
- background: var(--panel);
306
- color: var(--ink);
307
- }
308
-
309
- .status-panel:before {
310
- border: 2px solid var(--orange);
311
- bottom: 12px;
312
- content: "";
313
- left: 12px;
314
- pointer-events: none;
315
- position: absolute;
316
- right: 12px;
317
- top: 12px;
318
- }
319
-
320
- .status-panel h2 {
321
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
322
- font-size: 13px;
323
- letter-spacing: 0.04em;
324
- margin: 0 0 18px;
325
- text-transform: uppercase;
326
- }
327
-
328
- .status-metric {
329
- border-top: 1px solid currentColor;
330
- display: flex;
331
- gap: 14px;
332
- justify-content: space-between;
333
- padding: 12px 0;
334
- position: relative;
335
- z-index: 1;
336
- }
337
-
338
- .status-metric span {
339
- color: inherit;
340
- opacity: 0.72;
341
- }
342
-
343
- .status-link {
344
- display: inline-flex;
345
- font-weight: 800;
346
- margin-top: 14px;
347
- position: relative;
348
- text-transform: uppercase;
349
- z-index: 1;
350
- }
351
-
352
- .status {
353
- align-items: center;
354
- background: var(--panel);
355
- border: 2px solid var(--line);
356
- display: flex;
357
- gap: 14px;
358
- justify-content: space-between;
359
- margin: 0 0 14px;
360
- padding: 12px 14px;
361
- }
362
-
363
- .status strong {
364
- color: var(--orange-dark);
365
- }
366
-
367
- .status span,
368
- .muted {
369
- color: var(--muted);
370
- }
371
-
372
- .tabs {
373
- background: var(--line);
374
- border: 2px solid var(--line);
375
- display: flex;
376
- gap: 2px;
377
- margin: 18px 0;
378
- max-width: 100%;
379
- overflow-x: auto;
380
- padding: 2px;
381
- scrollbar-width: thin;
382
- }
383
-
384
- .tab {
385
- background: var(--panel);
386
- color: var(--muted);
387
- flex: 0 0 auto;
388
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
389
- font-size: 12px;
390
- font-weight: 800;
391
- padding: 0 14px;
392
- text-transform: uppercase;
393
- }
394
-
395
- .tab[aria-selected="true"] {
396
- background: var(--orange);
397
- color: #120b07;
398
- }
399
-
400
- .tab[disabled] {
401
- cursor: default;
402
- opacity: 0.7;
403
- }
404
-
405
- .view[hidden] {
406
- display: none;
407
- }
408
-
409
- .challenge-grid {
410
- display: grid;
411
- gap: 18px;
412
- grid-template-columns: minmax(290px, 410px) minmax(0, 1fr);
413
- }
414
-
415
- .challenge-grid > *,
416
- .duel > * {
417
- min-width: 0;
418
- }
419
-
420
- .panel,
421
- .metric,
422
- .step,
423
- .code-block {
424
- background: var(--panel);
425
- border: 2px solid var(--line);
426
- }
427
-
428
- .panel {
429
- padding: 16px;
430
- }
431
-
432
- .control-panel {
433
- box-shadow: var(--shadow);
434
- }
435
-
436
- .section-kicker {
437
- color: var(--muted);
438
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
439
- font-size: 12px;
440
- font-weight: 800;
441
- margin: 0 0 6px;
442
- text-transform: uppercase;
443
- }
444
-
445
- .section-title {
446
- font-size: 28px;
447
- line-height: 1;
448
- margin: 0 0 14px;
449
- text-transform: uppercase;
450
- }
451
-
452
- .field {
453
- display: grid;
454
- gap: 8px;
455
- margin-bottom: 14px;
456
- }
457
-
458
- label {
459
- color: var(--muted);
460
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
461
- font-size: 12px;
462
- font-weight: 800;
463
- text-transform: uppercase;
464
- }
465
-
466
- select,
467
- textarea {
468
- background: var(--input);
469
- border: 2px solid var(--line);
470
- color: var(--ink);
471
- min-height: 46px;
472
- padding: 11px 12px;
473
- width: 100%;
474
- }
475
-
476
- textarea {
477
- min-height: 190px;
478
- resize: vertical;
479
- }
480
-
481
- .terrain-select {
482
- display: none;
483
- }
484
-
485
- .terrain-grid {
486
- display: grid;
487
- gap: 8px;
488
- grid-template-columns: 1fr;
489
- }
490
-
491
- .terrain-button {
492
- background: var(--input);
493
- color: var(--ink);
494
- display: grid;
495
- gap: 2px;
496
- min-height: 64px;
497
- padding: 10px 12px;
498
- text-align: left;
499
- }
500
-
501
- .terrain-button strong {
502
- font-size: 15px;
503
- text-transform: uppercase;
504
- }
505
-
506
- .terrain-button span {
507
- color: var(--muted);
508
- font-size: 13px;
509
- }
510
-
511
- .terrain-button[aria-pressed="true"] {
512
- background: var(--orange);
513
- color: #120b07;
514
- }
515
-
516
- .terrain-button[aria-pressed="true"] span {
517
- color: #3d1b0d;
518
- }
519
-
520
- .duel {
521
- display: grid;
522
- gap: 16px;
523
- grid-template-columns: repeat(2, minmax(0, 1fr));
524
- }
525
-
526
- .duel-panel {
527
- display: grid;
528
- grid-template-rows: auto minmax(260px, 1fr) auto;
529
- min-height: 100%;
530
- }
531
-
532
- .duel-panel > * {
533
- max-width: 100%;
534
- min-width: 0;
535
- }
536
-
537
- .output {
538
- background: var(--input);
539
- border: 2px solid var(--line);
540
- min-height: 260px;
541
- overflow: auto;
542
- padding: 13px;
543
- white-space: pre-wrap;
544
- word-break: break-word;
545
- }
546
-
547
- .output:empty:before {
548
- color: var(--muted);
549
- content: "Waiting for stream.";
550
- }
551
-
552
- .panel-title {
553
- align-items: flex-start;
554
- display: flex;
555
- gap: 10px;
556
- justify-content: space-between;
557
- margin-bottom: 12px;
558
- }
559
-
560
- .panel-title h2 {
561
- font-size: 24px;
562
- line-height: 1;
563
- margin: 0;
564
- text-transform: uppercase;
565
- }
566
-
567
- .badge {
568
- background: var(--ink);
569
- border: 2px solid var(--line);
570
- color: var(--paper);
571
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
572
- font-size: 12px;
573
- font-weight: 800;
574
- max-width: 100%;
575
- overflow: hidden;
576
- padding: 5px 8px;
577
- text-overflow: ellipsis;
578
- text-transform: uppercase;
579
- white-space: nowrap;
580
- }
581
-
582
- html[data-theme="dark"] .badge {
583
- background: var(--orange);
584
- color: #120b07;
585
- }
586
-
587
- .metrics {
588
- display: grid;
589
- gap: 8px;
590
- grid-template-columns: repeat(2, minmax(0, 1fr));
591
- margin-top: 12px;
592
- }
593
-
594
- .metric {
595
- min-height: 62px;
596
- padding: 9px;
597
- }
598
-
599
- .metric span {
600
- color: var(--muted);
601
- display: block;
602
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
603
- font-size: 11px;
604
- font-weight: 800;
605
- text-transform: uppercase;
606
- }
607
-
608
- .metric strong {
609
- display: block;
610
- margin-top: 3px;
611
- overflow-wrap: anywhere;
612
- }
613
-
614
- .verdict {
615
- background: var(--panel);
616
- border: 2px solid var(--line);
617
- border-left: 12px solid var(--orange);
618
- display: grid;
619
- font-weight: 800;
620
- gap: 4px;
621
- margin-top: 16px;
622
- padding: 12px 14px;
623
- }
624
-
625
- .verdict strong {
626
- font-size: 18px;
627
- }
628
-
629
- .verdict span {
630
- color: var(--orange-dark);
631
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
632
- font-size: 14px;
633
- text-transform: uppercase;
634
- }
635
-
636
- .verdict small {
637
- color: var(--muted);
638
- font-weight: 700;
639
- }
640
-
641
- .live-note,
642
- .reference-note {
643
- color: var(--muted);
644
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
645
- font-size: 12px;
646
- font-weight: 800;
647
- letter-spacing: 0;
648
- margin: 8px 0 0;
649
- text-transform: uppercase;
650
- }
651
-
652
- .live-note strong,
653
- .reference-note strong {
654
- color: var(--ink);
655
- }
656
-
657
- .actions {
658
- display: flex;
659
- flex-wrap: wrap;
660
- gap: 10px;
661
- margin-top: 14px;
662
- }
663
-
664
- .benchmark-grid {
665
- display: grid;
666
- gap: 16px;
667
- grid-template-columns: repeat(3, minmax(0, 1fr));
668
- }
669
-
670
- .benchmark-card {
671
- min-height: 190px;
672
- }
673
-
674
- .benchmark-card strong {
675
- display: block;
676
- font-size: clamp(34px, 7vw, 78px);
677
- letter-spacing: 0;
678
- line-height: 0.9;
679
- margin: 6px 0 10px;
680
- text-transform: uppercase;
681
- }
682
-
683
- .stat-strip {
684
- background: var(--orange);
685
- border: 2px solid var(--line);
686
- color: #120b07;
687
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
688
- font-size: clamp(22px, 5vw, 54px);
689
- font-weight: 900;
690
- line-height: 0.95;
691
- margin-bottom: 16px;
692
- padding: 18px;
693
- text-transform: uppercase;
694
- }
695
-
696
- .api-grid {
697
- display: grid;
698
- gap: 16px;
699
- grid-template-columns: repeat(3, minmax(0, 1fr));
700
- }
701
-
702
- .step,
703
- .code-block {
704
- padding: 16px;
705
- }
706
-
707
- .step h2,
708
- .panel h2 {
709
- line-height: 1.1;
710
- margin-top: 0;
711
- }
712
-
713
- pre {
714
- margin: 0;
715
- overflow-x: auto;
716
- white-space: pre;
717
- }
718
-
719
- code {
720
- font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
721
- font-size: 13px;
722
- }
723
-
724
- table {
725
- border-collapse: collapse;
726
- width: 100%;
727
- }
728
-
729
- .table-scroll {
730
- margin-top: 10px;
731
- max-width: 100%;
732
- overflow-x: auto;
733
- -webkit-overflow-scrolling: touch;
734
- }
735
-
736
- .table-scroll table {
737
- min-width: 640px;
738
- }
739
-
740
- td,
741
- th {
742
- border-bottom: 2px solid var(--line);
743
- padding: 10px;
744
- text-align: left;
745
- vertical-align: top;
746
- }
747
-
748
- .footer {
749
- align-items: center;
750
- border-top: 2px solid var(--line);
751
- color: var(--muted);
752
- display: flex;
753
- flex-wrap: wrap;
754
- gap: 12px;
755
- justify-content: space-between;
756
- margin-top: 28px;
757
- padding: 18px 0 0;
758
- }
759
-
760
- .footer-links {
761
- display: flex;
762
- flex-wrap: wrap;
763
- gap: 12px;
764
- }
765
-
766
- .footer a {
767
- font-weight: 800;
768
- }
769
-
770
- @media (max-width: 980px) {
771
- .hero,
772
- .challenge-grid,
773
- .duel,
774
- .api-grid,
775
- .benchmark-grid {
776
- grid-template-columns: 1fr;
777
- }
778
-
779
- .status-panel {
780
- min-height: 220px;
781
- }
782
- }
783
-
784
- @media (max-width: 700px) {
785
- .page {
786
- padding: 12px;
787
- }
788
-
789
- .topbar,
790
- .status {
791
- align-items: flex-start;
792
- flex-direction: column;
793
- }
794
-
795
- .topnav {
796
- justify-content: flex-start;
797
- width: 100%;
798
- }
799
-
800
- .nav-link,
801
- .topnav .button {
802
- flex: 1 1 130px;
803
- }
804
-
805
- .hero {
806
- padding-top: 24px;
807
- }
808
-
809
- .hero h1 {
810
- font-size: clamp(54px, 23vw, 96px);
811
- }
812
-
813
- .proof-grid,
814
- .metrics {
815
- grid-template-columns: 1fr;
816
- }
817
-
818
- .tabs {
819
- flex-wrap: wrap;
820
- overflow: visible;
821
- }
822
-
823
- .tab {
824
- flex: 1 1 calc(50% - 2px);
825
- }
826
-
827
- .panel {
828
- padding: 12px;
829
- }
830
 
831
- .table-scroll {
832
- border-left: 2px solid var(--line);
833
- border-right: 2px solid var(--line);
834
- margin-left: -2px;
835
- margin-right: -2px;
836
- padding: 0 8px 6px;
837
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
838
 
839
- textarea {
840
- min-height: 170px;
841
- }
842
  }
843
 
844
- @media (prefers-reduced-motion: no-preference) {
845
- .button,
846
- .nav-link,
847
- .tab,
848
- .terrain-button {
849
- transition:
850
- background 140ms ease,
851
- color 140ms ease,
852
- transform 140ms ease;
853
- }
854
 
855
- .button:hover,
856
- .nav-link:hover,
857
- .tab:not([disabled]):hover,
858
- .terrain-button:hover {
859
- transform: translate(-1px, -1px);
860
- }
861
  }
862
- </style>
863
- </head>
864
- <body>
865
- <main class="page">
866
- <header class="topbar">
867
- <div class="brand-mark">
868
- <span class="brand-badge">S</span>
869
- <div class="brand-copy">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
870
  <strong>SOVINFRA | PRIVATE AI</strong>
871
  <span>Private modeless inference · EU-hosted.</span>
872
- </div>
873
- </div>
874
- <nav class="topnav" aria-label="Navigation">
875
- <button class="nav-link" data-nav-tab="api" type="button">Developers</button>
876
- <a class="nav-link" href="https://codeberg.org/sovinfra" rel="noopener noreferrer" target="_blank">
877
- Codeberg
878
- </a>
879
  <a class="nav-link" data-console-link href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">
880
- Console
881
- </a>
882
- <button class="button secondary" id="themeButton" type="button">Dark mode</button>
883
- </nav>
884
- </header>
885
-
886
- <section class="hero" aria-labelledby="hero-title">
887
- <div class="hero-copy">
888
- <div class="eyebrow-row">
889
- <span class="eyebrow">Sovereign AI stack</span>
890
- <span class="eyebrow">July 2026</span>
891
- </div>
892
  <h1 id="hero-title">Frontier-class quality. A fraction of the cost.</h1>
893
  <p class="hero-lede">
894
  Private, own-stack inference you control. EU-hosted, token-level pricing.
895
- </p>
896
- <div class="proof-grid" aria-label="Models and modalities">
897
- <div class="proof-chip">
898
- <strong>Qwen3-Coder-Next FP8</strong>
899
- <span>Code and technical generation</span>
900
- </div>
901
- <div class="proof-chip">
902
  <strong>Gemma 4 31B FP8</strong>
903
  <span>Text, vision and extraction</span>
904
- </div>
905
- <div class="proof-chip">
906
- <strong>Whisper Large V3</strong>
907
- <span>FR / EN audio coverage</span>
908
- </div>
909
- <div class="proof-chip">
910
- <strong>BGE-M3 + ChromaDB</strong>
911
  <span>Long-term memory and search</span>
912
- </div>
913
- </div>
914
- </div>
915
-
916
- <aside class="status-panel" aria-label="Resume infrastructure">
917
- <h2>Live stack</h2>
918
- <div class="status-metric">
919
- <span>Mode</span>
920
- <strong>Modeless</strong>
921
- </div>
922
- <div class="status-metric">
923
- <span>Region</span>
924
- <strong>Europe</strong>
925
- </div>
926
  <div class="status-metric">
927
  <span>Input</span>
928
- <strong>$0.015 / M in</strong>
929
  </div>
930
  <div class="status-metric">
931
  <span>Output</span>
932
- <strong>$0.13 / M out</strong>
933
- </div>
934
- <a class="status-link" href="#view-defi">Launch arena</a>
935
- </aside>
936
- </section>
937
-
938
- <section class="status" aria-label="Statut infrastructure">
939
- <span><strong id="statusLabel">loading live status</strong><span id="statusDetail"></span></span>
940
- <a href="https://status.sovinfra.cloud/" rel="noopener noreferrer" target="_blank">
941
- Full status
942
- </a>
943
- </section>
944
-
945
- <nav class="tabs" aria-label="Vues">
946
- <button class="tab" data-tab="defi" aria-selected="true" type="button">Arena</button>
947
- <button class="tab" data-tab="speed" aria-selected="false" type="button">Speed</button>
948
- <button class="tab" data-tab="best" aria-selected="false" type="button">Best-of-2</button>
949
- <button class="tab" data-tab="economy" aria-selected="false" type="button">Economy</button>
950
- <button class="tab" data-tab="api" aria-selected="false" type="button">API ACCESS</button>
951
- </nav>
952
-
953
- <section class="view" id="view-defi">
954
- <div class="challenge-grid">
955
- <aside class="panel control-panel">
956
- <p class="section-kicker">Preloaded prompt</p>
957
- <h2 class="section-title">The Arena</h2>
958
- <div class="field">
959
  <label>Terrain</label>
960
  <select class="terrain-select" id="terrain" aria-label="Terrain">
961
  <option value="code">Code a function</option>
@@ -968,24 +968,24 @@
968
  <strong>Code</strong>
969
  <span>Code a function</span>
970
  </button>
971
- <button class="terrain-button" data-terrain="audit" aria-pressed="false" type="button">
972
- <strong>Analysis</strong>
973
- <span>Audit a text</span>
974
- </button>
975
- <button class="terrain-button" data-terrain="json" aria-pressed="false" type="button">
976
- <strong>Structure</strong>
977
- <span>Extract to JSON</span>
978
- </button>
979
- <button class="terrain-button" data-terrain="reasoning" aria-pressed="false" type="button">
980
- <strong>Reasoning</strong>
981
- <span>Stress-test modeless routing</span>
982
- </button>
983
- </div>
984
  </div>
985
  <div class="field">
986
  <label for="prompt">Editable prompt</label>
987
  <textarea id="prompt">Implement merge_intervals(intervals: Array&lt;[number, number]&gt;) in TypeScript. Return sorted, non-overlapping intervals. Merge touching intervals, reject invalid ranges, handle empty input and negative values, and include concise tests.</textarea>
988
- </div>
989
  <div class="field">
990
  <label for="challenger">Challenger</label>
991
  <select id="challenger">
@@ -995,52 +995,52 @@
995
  Comparable profile: reasoning is reduced where the official API permits it.
996
  Provider keys remain server-side.
997
  </p>
998
- </div>
999
- <button class="button" id="runButton" type="button">Test SovAPI</button>
1000
  <p class="muted" id="quotaText">Challenger cap: 30,000 tokens per duel.</p>
1001
- </aside>
1002
-
1003
- <section>
1004
- <div class="duel">
1005
- <article class="panel duel-panel">
1006
- <div class="panel-title">
1007
  <div>
1008
  <p class="section-kicker" id="leftLaneKicker">A - Private</p>
1009
  <h2 id="sovapiLaneTitle">SOVAPI CODE</h2>
1010
- </div>
1011
  <span class="badge" id="leftLaneBadge">sovapi</span>
1012
- </div>
1013
- <div class="output" id="sovapiOutput"></div>
1014
- <div class="metrics" id="sovapiMetrics"></div>
1015
- <p class="live-note">Live measured from this run.</p>
1016
- </article>
1017
- <article class="panel duel-panel">
1018
- <div class="panel-title">
1019
  <div>
1020
  <p class="section-kicker" id="rightLaneKicker">B - Challenger</p>
1021
  <h2 id="challengerProviderTitle">Anthropic — Claude Sonnet 5</h2>
1022
  </div>
1023
  <span class="badge" id="challengerBadge">Claude Sonnet 5</span>
1024
- </div>
1025
- <div class="output" id="challengerOutput"></div>
1026
- <div class="metrics" id="challengerMetrics"></div>
1027
- <p class="live-note">Live measured from this run.</p>
1028
- </article>
1029
- </div>
1030
  <div class="verdict" id="verdict" aria-live="polite">
1031
  The live verdict appears after both measured runs complete.
1032
- </div>
1033
- <div class="actions">
1034
- <button class="button secondary" id="newButton" type="button">New test</button>
1035
- <button class="button secondary" id="shareButton" type="button" disabled>
1036
- Share result
1037
- </button>
1038
- </div>
1039
  <canvas id="shareCanvas" width="1600" height="900" hidden></canvas>
1040
- </section>
1041
- </div>
1042
- </section>
1043
-
1044
  <section class="view" id="view-speed" hidden>
1045
  <div class="stat-strip">Reference target: 6x faster TTFT</div>
1046
  <div class="benchmark-grid">
@@ -1059,16 +1059,16 @@
1059
  <strong>234 tok/s</strong>
1060
  <p>Reference throughput on the SovAPI Text lane (analysis, reasoning, structure).</p>
1061
  </article>
1062
- </div>
1063
- <div class="panel" style="margin-top: 16px">
1064
- <h2>Latency reference table</h2>
1065
- <p class="reference-note">
1066
- <strong>Reference / expected values.</strong> The Arena verdict above is recalculated
1067
- from each live duel.
1068
- </p>
1069
- <div class="table-scroll" role="region" aria-label="Latency reference table" tabindex="0">
1070
- <table>
1071
- <thead>
1072
  <tr><th>Scenario</th><th>SovAPI route</th><th>SovAPI reference</th><th>Challenger reference</th><th>Signal</th></tr>
1073
  </thead>
1074
  <tbody>
@@ -1095,7 +1095,7 @@
1095
  </p>
1096
  </div>
1097
  </section>
1098
-
1099
  <section class="view" id="view-best" hidden>
1100
  <div class="stat-strip">ANTHROPIC-CLASS QUALITY · 60x cheaper than Claude Sonnet 5 · IN EUROPE</div>
1101
  <div class="panel">
@@ -1139,78 +1139,78 @@
1139
  </div>
1140
  </div>
1141
  </section>
1142
-
1143
  <section class="view" id="view-economy" hidden>
1144
  <div class="stat-strip">Usage-based pricing in US dollars, with no commitment</div>
1145
- <div class="benchmark-grid">
1146
- <article class="panel benchmark-card">
1147
  <p class="section-kicker">Input</p>
1148
- <strong>$0.015</strong>
1149
  <p>Per million input tokens.</p>
1150
- </article>
1151
- <article class="panel benchmark-card">
1152
  <p class="section-kicker">Output</p>
1153
- <strong>$0.13</strong>
1154
  <p>Per million output tokens.</p>
1155
- </article>
1156
- <article class="panel benchmark-card">
1157
- <p class="section-kicker">Trial grant</p>
1158
- <strong>100 M</strong>
1159
- <p>Trial tokens for developers starting from API ACCESS.</p>
1160
- </article>
1161
- </div>
1162
- <div class="panel" style="margin-top: 16px">
1163
  <h2>Economy reference table</h2>
1164
  <p class="reference-note">
1165
  <strong>Reference / expected values.</strong> SovAPI cost is recalculated from live
1166
  token usage. Challenger cost remains unavailable when the official API response does
1167
  not expose a monetary amount.
1168
- </p>
1169
- <div class="table-scroll" role="region" aria-label="Economy reference table" tabindex="0">
1170
- <table>
1171
- <thead>
1172
- <tr><th>Metric</th><th>SovAPI</th><th>Challenger</th><th>How it is shown</th></tr>
1173
- </thead>
1174
  <tbody>
1175
- <tr><td>Input token price</td><td>$0.015 / M reference grid</td><td>-- when unavailable</td><td>No inferred challenger price</td></tr>
1176
- <tr><td>Output token price</td><td>$0.13 / M reference grid</td><td>-- when unavailable</td><td>No inferred challenger price</td></tr>
1177
  <tr><td>Per-request cost</td><td>Calculated from real tokens</td><td>-- when unavailable</td><td>Only a server-reported amount is displayed</td></tr>
1178
  <tr><td>Trial grant</td><td>100 M tokens</td><td>None</td><td>API ACCESS onboarding</td></tr>
1179
  <tr><td>Rate limit</td><td>100 req/min free; 600 req/min PAYG</td><td>Provider-specific</td><td>Applied server-side by tier</td></tr>
1180
  <tr><td>Billing</td><td>Exclusively token usage</td><td>Provider-specific</td><td>No SovAPI commitment</td></tr>
1181
- </tbody>
1182
- </table>
1183
- </div>
1184
- </div>
1185
- </section>
1186
-
1187
- <section class="view" id="view-api" hidden>
1188
- <div class="api-grid">
1189
- <div class="step">
1190
- <p class="section-kicker">Step 1</p>
1191
- <h2>Create your key</h2>
1192
- <p>Use GitHub or Google OAuth, then generate your trial SovAPI key.</p>
1193
  <a class="button" data-console-link href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">
1194
- Create my API key
1195
- </a>
1196
- </div>
1197
- <div class="step">
1198
- <p class="section-kicker">Step 2</p>
1199
- <h2>Change two lines</h2>
1200
- <p>Keep your OpenAI SDK, replace only base_url and api_key.</p>
1201
- </div>
1202
- <div class="step">
1203
- <p class="section-kicker">Step 3</p>
1204
- <h2>Call sovapi</h2>
1205
- <p>One public model, automatic routing by modality.</p>
1206
- </div>
1207
- </div>
1208
-
1209
- <div class="panel" style="margin-top: 16px">
1210
  <h2>Plans and pricing</h2>
1211
- <div class="table-scroll" role="region" aria-label="Model and pricing table" tabindex="0">
1212
- <table>
1213
- <thead>
1214
  <tr><th>Tier</th><th>Tokens</th><th>Rate limit</th><th>Input</th><th>Output</th><th>Support</th><th>Retention</th></tr>
1215
  </thead>
1216
  <tbody>
@@ -1227,65 +1227,65 @@
1227
  <td>Pay-as-you-go</td>
1228
  <td>Unlimited</td>
1229
  <td>600 req/min</td>
1230
- <td>$0.015 / M tokens</td>
1231
- <td>$0.13 / M tokens</td>
1232
  <td>Email within 24h</td>
1233
  <td>None</td>
1234
  </tr>
1235
- </tbody>
1236
- </table>
1237
- </div>
1238
- </div>
1239
-
1240
- <div class="code-block" style="margin-top: 16px">
1241
- <pre><code>curl https://api.sovinfra.ai/v1/chat/completions \
1242
- -H "Authorization: Bearer $SOVINFRA_API_KEY" \
1243
- -H "Content-Type: application/json" \
1244
- -d '{"model":"sovapi","messages":[{"role":"user","content":"Hello"}]}'</code></pre>
1245
- </div>
1246
- <div class="code-block" style="margin-top: 16px">
1247
- <pre><code>from openai import OpenAI
1248
-
1249
- client = OpenAI(
1250
- base_url="https://api.sovinfra.ai/v1",
1251
- api_key="sk-sov-...",
1252
- )
1253
-
1254
- response = client.chat.completions.create(
1255
- model="sovapi",
1256
- messages=[{"role": "user", "content": "Explain SovAPI in one sentence."}],
1257
- )</code></pre>
1258
- </div>
1259
- <div class="code-block" style="margin-top: 16px">
1260
- <pre><code>import OpenAI from "openai";
1261
-
1262
- const client = new OpenAI({
1263
- baseURL: "https://api.sovinfra.ai/v1",
1264
- apiKey: process.env.SOVINFRA_API_KEY,
1265
- });</code></pre>
1266
- </div>
1267
-
1268
- <div class="panel" style="margin-top: 16px">
1269
  <h2>Compliance and control</h2>
1270
  <p>
1271
  Private inference, models hosted in Europe, server-side secrets, and logs without
1272
- prompts or keys. Legal notices and terms are available from the footer.
1273
- </p>
1274
- </div>
1275
- </section>
1276
-
1277
- <footer class="footer">
1278
- <span>SOVINFRA - FPLC SAS, 10 Place Vendome, Paris.</span>
1279
- <div class="footer-links">
1280
- <a href="https://status.sovinfra.cloud/" rel="noopener noreferrer" target="_blank">Status</a>
1281
- <a href="https://codeberg.org/sovinfra" rel="noopener noreferrer" target="_blank">Codeberg</a>
1282
- <a href="/legal">Legal</a>
1283
- <a href="/terms">Terms</a>
1284
- <a href="mailto:contact@sovinfra.ai">contact@sovinfra.ai</a>
1285
- </div>
1286
- </footer>
1287
- </main>
1288
-
1289
  <script>
1290
  const REFERRAL_CODE_PATTERN = /^[a-z0-9_-]{1,64}$/;
1291
 
@@ -1314,8 +1314,8 @@ const client = new OpenAI({
1314
  window.SOVAPI_STATUS_SUMMARY_URL || "https://api.sovinfra.ai/health/ready";
1315
  const DEFAULT_CHALLENGER_MODEL = "anthropic/claude-sonnet-5";
1316
  const THEME_KEY = "sovapi.theme";
1317
- const MOBILE_RETRY_DELAYS_MS = [0, 900, 2200];
1318
- const DESKTOP_RETRY_DELAYS_MS = [0, 900];
1319
  const MOBILE_REQUEST_TIMEOUT_MS = 180000;
1320
  const DESKTOP_REQUEST_TIMEOUT_MS = 150000;
1321
  const TERRAIN_WARMUP_MAX_AGE_MS = 45000;
@@ -1428,8 +1428,8 @@ const client = new OpenAI({
1428
  });
1429
  const PROMPTS = {
1430
  code: "Implement merge_intervals(intervals: Array<[number, number]>) in TypeScript. Return sorted, non-overlapping intervals. Merge touching intervals, reject invalid ranges, handle empty input and negative values, and include concise tests.",
1431
- audit:
1432
- "Audit this reasoning: 'Our competitor lowered prices this quarter, therefore their infrastructure must be cheaper to operate and we should immediately match their price.' Identify the fallacies, missing evidence, business risks, and a corrected decision process.",
1433
  json:
1434
  "Extract this invoice into strict JSON only, as minified JSON with no extra whitespace: Invoice INV-2026-0710, issued by Northwind Hosting SAS to FPLC SAS, 10 Place Vendome, Paris. Date 2026-07-10. Due 2026-07-25. Lines: H200 GPU hosting, quantity 42 hours, unit price 18.50 EUR; Sovereign inference support, quantity 1, unit price 690 EUR. VAT rate 20%. Return invoice_number, supplier, customer, dates, line_items, subtotal_eur, vat_eur, total_eur.",
1435
  reasoning:
@@ -1450,16 +1450,16 @@ const client = new OpenAI({
1450
  running: false,
1451
  };
1452
  const terrainWarmups = new Map();
1453
-
1454
- const qs = (selector) => document.querySelector(selector);
1455
-
1456
  function randomDuelId() {
1457
  if (globalThis.crypto && typeof globalThis.crypto.randomUUID === "function") {
1458
  return globalThis.crypto.randomUUID();
1459
  }
1460
  return `duel-${Date.now()}-${Math.random().toString(16).slice(2)}`;
1461
  }
1462
-
1463
  function setTheme(nextTheme, persist = true) {
1464
  const normalizedTheme = nextTheme === "dark" ? "dark" : "light";
1465
  document.documentElement.dataset.theme = normalizedTheme;
@@ -1473,34 +1473,34 @@ const client = new OpenAI({
1473
  }
1474
 
1475
  setTheme(document.documentElement.dataset.theme, false);
1476
-
1477
- qs("#themeButton").addEventListener("click", () => {
1478
- const current = document.documentElement.dataset.theme;
1479
- setTheme(current === "dark" ? "light" : "dark");
1480
- });
1481
-
1482
- function sleep(ms) {
1483
- return new Promise((resolve) => setTimeout(resolve, ms));
1484
- }
1485
-
1486
- function shouldUseMobileSafeMode() {
1487
- const userAgent = navigator.userAgent || "";
1488
- const coarsePointer = window.matchMedia?.("(pointer: coarse)")?.matches || false;
1489
- return /iPhone|iPad|iPod|Android|Mobile/.test(userAgent) || coarsePointer;
1490
- }
1491
-
1492
- function requestTimeoutMs() {
1493
- return shouldUseMobileSafeMode() ? MOBILE_REQUEST_TIMEOUT_MS : DESKTOP_REQUEST_TIMEOUT_MS;
1494
- }
1495
-
1496
- function retryDelaysMs() {
1497
- return shouldUseMobileSafeMode() ? MOBILE_RETRY_DELAYS_MS : DESKTOP_RETRY_DELAYS_MS;
1498
- }
1499
-
1500
- function isRetryableStatus(status) {
1501
- return status === 408 || status === 425 || status === 429 || status >= 500;
1502
- }
1503
-
1504
  function annotateChallengeError(error, details = {}) {
1505
  error.code = details.code || "challenge_unavailable";
1506
  error.publicMessage = details.publicMessage || "";
@@ -1519,7 +1519,7 @@ const client = new OpenAI({
1519
  error.retryable = false;
1520
  return annotateChallengeError(error, details);
1521
  }
1522
-
1523
  function shouldRetryError(error) {
1524
  return error?.retryable !== false;
1525
  }
@@ -1609,23 +1609,23 @@ const client = new OpenAI({
1609
  function rejectedRunCopy(side, error) {
1610
  return error?.publicMessage || challengeFailureCopy(side, error?.code, error?.retryAfterSeconds);
1611
  }
1612
-
1613
- async function fetchWithTimeout(url, options = {}) {
1614
- const controller = new AbortController();
1615
- const timeout = setTimeout(() => controller.abort(), requestTimeoutMs());
1616
- try {
1617
- return await fetch(url, {
1618
- cache: "no-store",
1619
- credentials: "omit",
1620
- mode: "cors",
1621
- ...options,
1622
- signal: controller.signal,
1623
- });
1624
- } finally {
1625
- clearTimeout(timeout);
1626
- }
1627
- }
1628
-
1629
  async function fetchJsonFromApiBases(path, options = {}) {
1630
  let lastError;
1631
  const method = options.method || "GET";
@@ -1640,12 +1640,12 @@ const client = new OpenAI({
1640
  ? retryableError(`${method} ${path} failed with ${response.status}`)
1641
  : nonRetryableError(`${method} ${path} failed with ${response.status}`);
1642
  }
1643
- return await response.json();
1644
- } catch (error) {
1645
- lastError = error;
1646
- if (!shouldRetryError(error)) break;
1647
- }
1648
- }
1649
  throw lastError || new Error(`${method} ${path} failed`);
1650
  }
1651
 
@@ -1663,30 +1663,30 @@ const client = new OpenAI({
1663
  terrainWarmups.set(selectedTerrain, { startedAt: now, promise });
1664
  return promise;
1665
  }
1666
-
1667
- function selectTab(tab) {
1668
- document.querySelectorAll(".tab[data-tab]").forEach((item) => {
1669
- item.setAttribute("aria-selected", String(item.dataset.tab === tab));
1670
- });
1671
- document.querySelectorAll(".view[id^='view-']").forEach((view) => {
1672
- view.hidden = view.id !== `view-${tab}`;
1673
- });
1674
- const target = qs(`#view-${tab}`) || qs("#view-defi");
1675
- target.scrollIntoView({ block: "start", behavior: "smooth" });
1676
- }
1677
-
1678
- document.querySelectorAll(".tab[data-tab]").forEach((button) => {
1679
- button.addEventListener("click", () => {
1680
- selectTab(button.dataset.tab);
1681
- });
1682
- });
1683
-
1684
- document.querySelectorAll("[data-nav-tab]").forEach((button) => {
1685
- button.addEventListener("click", () => {
1686
- selectTab(button.dataset.navTab);
1687
- });
1688
- });
1689
-
1690
  function selectTerrain(terrain) {
1691
  const selectedTerrain = PROMPTS[terrain] ? terrain : "code";
1692
  qs("#terrain").value = selectedTerrain;
@@ -1713,7 +1713,7 @@ const client = new OpenAI({
1713
  });
1714
 
1715
  window.addEventListener("pageshow", () => selectTerrain(qs("#terrain").value));
1716
-
1717
  async function loadModels() {
1718
  const select = qs("#challenger");
1719
  try {
@@ -1909,25 +1909,25 @@ const client = new OpenAI({
1909
  state.duelDefinition = null;
1910
  updateLanePresentation();
1911
  qs("#sovapiOutput").textContent = "";
1912
- qs("#challengerOutput").textContent = "";
1913
- qs("#sovapiMetrics").replaceChildren();
1914
- qs("#challengerMetrics").replaceChildren();
1915
  qs("#verdict").textContent = "Live run in progress.";
1916
  qs("#shareButton").disabled = true;
1917
  qs("#quotaText").textContent = "30,000 Challenger tokens available for this duel.";
1918
- }
1919
-
1920
- function metric(label, value) {
1921
- const node = document.createElement("div");
1922
- const labelNode = document.createElement("span");
1923
- const valueNode = document.createElement("strong");
1924
- node.className = "metric";
1925
- labelNode.textContent = label;
1926
- valueNode.textContent = value;
1927
- node.append(labelNode, valueNode);
1928
- return node;
1929
- }
1930
-
1931
  function renderMetrics(target, metrics) {
1932
  const node = qs(target);
1933
  const provider =
@@ -1937,9 +1937,9 @@ const client = new OpenAI({
1937
  const rows = [
1938
  metric("Live provider", displayProviderName(provider)),
1939
  metric("Live model", metrics.model_label || metrics.model || "--"),
1940
- metric("Live TTFT", formatMs(metrics.time_to_first_token_ms)),
1941
- metric("Live latency", formatMs(metrics.latency_ms)),
1942
- metric("Live tokens/s", formatNumber(metrics.tokens_per_second)),
1943
  metric(
1944
  "Live tokens in/out",
1945
  `${formatNumber(metrics.input_tokens)}/${formatNumber(metrics.output_tokens)}`,
@@ -1949,37 +1949,37 @@ const client = new OpenAI({
1949
  metric("Provenance", metrics.provenance_verified ? "Verified" : "Unverified"),
1950
  metric("Finish reason", metrics.finish_reason || "--"),
1951
  metric("Est. public cost", formatCostUsd(metrics.cost_usd)),
1952
- ];
1953
- if (metrics.gpu_ms !== undefined) {
1954
- rows.push(metric("GPU", formatMs(metrics.gpu_ms)));
1955
- rows.push(metric("Network", formatMs(metrics.network_ms)));
1956
- }
1957
- node.replaceChildren(...rows);
1958
- }
1959
-
1960
- function formatNumber(value) {
1961
- if (value === null || value === undefined) return "--";
1962
- return Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 });
1963
- }
1964
-
1965
- function formatMs(value) {
1966
- if (value === null || value === undefined) return "--";
1967
- return `${Math.round(value)} ms`;
1968
- }
1969
-
1970
  function formatCostUsd(value) {
1971
  if (value === null || value === undefined) return "--";
1972
  return `${Number(value).toFixed(6)} USD`;
1973
- }
1974
-
1975
- function formatSeconds(value) {
1976
- if (value === null || value === undefined) return "--";
1977
- return `${(Number(value) / 1000).toFixed(2)} s`;
1978
- }
1979
-
1980
- function formatRatio(value) {
1981
- if (!Number.isFinite(value) || value <= 0) return "";
1982
- return value >= 10 ? value.toFixed(0) : value.toFixed(1);
1983
  }
1984
 
1985
  function ratioPhrase(sovValue, challengerValue, betterWord, worseWord, equalPhrase, unavailablePhrase) {
@@ -1993,16 +1993,16 @@ const client = new OpenAI({
1993
  }
1994
  const sov = Number(sovValue);
1995
  const challenger = Number(challengerValue);
1996
- if (!Number.isFinite(sov) || !Number.isFinite(challenger)) {
1997
- return unavailablePhrase;
1998
- }
1999
- if (sov === challenger) return equalPhrase;
2000
- const sovWins = sov < challenger;
2001
- if (sov <= 0 || challenger <= 0) return sovWins ? betterWord : worseWord;
2002
- const ratio = sovWins ? challenger / sov : sov / challenger;
2003
- return `${formatRatio(ratio)}x ${sovWins ? betterWord : worseWord}`.trim();
2004
- }
2005
-
2006
  function comparisonSummary() {
2007
  if (!state.sovapi || !state.challenger) {
2008
  return {
@@ -2010,21 +2010,21 @@ const client = new OpenAI({
2010
  ttft: "Total time and cost pending",
2011
  detail: "Run both sides to generate a shareable result.",
2012
  };
2013
- }
2014
- const speed = ratioPhrase(
2015
- state.sovapi.latency_ms,
2016
- state.challenger.latency_ms,
2017
- "faster",
2018
- "slower",
2019
- "same speed",
2020
- "speed unavailable",
2021
- );
2022
  const cost = ratioPhrase(
2023
  state.sovapi.cost_usd,
2024
  state.challenger.cost_usd,
2025
- "cheaper",
2026
- "more expensive",
2027
- "same cost",
2028
  "cost unavailable",
2029
  );
2030
  const ttft = ratioPhrase(
@@ -2051,16 +2051,16 @@ const client = new OpenAI({
2051
  detail.textContent = summary.detail;
2052
  qs("#verdict").replaceChildren(headline, ttft, detail);
2053
  }
2054
-
2055
  function updateVerdict() {
2056
  if (!state.sovapi || !state.challenger) {
2057
  if (state.sovapi) {
2058
  const leftName = measuredDuelDefinition().left.provider;
2059
  qs("#verdict").textContent =
2060
  `${leftName} run complete. Waiting for the second lane before sharing the result.`;
2061
- }
2062
- qs("#shareButton").disabled = true;
2063
- return;
2064
  }
2065
  renderLiveVerdict(comparisonSummary());
2066
  const issue = shareabilityIssue();
@@ -2084,29 +2084,29 @@ const client = new OpenAI({
2084
  }
2085
  return "";
2086
  }
2087
-
2088
- function shouldUseBufferedSse() {
2089
- const userAgent = navigator.userAgent || "";
2090
- const isIphone = /iPhone|iPod/.test(userAgent);
2091
- const isWebKit = /Safari/.test(userAgent) && !/Chrome|CriOS|FxiOS|Edg|OPR/.test(userAgent);
2092
- return isIphone && isWebKit;
2093
- }
2094
-
2095
- function markSideRetrying(side, attempt, base) {
2096
- const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2097
- const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2098
- output.textContent = `Mobile network retry ${attempt} in progress.`;
2099
- metrics.replaceChildren(metric("Status", "Retrying"), metric("Endpoint", base.replace("https://", "")));
2100
- }
2101
-
2102
- function resetSideBeforeRetry(side) {
2103
- const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2104
- const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2105
- output.textContent = "";
2106
- metrics.replaceChildren();
2107
- state[side] = null;
2108
- }
2109
-
2110
  async function runSide(side) {
2111
  if (!state.duelId) {
2112
  throw nonRetryableError("Duel identifier is not initialized");
@@ -2121,73 +2121,73 @@ const client = new OpenAI({
2121
  session_id: state.duelId,
2122
  challenger_model: lane.model,
2123
  };
2124
- const delays = retryDelaysMs();
2125
- let lastError;
2126
- for (let attemptIndex = 0; attemptIndex < delays.length; attemptIndex += 1) {
2127
- if (delays[attemptIndex] > 0) await sleep(delays[attemptIndex]);
2128
- for (const base of API_BASES) {
2129
- try {
2130
- if (attemptIndex > 0) {
2131
- resetSideBeforeRetry(side);
2132
- markSideRetrying(side, attemptIndex + 1, base);
2133
- }
2134
- await runSideAttempt(side, body, base);
2135
- return;
2136
- } catch (error) {
2137
- lastError = error;
2138
- if (!shouldRetryError(error)) throw error;
2139
- }
2140
- }
2141
- }
2142
- throw lastError || new Error(`Challenge ${side} failed`);
2143
- }
2144
-
2145
- async function runSideAttempt(side, body, base) {
2146
- const response = await fetchWithTimeout(`${base}/v1/challenge`, {
2147
- method: "POST",
2148
- headers: {
2149
- Accept: "text/event-stream",
2150
- "Content-Type": "application/json",
2151
- },
2152
- body: JSON.stringify(body),
2153
  });
2154
  if (!response.ok) {
2155
  throw await challengeResponseError(response, body.side);
2156
  }
2157
- if (shouldUseBufferedSse() || !response.body || typeof response.body.getReader !== "function") {
2158
- consumeSseText(side, await response.text(), true);
2159
- if (!state[side]) throw retryableError(`Challenge ${side} completed without metrics`);
2160
- return;
2161
- }
2162
- const reader = response.body.getReader();
2163
- const decoder = new TextDecoder();
2164
- let buffer = "";
2165
- while (true) {
2166
- const { done, value } = await reader.read();
2167
- if (done) break;
2168
- buffer = consumeSseText(side, buffer + decoder.decode(value, { stream: true }));
2169
- }
2170
- const trailing = decoder.decode();
2171
- consumeSseText(side, buffer + trailing, true);
2172
- if (!state[side]) throw retryableError(`Challenge ${side} completed without metrics`);
2173
- }
2174
-
2175
- function consumeSseText(side, text, flush = false) {
2176
- const parts = text.replace(/\r\n/g, "\n").split("\n\n");
2177
- const events = flush ? parts : parts.slice(0, -1);
2178
- events.forEach((eventText) => handleEvent(side, eventText));
2179
- return flush ? "" : parts[parts.length - 1] || "";
2180
- }
2181
-
2182
  function markSideUnavailable(side, message) {
2183
- const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2184
- const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2185
- output.textContent = message;
2186
- metrics.replaceChildren(metric("Status", "Unavailable"));
2187
- if (side === "challenger") {
2188
- state.challenger = null;
2189
- } else {
2190
- state.sovapi = null;
2191
  }
2192
  }
2193
 
@@ -2202,12 +2202,12 @@ const client = new OpenAI({
2202
  }
2203
 
2204
  function handleEvent(side, eventText) {
2205
- if (eventText.includes("data: [DONE]")) return;
2206
  const eventLine = eventText.split("\n").find((line) => line.startsWith("event:"));
2207
  const eventName = eventLine?.replace("event:", "").trim() || "message";
2208
- const dataLine = eventText.split("\n").find((line) => line.startsWith("data:"));
2209
- if (!dataLine) return;
2210
- let payload;
2211
  try {
2212
  payload = JSON.parse(dataLine.replace("data:", "").trim());
2213
  } catch (_error) {
@@ -2226,22 +2226,22 @@ const client = new OpenAI({
2226
  if (payload.side === "challenger") {
2227
  qs("#quotaText").textContent = `${formatNumber(payload.remaining_tokens)} Challenger tokens left in this duel.`;
2228
  }
2229
- updateVerdict();
2230
- return;
2231
- }
2232
- const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2233
- output.textContent += payload.delta || "";
2234
- }
2235
-
2236
- async function settleRun(promise) {
2237
- try {
2238
- await promise;
2239
- return { status: "fulfilled" };
2240
- } catch (reason) {
2241
- return { status: "rejected", reason };
2242
- }
2243
- }
2244
-
2245
  qs("#runButton").addEventListener("click", async () => {
2246
  await prewarmTerrain(qs("#terrain").value);
2247
  resetRun();
@@ -2249,9 +2249,9 @@ const client = new OpenAI({
2249
  state.duelId = randomDuelId();
2250
  setRunControlsDisabled(true);
2251
  try {
2252
- const results = shouldUseMobileSafeMode()
2253
- ? [await settleRun(runSide("sovapi")), await settleRun(runSide("challenger"))]
2254
- : await Promise.allSettled([runSide("sovapi"), runSide("challenger")]);
2255
  if (results[0].status === "rejected") {
2256
  markSideUnavailable("sovapi", rejectedRunCopy("sovapi", results[0].reason));
2257
  }
@@ -2268,16 +2268,16 @@ const client = new OpenAI({
2268
  invalidateMeasuredRun();
2269
  updateLanePresentation();
2270
  });
2271
-
2272
  qs("#shareButton").addEventListener("click", async () => {
2273
  if (shareabilityIssue()) {
2274
  updateVerdict();
2275
  return;
2276
  }
2277
  const canvas = qs("#shareCanvas");
2278
- drawShareCard(canvas);
2279
- const blob = await canvasToBlob(canvas);
2280
- if (!blob) return;
2281
  const file = new File([blob], "sovapi-arena-result.png", { type: "image/png" });
2282
  const shareData = {
2283
  title: "SOVINFRA | PRIVATE AI",
@@ -2396,13 +2396,13 @@ const client = new OpenAI({
2396
  context.fillText("arena.sovinfra.ai \u00b7 sovereign inference", 800, 810, 1280);
2397
  context.restore();
2398
  }
2399
-
2400
- function drawFrame(context, x, y, width, height, color) {
2401
- context.strokeStyle = color;
2402
- context.lineWidth = 3;
2403
- context.strokeRect(x, y, width, height);
2404
- }
2405
-
2406
  function drawMetricsTable(
2407
  context,
2408
  x,
@@ -2427,9 +2427,9 @@ const client = new OpenAI({
2427
  context.fillText(title, x + 24, y + 48, width - 48);
2428
  const rows = [
2429
  ["Model", sharedModelName || metrics?.model_label || metrics?.model || "--"],
2430
- ["TTFT", formatMs(metrics?.time_to_first_token_ms)],
2431
- ["Throughput", `${formatNumber(metrics?.tokens_per_second)} tok/s`],
2432
- ["Tokens", `${formatNumber(metrics?.input_tokens)} in / ${formatNumber(metrics?.output_tokens)} out`],
2433
  ["Cost", formatCostUsd(metrics?.cost_usd)],
2434
  ["Total time", formatSeconds(metrics?.latency_ms)],
2435
  ];
@@ -2444,32 +2444,32 @@ const client = new OpenAI({
2444
  context.fillText(value, x + 230, rowY, width - 262);
2445
  });
2446
  }
2447
-
2448
- function canvasToBlob(canvas) {
2449
- return new Promise((resolve) => {
2450
- if (canvas.toBlob) {
2451
- canvas.toBlob(resolve, "image/png");
2452
- return;
2453
- }
2454
- const dataUrl = canvas.toDataURL("image/png");
2455
- const parts = dataUrl.split(",");
2456
- const binary = atob(parts[1]);
2457
- const bytes = new Uint8Array(binary.length);
2458
- for (let index = 0; index < binary.length; index += 1) {
2459
- bytes[index] = binary.charCodeAt(index);
2460
- }
2461
- resolve(new Blob([bytes], { type: "image/png" }));
2462
- });
2463
- }
2464
-
2465
- function downloadBlob(blob, filename) {
2466
- const link = document.createElement("a");
2467
- link.href = URL.createObjectURL(blob);
2468
- link.download = filename;
2469
- link.click();
2470
- setTimeout(() => URL.revokeObjectURL(link.href), 1000);
2471
- }
2472
-
2473
  async function refreshStatus() {
2474
  try {
2475
  // This readiness read is also the deliberate first-duel warmup: the head-level
@@ -2479,24 +2479,24 @@ const client = new OpenAI({
2479
  credentials: "omit",
2480
  keepalive: true,
2481
  });
2482
- if (!response.ok) throw new Error("status unavailable");
2483
- const payload = await response.json();
2484
- const status = payload.status || {};
2485
- const description =
2486
- typeof status === "string" ? status : status.description || "operational";
2487
- qs("#statusLabel").textContent = `sovereign infra - ${description}`;
2488
- qs("#statusDetail").textContent = payload.page?.updated_at
2489
- ? ` - updated ${new Date(payload.page.updated_at).toLocaleString("en-GB")}`
2490
- : "";
2491
- } catch (_error) {
2492
- qs("#statusLabel").textContent = "live status unavailable";
2493
- qs("#statusDetail").textContent = "";
2494
- }
2495
- }
2496
-
2497
  loadModels();
2498
  refreshStatus();
2499
  void prewarmTerrain(qs("#terrain").value);
2500
- </script>
2501
- </body>
2502
- </html>
 
1
+ <!doctype html>
2
+ <html lang="en" data-theme="light">
3
+ <head>
4
+ <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Arena</title>
7
  <link rel="preconnect" href="https://api.sovinfra.ai" crossorigin />
 
17
  }
18
  </script>
19
  <style>
20
+ :root {
21
+ color-scheme: light;
22
+ --paper: #f3eadc;
23
+ --paper-deep: #e7d8c3;
24
+ --panel: #fff8ec;
25
+ --panel-strong: #f7e5ce;
26
+ --ink: #15110d;
27
+ --muted: #6f6255;
28
+ --line: #201812;
29
+ --line-soft: rgba(32, 24, 18, 0.22);
30
+ --orange: #ff5a1f;
31
+ --orange-dark: #c83a10;
32
+ --green: #26744b;
33
+ --danger: #bb2c2c;
34
+ --input: #fffdf7;
35
+ --shadow: 8px 8px 0 rgba(21, 17, 13, 0.16);
36
+ }
37
+
38
+ html[data-theme="dark"] {
39
+ color-scheme: dark;
40
+ --paper: #15110d;
41
+ --paper-deep: #231a14;
42
+ --panel: #201811;
43
+ --panel-strong: #2d2118;
44
+ --ink: #fff8ec;
45
+ --muted: #c5b39f;
46
+ --line: #f3eadc;
47
+ --line-soft: rgba(243, 234, 220, 0.2);
48
+ --orange: #ff7a2d;
49
+ --orange-dark: #ff5a1f;
50
+ --green: #64c18a;
51
+ --danger: #ff7777;
52
+ --input: #17120d;
53
+ --shadow: 8px 8px 0 rgba(0, 0, 0, 0.38);
54
+ }
55
+
56
+ * {
57
+ box-sizing: border-box;
58
+ }
59
+
60
+ html {
61
+ min-width: 320px;
62
+ }
63
+
64
+ body {
65
+ background:
66
+ linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 42px 42px,
67
+ linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 42px 42px,
68
+ var(--paper);
69
+ color: var(--ink);
70
+ font-family:
71
+ "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
72
+ "Segoe UI", sans-serif;
73
+ font-size: 16px;
74
+ line-height: 1.45;
75
+ margin: 0;
76
+ }
77
+
78
+ button,
79
+ input,
80
+ select,
81
+ textarea {
82
+ font: inherit;
83
+ }
84
+
85
+ a {
86
+ color: inherit;
87
+ }
88
+
89
+ button:focus-visible,
90
+ a:focus-visible,
91
+ select:focus-visible,
92
+ textarea:focus-visible {
93
+ outline: 3px solid var(--orange);
94
+ outline-offset: 2px;
95
+ }
96
+
97
+ .page {
98
+ margin: 0 auto;
99
+ max-width: 1320px;
100
+ padding: 18px;
101
+ }
102
+
103
+ .topbar {
104
+ align-items: center;
105
+ border: 2px solid var(--line);
106
+ background: var(--panel);
107
+ display: flex;
108
+ gap: 16px;
109
+ justify-content: space-between;
110
+ min-height: 68px;
111
+ padding: 12px 14px;
112
+ }
113
+
114
+ .brand-mark {
115
+ align-items: center;
116
+ display: flex;
117
+ gap: 12px;
118
+ min-width: 0;
119
+ }
120
+
121
+ .brand-badge {
122
+ align-items: center;
123
+ background: var(--ink);
124
+ color: var(--paper);
125
+ display: inline-flex;
126
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
127
+ font-size: 12px;
128
+ font-weight: 800;
129
+ height: 38px;
130
+ justify-content: center;
131
+ letter-spacing: 0;
132
+ min-width: 38px;
133
+ }
134
+
135
+ .brand-copy {
136
+ display: grid;
137
+ gap: 2px;
138
+ }
139
+
140
+ .brand-copy strong {
141
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
142
+ font-size: 13px;
143
+ letter-spacing: 0.04em;
144
+ text-transform: uppercase;
145
+ }
146
+
147
+ .brand-copy span {
148
+ color: var(--muted);
149
+ font-size: 13px;
150
+ }
151
+
152
+ .topnav {
153
+ align-items: center;
154
+ display: flex;
155
+ flex-wrap: wrap;
156
+ gap: 8px;
157
+ justify-content: flex-end;
158
+ }
159
+
160
+ .nav-link,
161
+ .button,
162
+ .tab,
163
+ .terrain-button {
164
+ border: 2px solid var(--line);
165
+ cursor: pointer;
166
+ min-height: 42px;
167
+ }
168
+
169
+ .nav-link {
170
+ align-items: center;
171
+ background: transparent;
172
+ display: inline-flex;
173
+ font-size: 13px;
174
+ font-weight: 800;
175
+ justify-content: center;
176
+ padding: 0 12px;
177
+ text-decoration: none;
178
+ text-transform: uppercase;
179
+ }
180
+
181
+ .nav-link:hover,
182
+ .button.secondary:hover,
183
+ .terrain-button:hover {
184
+ background: var(--panel-strong);
185
+ }
186
+
187
+ .button {
188
+ align-items: center;
189
+ background: var(--orange);
190
+ color: #120b07;
191
+ display: inline-flex;
192
+ font-weight: 900;
193
+ justify-content: center;
194
+ min-width: 0;
195
+ padding: 0 16px;
196
+ text-transform: uppercase;
197
+ }
198
+
199
+ .step .button {
200
+ margin-top: 12px;
201
+ }
202
+
203
+ .button.secondary {
204
+ background: transparent;
205
+ color: var(--ink);
206
+ }
207
+
208
+ .button:disabled,
209
+ select:disabled {
210
+ cursor: not-allowed;
211
+ opacity: 0.55;
212
+ }
213
+
214
+ .hero {
215
+ display: grid;
216
+ gap: 20px;
217
+ grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
218
+ padding: 34px 0 18px;
219
+ }
220
+
221
+ .hero-copy {
222
+ min-width: 0;
223
+ }
224
+
225
+ .eyebrow-row {
226
+ align-items: center;
227
+ display: flex;
228
+ flex-wrap: wrap;
229
+ gap: 8px;
230
+ margin-bottom: 16px;
231
+ }
232
+
233
+ .eyebrow {
234
+ border: 2px solid var(--line);
235
+ background: var(--panel);
236
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
237
+ font-size: 12px;
238
+ font-weight: 800;
239
+ padding: 7px 10px;
240
+ text-transform: uppercase;
241
+ }
242
+
243
  .hero h1 {
244
  font-family:
245
  "Arial Black", Impact, "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
 
247
  letter-spacing: -0.045em;
248
  line-height: 0.92;
249
  margin: 0;
250
+ max-width: 980px;
251
+ text-wrap: balance;
252
+ }
253
+
254
+ .hero-lede {
255
+ border-left: 8px solid var(--orange);
256
+ color: var(--muted);
257
+ font-size: clamp(19px, 2.4vw, 30px);
258
+ font-weight: 700;
259
+ line-height: 1.15;
260
+ margin: 24px 0 0;
261
+ max-width: 900px;
262
+ padding-left: 18px;
263
+ }
264
+
265
+ .proof-grid {
266
+ display: grid;
267
+ gap: 8px;
268
+ grid-template-columns: repeat(2, minmax(0, 1fr));
269
+ margin-top: 24px;
270
+ max-width: 820px;
271
+ }
272
+
273
+ .proof-chip {
274
+ border: 2px solid var(--line);
275
+ background: var(--panel);
276
+ min-height: 58px;
277
+ padding: 10px 12px;
278
+ }
279
+
280
+ .proof-chip strong {
281
+ display: block;
282
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
283
+ font-size: 12px;
284
+ text-transform: uppercase;
285
+ }
286
+
287
+ .proof-chip span {
288
+ color: var(--muted);
289
+ display: block;
290
+ font-size: 13px;
291
+ margin-top: 2px;
292
+ }
293
+
294
+ .status-panel {
295
+ align-self: end;
296
+ background: var(--ink);
297
+ border: 2px solid var(--line);
298
+ color: var(--paper);
299
+ min-height: 260px;
300
+ padding: 18px;
301
+ position: relative;
302
+ }
303
+
304
+ html[data-theme="dark"] .status-panel {
305
+ background: var(--panel);
306
+ color: var(--ink);
307
+ }
308
+
309
+ .status-panel:before {
310
+ border: 2px solid var(--orange);
311
+ bottom: 12px;
312
+ content: "";
313
+ left: 12px;
314
+ pointer-events: none;
315
+ position: absolute;
316
+ right: 12px;
317
+ top: 12px;
318
+ }
319
+
320
+ .status-panel h2 {
321
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
322
+ font-size: 13px;
323
+ letter-spacing: 0.04em;
324
+ margin: 0 0 18px;
325
+ text-transform: uppercase;
326
+ }
327
+
328
+ .status-metric {
329
+ border-top: 1px solid currentColor;
330
+ display: flex;
331
+ gap: 14px;
332
+ justify-content: space-between;
333
+ padding: 12px 0;
334
+ position: relative;
335
+ z-index: 1;
336
+ }
337
+
338
+ .status-metric span {
339
+ color: inherit;
340
+ opacity: 0.72;
341
+ }
342
+
343
+ .status-link {
344
+ display: inline-flex;
345
+ font-weight: 800;
346
+ margin-top: 14px;
347
+ position: relative;
348
+ text-transform: uppercase;
349
+ z-index: 1;
350
+ }
351
+
352
+ .status {
353
+ align-items: center;
354
+ background: var(--panel);
355
+ border: 2px solid var(--line);
356
+ display: flex;
357
+ gap: 14px;
358
+ justify-content: space-between;
359
+ margin: 0 0 14px;
360
+ padding: 12px 14px;
361
+ }
362
+
363
+ .status strong {
364
+ color: var(--orange-dark);
365
+ }
366
+
367
+ .status span,
368
+ .muted {
369
+ color: var(--muted);
370
+ }
371
+
372
+ .tabs {
373
+ background: var(--line);
374
+ border: 2px solid var(--line);
375
+ display: flex;
376
+ gap: 2px;
377
+ margin: 18px 0;
378
+ max-width: 100%;
379
+ overflow-x: auto;
380
+ padding: 2px;
381
+ scrollbar-width: thin;
382
+ }
383
+
384
+ .tab {
385
+ background: var(--panel);
386
+ color: var(--muted);
387
+ flex: 0 0 auto;
388
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
389
+ font-size: 12px;
390
+ font-weight: 800;
391
+ padding: 0 14px;
392
+ text-transform: uppercase;
393
+ }
394
+
395
+ .tab[aria-selected="true"] {
396
+ background: var(--orange);
397
+ color: #120b07;
398
+ }
399
+
400
+ .tab[disabled] {
401
+ cursor: default;
402
+ opacity: 0.7;
403
+ }
404
+
405
+ .view[hidden] {
406
+ display: none;
407
+ }
408
+
409
+ .challenge-grid {
410
+ display: grid;
411
+ gap: 18px;
412
+ grid-template-columns: minmax(290px, 410px) minmax(0, 1fr);
413
+ }
414
+
415
+ .challenge-grid > *,
416
+ .duel > * {
417
+ min-width: 0;
418
+ }
419
+
420
+ .panel,
421
+ .metric,
422
+ .step,
423
+ .code-block {
424
+ background: var(--panel);
425
+ border: 2px solid var(--line);
426
+ }
427
+
428
+ .panel {
429
+ padding: 16px;
430
+ }
431
+
432
+ .control-panel {
433
+ box-shadow: var(--shadow);
434
+ }
435
+
436
+ .section-kicker {
437
+ color: var(--muted);
438
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
439
+ font-size: 12px;
440
+ font-weight: 800;
441
+ margin: 0 0 6px;
442
+ text-transform: uppercase;
443
+ }
444
+
445
+ .section-title {
446
+ font-size: 28px;
447
+ line-height: 1;
448
+ margin: 0 0 14px;
449
+ text-transform: uppercase;
450
+ }
451
+
452
+ .field {
453
+ display: grid;
454
+ gap: 8px;
455
+ margin-bottom: 14px;
456
+ }
457
+
458
+ label {
459
+ color: var(--muted);
460
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
461
+ font-size: 12px;
462
+ font-weight: 800;
463
+ text-transform: uppercase;
464
+ }
465
+
466
+ select,
467
+ textarea {
468
+ background: var(--input);
469
+ border: 2px solid var(--line);
470
+ color: var(--ink);
471
+ min-height: 46px;
472
+ padding: 11px 12px;
473
+ width: 100%;
474
+ }
475
+
476
+ textarea {
477
+ min-height: 190px;
478
+ resize: vertical;
479
+ }
480
+
481
+ .terrain-select {
482
+ display: none;
483
+ }
484
+
485
+ .terrain-grid {
486
+ display: grid;
487
+ gap: 8px;
488
+ grid-template-columns: 1fr;
489
+ }
490
+
491
+ .terrain-button {
492
+ background: var(--input);
493
+ color: var(--ink);
494
+ display: grid;
495
+ gap: 2px;
496
+ min-height: 64px;
497
+ padding: 10px 12px;
498
+ text-align: left;
499
+ }
500
+
501
+ .terrain-button strong {
502
+ font-size: 15px;
503
+ text-transform: uppercase;
504
+ }
505
+
506
+ .terrain-button span {
507
+ color: var(--muted);
508
+ font-size: 13px;
509
+ }
510
+
511
+ .terrain-button[aria-pressed="true"] {
512
+ background: var(--orange);
513
+ color: #120b07;
514
+ }
515
+
516
+ .terrain-button[aria-pressed="true"] span {
517
+ color: #3d1b0d;
518
+ }
519
+
520
+ .duel {
521
+ display: grid;
522
+ gap: 16px;
523
+ grid-template-columns: repeat(2, minmax(0, 1fr));
524
+ }
525
+
526
+ .duel-panel {
527
+ display: grid;
528
+ grid-template-rows: auto minmax(260px, 1fr) auto;
529
+ min-height: 100%;
530
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
 
532
+ .duel-panel > * {
533
+ max-width: 100%;
534
+ min-width: 0;
535
+ }
536
+
537
+ .output {
538
+ background: var(--input);
539
+ border: 2px solid var(--line);
540
+ min-height: 260px;
541
+ overflow: auto;
542
+ padding: 13px;
543
+ white-space: pre-wrap;
544
+ word-break: break-word;
545
+ }
546
+
547
+ .output:empty:before {
548
+ color: var(--muted);
549
+ content: "Waiting for stream.";
550
+ }
551
+
552
+ .panel-title {
553
+ align-items: flex-start;
554
+ display: flex;
555
+ gap: 10px;
556
+ justify-content: space-between;
557
+ margin-bottom: 12px;
558
+ }
559
+
560
+ .panel-title h2 {
561
+ font-size: 24px;
562
+ line-height: 1;
563
+ margin: 0;
564
+ text-transform: uppercase;
565
+ }
566
+
567
+ .badge {
568
+ background: var(--ink);
569
+ border: 2px solid var(--line);
570
+ color: var(--paper);
571
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
572
+ font-size: 12px;
573
+ font-weight: 800;
574
+ max-width: 100%;
575
+ overflow: hidden;
576
+ padding: 5px 8px;
577
+ text-overflow: ellipsis;
578
+ text-transform: uppercase;
579
+ white-space: nowrap;
580
+ }
581
+
582
+ html[data-theme="dark"] .badge {
583
+ background: var(--orange);
584
+ color: #120b07;
585
+ }
586
+
587
+ .metrics {
588
+ display: grid;
589
+ gap: 8px;
590
+ grid-template-columns: repeat(2, minmax(0, 1fr));
591
+ margin-top: 12px;
592
+ }
593
+
594
+ .metric {
595
+ min-height: 62px;
596
+ padding: 9px;
597
+ }
598
+
599
+ .metric span {
600
+ color: var(--muted);
601
+ display: block;
602
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
603
+ font-size: 11px;
604
+ font-weight: 800;
605
+ text-transform: uppercase;
606
+ }
607
+
608
+ .metric strong {
609
+ display: block;
610
+ margin-top: 3px;
611
+ overflow-wrap: anywhere;
612
+ }
613
+
614
+ .verdict {
615
+ background: var(--panel);
616
+ border: 2px solid var(--line);
617
+ border-left: 12px solid var(--orange);
618
+ display: grid;
619
+ font-weight: 800;
620
+ gap: 4px;
621
+ margin-top: 16px;
622
+ padding: 12px 14px;
623
+ }
624
 
625
+ .verdict strong {
626
+ font-size: 18px;
 
627
  }
628
 
629
+ .verdict span {
630
+ color: var(--orange-dark);
631
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
632
+ font-size: 14px;
633
+ text-transform: uppercase;
634
+ }
 
 
 
 
635
 
636
+ .verdict small {
637
+ color: var(--muted);
638
+ font-weight: 700;
 
 
 
639
  }
640
+
641
+ .live-note,
642
+ .reference-note {
643
+ color: var(--muted);
644
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
645
+ font-size: 12px;
646
+ font-weight: 800;
647
+ letter-spacing: 0;
648
+ margin: 8px 0 0;
649
+ text-transform: uppercase;
650
+ }
651
+
652
+ .live-note strong,
653
+ .reference-note strong {
654
+ color: var(--ink);
655
+ }
656
+
657
+ .actions {
658
+ display: flex;
659
+ flex-wrap: wrap;
660
+ gap: 10px;
661
+ margin-top: 14px;
662
+ }
663
+
664
+ .benchmark-grid {
665
+ display: grid;
666
+ gap: 16px;
667
+ grid-template-columns: repeat(3, minmax(0, 1fr));
668
+ }
669
+
670
+ .benchmark-card {
671
+ min-height: 190px;
672
+ }
673
+
674
+ .benchmark-card strong {
675
+ display: block;
676
+ font-size: clamp(34px, 7vw, 78px);
677
+ letter-spacing: 0;
678
+ line-height: 0.9;
679
+ margin: 6px 0 10px;
680
+ text-transform: uppercase;
681
+ }
682
+
683
+ .stat-strip {
684
+ background: var(--orange);
685
+ border: 2px solid var(--line);
686
+ color: #120b07;
687
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
688
+ font-size: clamp(22px, 5vw, 54px);
689
+ font-weight: 900;
690
+ line-height: 0.95;
691
+ margin-bottom: 16px;
692
+ padding: 18px;
693
+ text-transform: uppercase;
694
+ }
695
+
696
+ .api-grid {
697
+ display: grid;
698
+ gap: 16px;
699
+ grid-template-columns: repeat(3, minmax(0, 1fr));
700
+ }
701
+
702
+ .step,
703
+ .code-block {
704
+ padding: 16px;
705
+ }
706
+
707
+ .step h2,
708
+ .panel h2 {
709
+ line-height: 1.1;
710
+ margin-top: 0;
711
+ }
712
+
713
+ pre {
714
+ margin: 0;
715
+ overflow-x: auto;
716
+ white-space: pre;
717
+ }
718
+
719
+ code {
720
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
721
+ font-size: 13px;
722
+ }
723
+
724
+ table {
725
+ border-collapse: collapse;
726
+ width: 100%;
727
+ }
728
+
729
+ .table-scroll {
730
+ margin-top: 10px;
731
+ max-width: 100%;
732
+ overflow-x: auto;
733
+ -webkit-overflow-scrolling: touch;
734
+ }
735
+
736
+ .table-scroll table {
737
+ min-width: 640px;
738
+ }
739
+
740
+ td,
741
+ th {
742
+ border-bottom: 2px solid var(--line);
743
+ padding: 10px;
744
+ text-align: left;
745
+ vertical-align: top;
746
+ }
747
+
748
+ .footer {
749
+ align-items: center;
750
+ border-top: 2px solid var(--line);
751
+ color: var(--muted);
752
+ display: flex;
753
+ flex-wrap: wrap;
754
+ gap: 12px;
755
+ justify-content: space-between;
756
+ margin-top: 28px;
757
+ padding: 18px 0 0;
758
+ }
759
+
760
+ .footer-links {
761
+ display: flex;
762
+ flex-wrap: wrap;
763
+ gap: 12px;
764
+ }
765
+
766
+ .footer a {
767
+ font-weight: 800;
768
+ }
769
+
770
+ @media (max-width: 980px) {
771
+ .hero,
772
+ .challenge-grid,
773
+ .duel,
774
+ .api-grid,
775
+ .benchmark-grid {
776
+ grid-template-columns: 1fr;
777
+ }
778
+
779
+ .status-panel {
780
+ min-height: 220px;
781
+ }
782
+ }
783
+
784
+ @media (max-width: 700px) {
785
+ .page {
786
+ padding: 12px;
787
+ }
788
+
789
+ .topbar,
790
+ .status {
791
+ align-items: flex-start;
792
+ flex-direction: column;
793
+ }
794
+
795
+ .topnav {
796
+ justify-content: flex-start;
797
+ width: 100%;
798
+ }
799
+
800
+ .nav-link,
801
+ .topnav .button {
802
+ flex: 1 1 130px;
803
+ }
804
+
805
+ .hero {
806
+ padding-top: 24px;
807
+ }
808
+
809
+ .hero h1 {
810
+ font-size: clamp(54px, 23vw, 96px);
811
+ }
812
+
813
+ .proof-grid,
814
+ .metrics {
815
+ grid-template-columns: 1fr;
816
+ }
817
+
818
+ .tabs {
819
+ flex-wrap: wrap;
820
+ overflow: visible;
821
+ }
822
+
823
+ .tab {
824
+ flex: 1 1 calc(50% - 2px);
825
+ }
826
+
827
+ .panel {
828
+ padding: 12px;
829
+ }
830
+
831
+ .table-scroll {
832
+ border-left: 2px solid var(--line);
833
+ border-right: 2px solid var(--line);
834
+ margin-left: -2px;
835
+ margin-right: -2px;
836
+ padding: 0 8px 6px;
837
+ }
838
+
839
+ textarea {
840
+ min-height: 170px;
841
+ }
842
+ }
843
+
844
+ @media (prefers-reduced-motion: no-preference) {
845
+ .button,
846
+ .nav-link,
847
+ .tab,
848
+ .terrain-button {
849
+ transition:
850
+ background 140ms ease,
851
+ color 140ms ease,
852
+ transform 140ms ease;
853
+ }
854
+
855
+ .button:hover,
856
+ .nav-link:hover,
857
+ .tab:not([disabled]):hover,
858
+ .terrain-button:hover {
859
+ transform: translate(-1px, -1px);
860
+ }
861
+ }
862
+ </style>
863
+ </head>
864
+ <body>
865
+ <main class="page">
866
+ <header class="topbar">
867
+ <div class="brand-mark">
868
+ <span class="brand-badge">S</span>
869
+ <div class="brand-copy">
870
  <strong>SOVINFRA | PRIVATE AI</strong>
871
  <span>Private modeless inference · EU-hosted.</span>
872
+ </div>
873
+ </div>
874
+ <nav class="topnav" aria-label="Navigation">
875
+ <button class="nav-link" data-nav-tab="api" type="button">Developers</button>
876
+ <a class="nav-link" href="https://codeberg.org/sovinfra" rel="noopener noreferrer" target="_blank">
877
+ Codeberg
878
+ </a>
879
  <a class="nav-link" data-console-link href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">
880
+ Console
881
+ </a>
882
+ <button class="button secondary" id="themeButton" type="button">Dark mode</button>
883
+ </nav>
884
+ </header>
885
+
886
+ <section class="hero" aria-labelledby="hero-title">
887
+ <div class="hero-copy">
888
+ <div class="eyebrow-row">
889
+ <span class="eyebrow">Sovereign AI stack</span>
890
+ <span class="eyebrow">July 2026</span>
891
+ </div>
892
  <h1 id="hero-title">Frontier-class quality. A fraction of the cost.</h1>
893
  <p class="hero-lede">
894
  Private, own-stack inference you control. EU-hosted, token-level pricing.
895
+ </p>
896
+ <div class="proof-grid" aria-label="Models and modalities">
897
+ <div class="proof-chip">
898
+ <strong>Qwen3-Coder-Next FP8</strong>
899
+ <span>Code and technical generation</span>
900
+ </div>
901
+ <div class="proof-chip">
902
  <strong>Gemma 4 31B FP8</strong>
903
  <span>Text, vision and extraction</span>
904
+ </div>
905
+ <div class="proof-chip">
906
+ <strong>Whisper Large V3</strong>
907
+ <span>FR / EN audio coverage</span>
908
+ </div>
909
+ <div class="proof-chip">
910
+ <strong>BGE-M3 + ChromaDB</strong>
911
  <span>Long-term memory and search</span>
912
+ </div>
913
+ </div>
914
+ </div>
915
+
916
+ <aside class="status-panel" aria-label="Resume infrastructure">
917
+ <h2>Live stack</h2>
918
+ <div class="status-metric">
919
+ <span>Mode</span>
920
+ <strong>Modeless</strong>
921
+ </div>
922
+ <div class="status-metric">
923
+ <span>Region</span>
924
+ <strong>Europe</strong>
925
+ </div>
926
  <div class="status-metric">
927
  <span>Input</span>
928
+ <strong>$0.018 / M in</strong>
929
  </div>
930
  <div class="status-metric">
931
  <span>Output</span>
932
+ <strong>$0.16 / M out</strong>
933
+ </div>
934
+ <a class="status-link" href="#view-defi">Launch arena</a>
935
+ </aside>
936
+ </section>
937
+
938
+ <section class="status" aria-label="Statut infrastructure">
939
+ <span><strong id="statusLabel">loading live status</strong><span id="statusDetail"></span></span>
940
+ <a href="https://status.sovinfra.cloud/" rel="noopener noreferrer" target="_blank">
941
+ Full status
942
+ </a>
943
+ </section>
944
+
945
+ <nav class="tabs" aria-label="Vues">
946
+ <button class="tab" data-tab="defi" aria-selected="true" type="button">Arena</button>
947
+ <button class="tab" data-tab="speed" aria-selected="false" type="button">Speed</button>
948
+ <button class="tab" data-tab="best" aria-selected="false" type="button">Best-of-2</button>
949
+ <button class="tab" data-tab="economy" aria-selected="false" type="button">Economy</button>
950
+ <button class="tab" data-tab="api" aria-selected="false" type="button">API ACCESS</button>
951
+ </nav>
952
+
953
+ <section class="view" id="view-defi">
954
+ <div class="challenge-grid">
955
+ <aside class="panel control-panel">
956
+ <p class="section-kicker">Preloaded prompt</p>
957
+ <h2 class="section-title">The Arena</h2>
958
+ <div class="field">
959
  <label>Terrain</label>
960
  <select class="terrain-select" id="terrain" aria-label="Terrain">
961
  <option value="code">Code a function</option>
 
968
  <strong>Code</strong>
969
  <span>Code a function</span>
970
  </button>
971
+ <button class="terrain-button" data-terrain="audit" aria-pressed="false" type="button">
972
+ <strong>Analysis</strong>
973
+ <span>Audit a text</span>
974
+ </button>
975
+ <button class="terrain-button" data-terrain="json" aria-pressed="false" type="button">
976
+ <strong>Structure</strong>
977
+ <span>Extract to JSON</span>
978
+ </button>
979
+ <button class="terrain-button" data-terrain="reasoning" aria-pressed="false" type="button">
980
+ <strong>Reasoning</strong>
981
+ <span>Stress-test modeless routing</span>
982
+ </button>
983
+ </div>
984
  </div>
985
  <div class="field">
986
  <label for="prompt">Editable prompt</label>
987
  <textarea id="prompt">Implement merge_intervals(intervals: Array&lt;[number, number]&gt;) in TypeScript. Return sorted, non-overlapping intervals. Merge touching intervals, reject invalid ranges, handle empty input and negative values, and include concise tests.</textarea>
988
+ </div>
989
  <div class="field">
990
  <label for="challenger">Challenger</label>
991
  <select id="challenger">
 
995
  Comparable profile: reasoning is reduced where the official API permits it.
996
  Provider keys remain server-side.
997
  </p>
998
+ </div>
999
+ <button class="button" id="runButton" type="button">Test SovAPI</button>
1000
  <p class="muted" id="quotaText">Challenger cap: 30,000 tokens per duel.</p>
1001
+ </aside>
1002
+
1003
+ <section>
1004
+ <div class="duel">
1005
+ <article class="panel duel-panel">
1006
+ <div class="panel-title">
1007
  <div>
1008
  <p class="section-kicker" id="leftLaneKicker">A - Private</p>
1009
  <h2 id="sovapiLaneTitle">SOVAPI CODE</h2>
1010
+ </div>
1011
  <span class="badge" id="leftLaneBadge">sovapi</span>
1012
+ </div>
1013
+ <div class="output" id="sovapiOutput"></div>
1014
+ <div class="metrics" id="sovapiMetrics"></div>
1015
+ <p class="live-note">Live measured from this run.</p>
1016
+ </article>
1017
+ <article class="panel duel-panel">
1018
+ <div class="panel-title">
1019
  <div>
1020
  <p class="section-kicker" id="rightLaneKicker">B - Challenger</p>
1021
  <h2 id="challengerProviderTitle">Anthropic — Claude Sonnet 5</h2>
1022
  </div>
1023
  <span class="badge" id="challengerBadge">Claude Sonnet 5</span>
1024
+ </div>
1025
+ <div class="output" id="challengerOutput"></div>
1026
+ <div class="metrics" id="challengerMetrics"></div>
1027
+ <p class="live-note">Live measured from this run.</p>
1028
+ </article>
1029
+ </div>
1030
  <div class="verdict" id="verdict" aria-live="polite">
1031
  The live verdict appears after both measured runs complete.
1032
+ </div>
1033
+ <div class="actions">
1034
+ <button class="button secondary" id="newButton" type="button">New test</button>
1035
+ <button class="button secondary" id="shareButton" type="button" disabled>
1036
+ Share result
1037
+ </button>
1038
+ </div>
1039
  <canvas id="shareCanvas" width="1600" height="900" hidden></canvas>
1040
+ </section>
1041
+ </div>
1042
+ </section>
1043
+
1044
  <section class="view" id="view-speed" hidden>
1045
  <div class="stat-strip">Reference target: 6x faster TTFT</div>
1046
  <div class="benchmark-grid">
 
1059
  <strong>234 tok/s</strong>
1060
  <p>Reference throughput on the SovAPI Text lane (analysis, reasoning, structure).</p>
1061
  </article>
1062
+ </div>
1063
+ <div class="panel" style="margin-top: 16px">
1064
+ <h2>Latency reference table</h2>
1065
+ <p class="reference-note">
1066
+ <strong>Reference / expected values.</strong> The Arena verdict above is recalculated
1067
+ from each live duel.
1068
+ </p>
1069
+ <div class="table-scroll" role="region" aria-label="Latency reference table" tabindex="0">
1070
+ <table>
1071
+ <thead>
1072
  <tr><th>Scenario</th><th>SovAPI route</th><th>SovAPI reference</th><th>Challenger reference</th><th>Signal</th></tr>
1073
  </thead>
1074
  <tbody>
 
1095
  </p>
1096
  </div>
1097
  </section>
1098
+
1099
  <section class="view" id="view-best" hidden>
1100
  <div class="stat-strip">ANTHROPIC-CLASS QUALITY · 60x cheaper than Claude Sonnet 5 · IN EUROPE</div>
1101
  <div class="panel">
 
1139
  </div>
1140
  </div>
1141
  </section>
1142
+
1143
  <section class="view" id="view-economy" hidden>
1144
  <div class="stat-strip">Usage-based pricing in US dollars, with no commitment</div>
1145
+ <div class="benchmark-grid">
1146
+ <article class="panel benchmark-card">
1147
  <p class="section-kicker">Input</p>
1148
+ <strong>$0.018</strong>
1149
  <p>Per million input tokens.</p>
1150
+ </article>
1151
+ <article class="panel benchmark-card">
1152
  <p class="section-kicker">Output</p>
1153
+ <strong>$0.16</strong>
1154
  <p>Per million output tokens.</p>
1155
+ </article>
1156
+ <article class="panel benchmark-card">
1157
+ <p class="section-kicker">Trial grant</p>
1158
+ <strong>100 M</strong>
1159
+ <p>Trial tokens for developers starting from API ACCESS.</p>
1160
+ </article>
1161
+ </div>
1162
+ <div class="panel" style="margin-top: 16px">
1163
  <h2>Economy reference table</h2>
1164
  <p class="reference-note">
1165
  <strong>Reference / expected values.</strong> SovAPI cost is recalculated from live
1166
  token usage. Challenger cost remains unavailable when the official API response does
1167
  not expose a monetary amount.
1168
+ </p>
1169
+ <div class="table-scroll" role="region" aria-label="Economy reference table" tabindex="0">
1170
+ <table>
1171
+ <thead>
1172
+ <tr><th>Metric</th><th>SovAPI</th><th>Challenger</th><th>How it is shown</th></tr>
1173
+ </thead>
1174
  <tbody>
1175
+ <tr><td>Input token price</td><td>$0.018 / M reference grid</td><td>-- when unavailable</td><td>No inferred challenger price</td></tr>
1176
+ <tr><td>Output token price</td><td>$0.16 / M reference grid</td><td>-- when unavailable</td><td>No inferred challenger price</td></tr>
1177
  <tr><td>Per-request cost</td><td>Calculated from real tokens</td><td>-- when unavailable</td><td>Only a server-reported amount is displayed</td></tr>
1178
  <tr><td>Trial grant</td><td>100 M tokens</td><td>None</td><td>API ACCESS onboarding</td></tr>
1179
  <tr><td>Rate limit</td><td>100 req/min free; 600 req/min PAYG</td><td>Provider-specific</td><td>Applied server-side by tier</td></tr>
1180
  <tr><td>Billing</td><td>Exclusively token usage</td><td>Provider-specific</td><td>No SovAPI commitment</td></tr>
1181
+ </tbody>
1182
+ </table>
1183
+ </div>
1184
+ </div>
1185
+ </section>
1186
+
1187
+ <section class="view" id="view-api" hidden>
1188
+ <div class="api-grid">
1189
+ <div class="step">
1190
+ <p class="section-kicker">Step 1</p>
1191
+ <h2>Create your key</h2>
1192
+ <p>Use GitHub or Google OAuth, then generate your trial SovAPI key.</p>
1193
  <a class="button" data-console-link href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">
1194
+ Create my API key
1195
+ </a>
1196
+ </div>
1197
+ <div class="step">
1198
+ <p class="section-kicker">Step 2</p>
1199
+ <h2>Change two lines</h2>
1200
+ <p>Keep your OpenAI SDK, replace only base_url and api_key.</p>
1201
+ </div>
1202
+ <div class="step">
1203
+ <p class="section-kicker">Step 3</p>
1204
+ <h2>Call sovapi</h2>
1205
+ <p>One public model, automatic routing by modality.</p>
1206
+ </div>
1207
+ </div>
1208
+
1209
+ <div class="panel" style="margin-top: 16px">
1210
  <h2>Plans and pricing</h2>
1211
+ <div class="table-scroll" role="region" aria-label="Model and pricing table" tabindex="0">
1212
+ <table>
1213
+ <thead>
1214
  <tr><th>Tier</th><th>Tokens</th><th>Rate limit</th><th>Input</th><th>Output</th><th>Support</th><th>Retention</th></tr>
1215
  </thead>
1216
  <tbody>
 
1227
  <td>Pay-as-you-go</td>
1228
  <td>Unlimited</td>
1229
  <td>600 req/min</td>
1230
+ <td>$0.018 / M tokens</td>
1231
+ <td>$0.16 / M tokens</td>
1232
  <td>Email within 24h</td>
1233
  <td>None</td>
1234
  </tr>
1235
+ </tbody>
1236
+ </table>
1237
+ </div>
1238
+ </div>
1239
+
1240
+ <div class="code-block" style="margin-top: 16px">
1241
+ <pre><code>curl https://api.sovinfra.ai/v1/chat/completions \
1242
+ -H "Authorization: Bearer $SOVINFRA_API_KEY" \
1243
+ -H "Content-Type: application/json" \
1244
+ -d '{"model":"sovapi","messages":[{"role":"user","content":"Hello"}]}'</code></pre>
1245
+ </div>
1246
+ <div class="code-block" style="margin-top: 16px">
1247
+ <pre><code>from openai import OpenAI
1248
+
1249
+ client = OpenAI(
1250
+ base_url="https://api.sovinfra.ai/v1",
1251
+ api_key="sk-sov-...",
1252
+ )
1253
+
1254
+ response = client.chat.completions.create(
1255
+ model="sovapi",
1256
+ messages=[{"role": "user", "content": "Explain SovAPI in one sentence."}],
1257
+ )</code></pre>
1258
+ </div>
1259
+ <div class="code-block" style="margin-top: 16px">
1260
+ <pre><code>import OpenAI from "openai";
1261
+
1262
+ const client = new OpenAI({
1263
+ baseURL: "https://api.sovinfra.ai/v1",
1264
+ apiKey: process.env.SOVINFRA_API_KEY,
1265
+ });</code></pre>
1266
+ </div>
1267
+
1268
+ <div class="panel" style="margin-top: 16px">
1269
  <h2>Compliance and control</h2>
1270
  <p>
1271
  Private inference, models hosted in Europe, server-side secrets, and logs without
1272
+ prompts or keys. Legal notices and terms are available from the footer.
1273
+ </p>
1274
+ </div>
1275
+ </section>
1276
+
1277
+ <footer class="footer">
1278
+ <span>SOVINFRA - FPLC SAS, 10 Place Vendome, Paris.</span>
1279
+ <div class="footer-links">
1280
+ <a href="https://status.sovinfra.cloud/" rel="noopener noreferrer" target="_blank">Status</a>
1281
+ <a href="https://codeberg.org/sovinfra" rel="noopener noreferrer" target="_blank">Codeberg</a>
1282
+ <a href="/legal">Legal</a>
1283
+ <a href="/terms">Terms</a>
1284
+ <a href="mailto:contact@sovinfra.ai">contact@sovinfra.ai</a>
1285
+ </div>
1286
+ </footer>
1287
+ </main>
1288
+
1289
  <script>
1290
  const REFERRAL_CODE_PATTERN = /^[a-z0-9_-]{1,64}$/;
1291
 
 
1314
  window.SOVAPI_STATUS_SUMMARY_URL || "https://api.sovinfra.ai/health/ready";
1315
  const DEFAULT_CHALLENGER_MODEL = "anthropic/claude-sonnet-5";
1316
  const THEME_KEY = "sovapi.theme";
1317
+ const MOBILE_RETRY_DELAYS_MS = [0, 900, 2200];
1318
+ const DESKTOP_RETRY_DELAYS_MS = [0, 900];
1319
  const MOBILE_REQUEST_TIMEOUT_MS = 180000;
1320
  const DESKTOP_REQUEST_TIMEOUT_MS = 150000;
1321
  const TERRAIN_WARMUP_MAX_AGE_MS = 45000;
 
1428
  });
1429
  const PROMPTS = {
1430
  code: "Implement merge_intervals(intervals: Array<[number, number]>) in TypeScript. Return sorted, non-overlapping intervals. Merge touching intervals, reject invalid ranges, handle empty input and negative values, and include concise tests.",
1431
+ audit:
1432
+ "Audit this reasoning: 'Our competitor lowered prices this quarter, therefore their infrastructure must be cheaper to operate and we should immediately match their price.' Identify the fallacies, missing evidence, business risks, and a corrected decision process.",
1433
  json:
1434
  "Extract this invoice into strict JSON only, as minified JSON with no extra whitespace: Invoice INV-2026-0710, issued by Northwind Hosting SAS to FPLC SAS, 10 Place Vendome, Paris. Date 2026-07-10. Due 2026-07-25. Lines: H200 GPU hosting, quantity 42 hours, unit price 18.50 EUR; Sovereign inference support, quantity 1, unit price 690 EUR. VAT rate 20%. Return invoice_number, supplier, customer, dates, line_items, subtotal_eur, vat_eur, total_eur.",
1435
  reasoning:
 
1450
  running: false,
1451
  };
1452
  const terrainWarmups = new Map();
1453
+
1454
+ const qs = (selector) => document.querySelector(selector);
1455
+
1456
  function randomDuelId() {
1457
  if (globalThis.crypto && typeof globalThis.crypto.randomUUID === "function") {
1458
  return globalThis.crypto.randomUUID();
1459
  }
1460
  return `duel-${Date.now()}-${Math.random().toString(16).slice(2)}`;
1461
  }
1462
+
1463
  function setTheme(nextTheme, persist = true) {
1464
  const normalizedTheme = nextTheme === "dark" ? "dark" : "light";
1465
  document.documentElement.dataset.theme = normalizedTheme;
 
1473
  }
1474
 
1475
  setTheme(document.documentElement.dataset.theme, false);
1476
+
1477
+ qs("#themeButton").addEventListener("click", () => {
1478
+ const current = document.documentElement.dataset.theme;
1479
+ setTheme(current === "dark" ? "light" : "dark");
1480
+ });
1481
+
1482
+ function sleep(ms) {
1483
+ return new Promise((resolve) => setTimeout(resolve, ms));
1484
+ }
1485
+
1486
+ function shouldUseMobileSafeMode() {
1487
+ const userAgent = navigator.userAgent || "";
1488
+ const coarsePointer = window.matchMedia?.("(pointer: coarse)")?.matches || false;
1489
+ return /iPhone|iPad|iPod|Android|Mobile/.test(userAgent) || coarsePointer;
1490
+ }
1491
+
1492
+ function requestTimeoutMs() {
1493
+ return shouldUseMobileSafeMode() ? MOBILE_REQUEST_TIMEOUT_MS : DESKTOP_REQUEST_TIMEOUT_MS;
1494
+ }
1495
+
1496
+ function retryDelaysMs() {
1497
+ return shouldUseMobileSafeMode() ? MOBILE_RETRY_DELAYS_MS : DESKTOP_RETRY_DELAYS_MS;
1498
+ }
1499
+
1500
+ function isRetryableStatus(status) {
1501
+ return status === 408 || status === 425 || status === 429 || status >= 500;
1502
+ }
1503
+
1504
  function annotateChallengeError(error, details = {}) {
1505
  error.code = details.code || "challenge_unavailable";
1506
  error.publicMessage = details.publicMessage || "";
 
1519
  error.retryable = false;
1520
  return annotateChallengeError(error, details);
1521
  }
1522
+
1523
  function shouldRetryError(error) {
1524
  return error?.retryable !== false;
1525
  }
 
1609
  function rejectedRunCopy(side, error) {
1610
  return error?.publicMessage || challengeFailureCopy(side, error?.code, error?.retryAfterSeconds);
1611
  }
1612
+
1613
+ async function fetchWithTimeout(url, options = {}) {
1614
+ const controller = new AbortController();
1615
+ const timeout = setTimeout(() => controller.abort(), requestTimeoutMs());
1616
+ try {
1617
+ return await fetch(url, {
1618
+ cache: "no-store",
1619
+ credentials: "omit",
1620
+ mode: "cors",
1621
+ ...options,
1622
+ signal: controller.signal,
1623
+ });
1624
+ } finally {
1625
+ clearTimeout(timeout);
1626
+ }
1627
+ }
1628
+
1629
  async function fetchJsonFromApiBases(path, options = {}) {
1630
  let lastError;
1631
  const method = options.method || "GET";
 
1640
  ? retryableError(`${method} ${path} failed with ${response.status}`)
1641
  : nonRetryableError(`${method} ${path} failed with ${response.status}`);
1642
  }
1643
+ return await response.json();
1644
+ } catch (error) {
1645
+ lastError = error;
1646
+ if (!shouldRetryError(error)) break;
1647
+ }
1648
+ }
1649
  throw lastError || new Error(`${method} ${path} failed`);
1650
  }
1651
 
 
1663
  terrainWarmups.set(selectedTerrain, { startedAt: now, promise });
1664
  return promise;
1665
  }
1666
+
1667
+ function selectTab(tab) {
1668
+ document.querySelectorAll(".tab[data-tab]").forEach((item) => {
1669
+ item.setAttribute("aria-selected", String(item.dataset.tab === tab));
1670
+ });
1671
+ document.querySelectorAll(".view[id^='view-']").forEach((view) => {
1672
+ view.hidden = view.id !== `view-${tab}`;
1673
+ });
1674
+ const target = qs(`#view-${tab}`) || qs("#view-defi");
1675
+ target.scrollIntoView({ block: "start", behavior: "smooth" });
1676
+ }
1677
+
1678
+ document.querySelectorAll(".tab[data-tab]").forEach((button) => {
1679
+ button.addEventListener("click", () => {
1680
+ selectTab(button.dataset.tab);
1681
+ });
1682
+ });
1683
+
1684
+ document.querySelectorAll("[data-nav-tab]").forEach((button) => {
1685
+ button.addEventListener("click", () => {
1686
+ selectTab(button.dataset.navTab);
1687
+ });
1688
+ });
1689
+
1690
  function selectTerrain(terrain) {
1691
  const selectedTerrain = PROMPTS[terrain] ? terrain : "code";
1692
  qs("#terrain").value = selectedTerrain;
 
1713
  });
1714
 
1715
  window.addEventListener("pageshow", () => selectTerrain(qs("#terrain").value));
1716
+
1717
  async function loadModels() {
1718
  const select = qs("#challenger");
1719
  try {
 
1909
  state.duelDefinition = null;
1910
  updateLanePresentation();
1911
  qs("#sovapiOutput").textContent = "";
1912
+ qs("#challengerOutput").textContent = "";
1913
+ qs("#sovapiMetrics").replaceChildren();
1914
+ qs("#challengerMetrics").replaceChildren();
1915
  qs("#verdict").textContent = "Live run in progress.";
1916
  qs("#shareButton").disabled = true;
1917
  qs("#quotaText").textContent = "30,000 Challenger tokens available for this duel.";
1918
+ }
1919
+
1920
+ function metric(label, value) {
1921
+ const node = document.createElement("div");
1922
+ const labelNode = document.createElement("span");
1923
+ const valueNode = document.createElement("strong");
1924
+ node.className = "metric";
1925
+ labelNode.textContent = label;
1926
+ valueNode.textContent = value;
1927
+ node.append(labelNode, valueNode);
1928
+ return node;
1929
+ }
1930
+
1931
  function renderMetrics(target, metrics) {
1932
  const node = qs(target);
1933
  const provider =
 
1937
  const rows = [
1938
  metric("Live provider", displayProviderName(provider)),
1939
  metric("Live model", metrics.model_label || metrics.model || "--"),
1940
+ metric("Live TTFT", formatMs(metrics.time_to_first_token_ms)),
1941
+ metric("Live latency", formatMs(metrics.latency_ms)),
1942
+ metric("Live tokens/s", formatNumber(metrics.tokens_per_second)),
1943
  metric(
1944
  "Live tokens in/out",
1945
  `${formatNumber(metrics.input_tokens)}/${formatNumber(metrics.output_tokens)}`,
 
1949
  metric("Provenance", metrics.provenance_verified ? "Verified" : "Unverified"),
1950
  metric("Finish reason", metrics.finish_reason || "--"),
1951
  metric("Est. public cost", formatCostUsd(metrics.cost_usd)),
1952
+ ];
1953
+ if (metrics.gpu_ms !== undefined) {
1954
+ rows.push(metric("GPU", formatMs(metrics.gpu_ms)));
1955
+ rows.push(metric("Network", formatMs(metrics.network_ms)));
1956
+ }
1957
+ node.replaceChildren(...rows);
1958
+ }
1959
+
1960
+ function formatNumber(value) {
1961
+ if (value === null || value === undefined) return "--";
1962
+ return Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 });
1963
+ }
1964
+
1965
+ function formatMs(value) {
1966
+ if (value === null || value === undefined) return "--";
1967
+ return `${Math.round(value)} ms`;
1968
+ }
1969
+
1970
  function formatCostUsd(value) {
1971
  if (value === null || value === undefined) return "--";
1972
  return `${Number(value).toFixed(6)} USD`;
1973
+ }
1974
+
1975
+ function formatSeconds(value) {
1976
+ if (value === null || value === undefined) return "--";
1977
+ return `${(Number(value) / 1000).toFixed(2)} s`;
1978
+ }
1979
+
1980
+ function formatRatio(value) {
1981
+ if (!Number.isFinite(value) || value <= 0) return "";
1982
+ return value >= 10 ? value.toFixed(0) : value.toFixed(1);
1983
  }
1984
 
1985
  function ratioPhrase(sovValue, challengerValue, betterWord, worseWord, equalPhrase, unavailablePhrase) {
 
1993
  }
1994
  const sov = Number(sovValue);
1995
  const challenger = Number(challengerValue);
1996
+ if (!Number.isFinite(sov) || !Number.isFinite(challenger)) {
1997
+ return unavailablePhrase;
1998
+ }
1999
+ if (sov === challenger) return equalPhrase;
2000
+ const sovWins = sov < challenger;
2001
+ if (sov <= 0 || challenger <= 0) return sovWins ? betterWord : worseWord;
2002
+ const ratio = sovWins ? challenger / sov : sov / challenger;
2003
+ return `${formatRatio(ratio)}x ${sovWins ? betterWord : worseWord}`.trim();
2004
+ }
2005
+
2006
  function comparisonSummary() {
2007
  if (!state.sovapi || !state.challenger) {
2008
  return {
 
2010
  ttft: "Total time and cost pending",
2011
  detail: "Run both sides to generate a shareable result.",
2012
  };
2013
+ }
2014
+ const speed = ratioPhrase(
2015
+ state.sovapi.latency_ms,
2016
+ state.challenger.latency_ms,
2017
+ "faster",
2018
+ "slower",
2019
+ "same speed",
2020
+ "speed unavailable",
2021
+ );
2022
  const cost = ratioPhrase(
2023
  state.sovapi.cost_usd,
2024
  state.challenger.cost_usd,
2025
+ "cheaper",
2026
+ "more expensive",
2027
+ "same cost",
2028
  "cost unavailable",
2029
  );
2030
  const ttft = ratioPhrase(
 
2051
  detail.textContent = summary.detail;
2052
  qs("#verdict").replaceChildren(headline, ttft, detail);
2053
  }
2054
+
2055
  function updateVerdict() {
2056
  if (!state.sovapi || !state.challenger) {
2057
  if (state.sovapi) {
2058
  const leftName = measuredDuelDefinition().left.provider;
2059
  qs("#verdict").textContent =
2060
  `${leftName} run complete. Waiting for the second lane before sharing the result.`;
2061
+ }
2062
+ qs("#shareButton").disabled = true;
2063
+ return;
2064
  }
2065
  renderLiveVerdict(comparisonSummary());
2066
  const issue = shareabilityIssue();
 
2084
  }
2085
  return "";
2086
  }
2087
+
2088
+ function shouldUseBufferedSse() {
2089
+ const userAgent = navigator.userAgent || "";
2090
+ const isIphone = /iPhone|iPod/.test(userAgent);
2091
+ const isWebKit = /Safari/.test(userAgent) && !/Chrome|CriOS|FxiOS|Edg|OPR/.test(userAgent);
2092
+ return isIphone && isWebKit;
2093
+ }
2094
+
2095
+ function markSideRetrying(side, attempt, base) {
2096
+ const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2097
+ const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2098
+ output.textContent = `Mobile network retry ${attempt} in progress.`;
2099
+ metrics.replaceChildren(metric("Status", "Retrying"), metric("Endpoint", base.replace("https://", "")));
2100
+ }
2101
+
2102
+ function resetSideBeforeRetry(side) {
2103
+ const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2104
+ const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2105
+ output.textContent = "";
2106
+ metrics.replaceChildren();
2107
+ state[side] = null;
2108
+ }
2109
+
2110
  async function runSide(side) {
2111
  if (!state.duelId) {
2112
  throw nonRetryableError("Duel identifier is not initialized");
 
2121
  session_id: state.duelId,
2122
  challenger_model: lane.model,
2123
  };
2124
+ const delays = retryDelaysMs();
2125
+ let lastError;
2126
+ for (let attemptIndex = 0; attemptIndex < delays.length; attemptIndex += 1) {
2127
+ if (delays[attemptIndex] > 0) await sleep(delays[attemptIndex]);
2128
+ for (const base of API_BASES) {
2129
+ try {
2130
+ if (attemptIndex > 0) {
2131
+ resetSideBeforeRetry(side);
2132
+ markSideRetrying(side, attemptIndex + 1, base);
2133
+ }
2134
+ await runSideAttempt(side, body, base);
2135
+ return;
2136
+ } catch (error) {
2137
+ lastError = error;
2138
+ if (!shouldRetryError(error)) throw error;
2139
+ }
2140
+ }
2141
+ }
2142
+ throw lastError || new Error(`Challenge ${side} failed`);
2143
+ }
2144
+
2145
+ async function runSideAttempt(side, body, base) {
2146
+ const response = await fetchWithTimeout(`${base}/v1/challenge`, {
2147
+ method: "POST",
2148
+ headers: {
2149
+ Accept: "text/event-stream",
2150
+ "Content-Type": "application/json",
2151
+ },
2152
+ body: JSON.stringify(body),
2153
  });
2154
  if (!response.ok) {
2155
  throw await challengeResponseError(response, body.side);
2156
  }
2157
+ if (shouldUseBufferedSse() || !response.body || typeof response.body.getReader !== "function") {
2158
+ consumeSseText(side, await response.text(), true);
2159
+ if (!state[side]) throw retryableError(`Challenge ${side} completed without metrics`);
2160
+ return;
2161
+ }
2162
+ const reader = response.body.getReader();
2163
+ const decoder = new TextDecoder();
2164
+ let buffer = "";
2165
+ while (true) {
2166
+ const { done, value } = await reader.read();
2167
+ if (done) break;
2168
+ buffer = consumeSseText(side, buffer + decoder.decode(value, { stream: true }));
2169
+ }
2170
+ const trailing = decoder.decode();
2171
+ consumeSseText(side, buffer + trailing, true);
2172
+ if (!state[side]) throw retryableError(`Challenge ${side} completed without metrics`);
2173
+ }
2174
+
2175
+ function consumeSseText(side, text, flush = false) {
2176
+ const parts = text.replace(/\r\n/g, "\n").split("\n\n");
2177
+ const events = flush ? parts : parts.slice(0, -1);
2178
+ events.forEach((eventText) => handleEvent(side, eventText));
2179
+ return flush ? "" : parts[parts.length - 1] || "";
2180
+ }
2181
+
2182
  function markSideUnavailable(side, message) {
2183
+ const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2184
+ const metrics = side === "sovapi" ? qs("#sovapiMetrics") : qs("#challengerMetrics");
2185
+ output.textContent = message;
2186
+ metrics.replaceChildren(metric("Status", "Unavailable"));
2187
+ if (side === "challenger") {
2188
+ state.challenger = null;
2189
+ } else {
2190
+ state.sovapi = null;
2191
  }
2192
  }
2193
 
 
2202
  }
2203
 
2204
  function handleEvent(side, eventText) {
2205
+ if (eventText.includes("data: [DONE]")) return;
2206
  const eventLine = eventText.split("\n").find((line) => line.startsWith("event:"));
2207
  const eventName = eventLine?.replace("event:", "").trim() || "message";
2208
+ const dataLine = eventText.split("\n").find((line) => line.startsWith("data:"));
2209
+ if (!dataLine) return;
2210
+ let payload;
2211
  try {
2212
  payload = JSON.parse(dataLine.replace("data:", "").trim());
2213
  } catch (_error) {
 
2226
  if (payload.side === "challenger") {
2227
  qs("#quotaText").textContent = `${formatNumber(payload.remaining_tokens)} Challenger tokens left in this duel.`;
2228
  }
2229
+ updateVerdict();
2230
+ return;
2231
+ }
2232
+ const output = side === "sovapi" ? qs("#sovapiOutput") : qs("#challengerOutput");
2233
+ output.textContent += payload.delta || "";
2234
+ }
2235
+
2236
+ async function settleRun(promise) {
2237
+ try {
2238
+ await promise;
2239
+ return { status: "fulfilled" };
2240
+ } catch (reason) {
2241
+ return { status: "rejected", reason };
2242
+ }
2243
+ }
2244
+
2245
  qs("#runButton").addEventListener("click", async () => {
2246
  await prewarmTerrain(qs("#terrain").value);
2247
  resetRun();
 
2249
  state.duelId = randomDuelId();
2250
  setRunControlsDisabled(true);
2251
  try {
2252
+ const results = shouldUseMobileSafeMode()
2253
+ ? [await settleRun(runSide("sovapi")), await settleRun(runSide("challenger"))]
2254
+ : await Promise.allSettled([runSide("sovapi"), runSide("challenger")]);
2255
  if (results[0].status === "rejected") {
2256
  markSideUnavailable("sovapi", rejectedRunCopy("sovapi", results[0].reason));
2257
  }
 
2268
  invalidateMeasuredRun();
2269
  updateLanePresentation();
2270
  });
2271
+
2272
  qs("#shareButton").addEventListener("click", async () => {
2273
  if (shareabilityIssue()) {
2274
  updateVerdict();
2275
  return;
2276
  }
2277
  const canvas = qs("#shareCanvas");
2278
+ drawShareCard(canvas);
2279
+ const blob = await canvasToBlob(canvas);
2280
+ if (!blob) return;
2281
  const file = new File([blob], "sovapi-arena-result.png", { type: "image/png" });
2282
  const shareData = {
2283
  title: "SOVINFRA | PRIVATE AI",
 
2396
  context.fillText("arena.sovinfra.ai \u00b7 sovereign inference", 800, 810, 1280);
2397
  context.restore();
2398
  }
2399
+
2400
+ function drawFrame(context, x, y, width, height, color) {
2401
+ context.strokeStyle = color;
2402
+ context.lineWidth = 3;
2403
+ context.strokeRect(x, y, width, height);
2404
+ }
2405
+
2406
  function drawMetricsTable(
2407
  context,
2408
  x,
 
2427
  context.fillText(title, x + 24, y + 48, width - 48);
2428
  const rows = [
2429
  ["Model", sharedModelName || metrics?.model_label || metrics?.model || "--"],
2430
+ ["TTFT", formatMs(metrics?.time_to_first_token_ms)],
2431
+ ["Throughput", `${formatNumber(metrics?.tokens_per_second)} tok/s`],
2432
+ ["Tokens", `${formatNumber(metrics?.input_tokens)} in / ${formatNumber(metrics?.output_tokens)} out`],
2433
  ["Cost", formatCostUsd(metrics?.cost_usd)],
2434
  ["Total time", formatSeconds(metrics?.latency_ms)],
2435
  ];
 
2444
  context.fillText(value, x + 230, rowY, width - 262);
2445
  });
2446
  }
2447
+
2448
+ function canvasToBlob(canvas) {
2449
+ return new Promise((resolve) => {
2450
+ if (canvas.toBlob) {
2451
+ canvas.toBlob(resolve, "image/png");
2452
+ return;
2453
+ }
2454
+ const dataUrl = canvas.toDataURL("image/png");
2455
+ const parts = dataUrl.split(",");
2456
+ const binary = atob(parts[1]);
2457
+ const bytes = new Uint8Array(binary.length);
2458
+ for (let index = 0; index < binary.length; index += 1) {
2459
+ bytes[index] = binary.charCodeAt(index);
2460
+ }
2461
+ resolve(new Blob([bytes], { type: "image/png" }));
2462
+ });
2463
+ }
2464
+
2465
+ function downloadBlob(blob, filename) {
2466
+ const link = document.createElement("a");
2467
+ link.href = URL.createObjectURL(blob);
2468
+ link.download = filename;
2469
+ link.click();
2470
+ setTimeout(() => URL.revokeObjectURL(link.href), 1000);
2471
+ }
2472
+
2473
  async function refreshStatus() {
2474
  try {
2475
  // This readiness read is also the deliberate first-duel warmup: the head-level
 
2479
  credentials: "omit",
2480
  keepalive: true,
2481
  });
2482
+ if (!response.ok) throw new Error("status unavailable");
2483
+ const payload = await response.json();
2484
+ const status = payload.status || {};
2485
+ const description =
2486
+ typeof status === "string" ? status : status.description || "operational";
2487
+ qs("#statusLabel").textContent = `sovereign infra - ${description}`;
2488
+ qs("#statusDetail").textContent = payload.page?.updated_at
2489
+ ? ` - updated ${new Date(payload.page.updated_at).toLocaleString("en-GB")}`
2490
+ : "";
2491
+ } catch (_error) {
2492
+ qs("#statusLabel").textContent = "live status unavailable";
2493
+ qs("#statusDetail").textContent = "";
2494
+ }
2495
+ }
2496
+
2497
  loadModels();
2498
  refreshStatus();
2499
  void prewarmTerrain(qs("#terrain").value);
2500
+ </script>
2501
+ </body>
2502
+ </html>
legal.html CHANGED
@@ -1,123 +1,123 @@
1
- <!doctype html>
2
- <html lang="en" data-theme="light">
3
- <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Legal Notice</title>
7
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%230b1620'/%3E%3Ctext x='16' y='22' font-size='18' text-anchor='middle' fill='%23ff7a1a' font-family='Arial'%3ES%3C/text%3E%3C/svg%3E" />
8
- <style>
9
- :root {
10
- --paper: #f3eadc;
11
- --panel: #fff8ec;
12
- --ink: #15110d;
13
- --muted: #6f6255;
14
- --line: #201812;
15
- --orange: #ff5a1f;
16
- }
17
- * {
18
- box-sizing: border-box;
19
- }
20
- body {
21
- background: var(--paper);
22
- color: var(--ink);
23
- font-family: Inter, ui-sans-serif, system-ui, sans-serif;
24
- line-height: 1.5;
25
- margin: 0;
26
- }
27
- main {
28
- margin: 0 auto;
29
- max-width: 980px;
30
- padding: 28px 18px 48px;
31
- }
32
- a {
33
- color: inherit;
34
- font-weight: 800;
35
- }
36
- .panel {
37
- background: var(--panel);
38
- border: 2px solid var(--line);
39
- padding: 18px;
40
- }
41
- h1 {
42
- font-size: clamp(42px, 11vw, 92px);
43
- letter-spacing: 0;
44
- line-height: 0.9;
45
- margin: 0 0 18px;
46
- text-transform: uppercase;
47
- }
48
- h2 {
49
- border-top: 2px solid var(--line);
50
- margin-top: 24px;
51
- padding-top: 14px;
52
- text-transform: uppercase;
53
- }
54
- dl {
55
- display: grid;
56
- gap: 10px;
57
- grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
58
- }
59
- dt {
60
- color: var(--muted);
61
- font-weight: 800;
62
- text-transform: uppercase;
63
- }
64
- dd {
65
- margin: 0;
66
- }
67
- .kicker {
68
- color: var(--orange);
69
- font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
70
- font-weight: 900;
71
- text-transform: uppercase;
72
- }
73
- .muted {
74
- color: var(--muted);
75
- }
76
- @media (max-width: 700px) {
77
- dl {
78
- grid-template-columns: 1fr;
79
- }
80
- }
81
- </style>
82
- </head>
83
- <body>
84
- <main>
85
- <p><a href="/">Back to SovAPI Arena</a></p>
86
- <h1>Legal Notice</h1>
87
- <section class="panel">
88
- <p class="kicker">SovAPI Arena - legal information</p>
89
- <h2>Publisher</h2>
90
- <dl>
91
- <dt>Company</dt>
92
- <dd>FPLC SAS, operating the SovInfra and SovAPI services.</dd>
93
- <dt>Registered office</dt>
94
- <dd>10 Place Vendome, 75001 Paris, France.</dd>
95
- <dt>Legal form</dt>
96
- <dd>SAS, societe par actions simplifiee.</dd>
97
- <dt>Share capital</dt>
98
- <dd>168,000 EUR.</dd>
99
- <dt>SIREN</dt>
100
- <dd>934 780 917.</dd>
101
- <dt>SIRET</dt>
102
- <dd>934 780 917 00019.</dd>
103
- <dt>RCS</dt>
104
- <dd>Paris.</dd>
105
- <dt>VAT number</dt>
106
- <dd>FR13 934 780 917.</dd>
107
- <dt>Publication director</dt>
108
- <dd>Thierry Abimelech, Founder of SovInfra.</dd>
109
- <dt>Contact</dt>
110
- <dd><a href="mailto:contact@sovinfra.ai">contact@sovinfra.ai</a></dd>
111
- </dl>
112
-
113
- <h2>Service</h2>
114
- <p>
115
- SovAPI Arena is a public demonstration interface for SovAPI, an
116
- OpenAI-compatible, modeless inference API. The Arena compares a live SovAPI
117
- route with a selected challenger model and displays latency, throughput,
118
- token usage and cost data returned by the live API responses.
119
- </p>
120
-
121
  <h2>Hosting</h2>
122
  <p>
123
  The SovAPI gateway and inference run on SovInfra-controlled European infrastructure.
@@ -125,15 +125,15 @@
125
  demonstration interface itself is hosted on a third-party platform that may be located
126
  outside the European Union. Provider and gateway secrets are held server-side and are
127
  not embedded in browser assets.
128
- </p>
129
-
130
- <h2>Intellectual property</h2>
131
- <p>
132
- SovInfra, SovAPI, the Arena interface, documentation, software and visual identity
133
- are protected by applicable intellectual-property law. Third-party model names and
134
- trademarks belong to their respective owners.
135
- </p>
136
-
137
  <h2>Personal data and GDPR</h2>
138
  <p>
139
  <strong>Data controller.</strong> FPLC SAS, 10 Place Vendome, 75001 Paris, France,
@@ -192,9 +192,9 @@
192
  The public Arena is intended for demonstration use. Do not submit confidential,
193
  sensitive, regulated or third-party personal data in prompts.
194
  </p>
195
-
196
  <p class="muted">Last updated: July 2026.</p>
197
- </section>
198
- </main>
199
- </body>
200
- </html>
 
1
+ <!doctype html>
2
+ <html lang="en" data-theme="light">
3
+ <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Legal Notice</title>
7
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%230b1620'/%3E%3Ctext x='16' y='22' font-size='18' text-anchor='middle' fill='%23ff7a1a' font-family='Arial'%3ES%3C/text%3E%3C/svg%3E" />
8
+ <style>
9
+ :root {
10
+ --paper: #f3eadc;
11
+ --panel: #fff8ec;
12
+ --ink: #15110d;
13
+ --muted: #6f6255;
14
+ --line: #201812;
15
+ --orange: #ff5a1f;
16
+ }
17
+ * {
18
+ box-sizing: border-box;
19
+ }
20
+ body {
21
+ background: var(--paper);
22
+ color: var(--ink);
23
+ font-family: Inter, ui-sans-serif, system-ui, sans-serif;
24
+ line-height: 1.5;
25
+ margin: 0;
26
+ }
27
+ main {
28
+ margin: 0 auto;
29
+ max-width: 980px;
30
+ padding: 28px 18px 48px;
31
+ }
32
+ a {
33
+ color: inherit;
34
+ font-weight: 800;
35
+ }
36
+ .panel {
37
+ background: var(--panel);
38
+ border: 2px solid var(--line);
39
+ padding: 18px;
40
+ }
41
+ h1 {
42
+ font-size: clamp(42px, 11vw, 92px);
43
+ letter-spacing: 0;
44
+ line-height: 0.9;
45
+ margin: 0 0 18px;
46
+ text-transform: uppercase;
47
+ }
48
+ h2 {
49
+ border-top: 2px solid var(--line);
50
+ margin-top: 24px;
51
+ padding-top: 14px;
52
+ text-transform: uppercase;
53
+ }
54
+ dl {
55
+ display: grid;
56
+ gap: 10px;
57
+ grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
58
+ }
59
+ dt {
60
+ color: var(--muted);
61
+ font-weight: 800;
62
+ text-transform: uppercase;
63
+ }
64
+ dd {
65
+ margin: 0;
66
+ }
67
+ .kicker {
68
+ color: var(--orange);
69
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
70
+ font-weight: 900;
71
+ text-transform: uppercase;
72
+ }
73
+ .muted {
74
+ color: var(--muted);
75
+ }
76
+ @media (max-width: 700px) {
77
+ dl {
78
+ grid-template-columns: 1fr;
79
+ }
80
+ }
81
+ </style>
82
+ </head>
83
+ <body>
84
+ <main>
85
+ <p><a href="/">Back to SovAPI Arena</a></p>
86
+ <h1>Legal Notice</h1>
87
+ <section class="panel">
88
+ <p class="kicker">SovAPI Arena - legal information</p>
89
+ <h2>Publisher</h2>
90
+ <dl>
91
+ <dt>Company</dt>
92
+ <dd>FPLC SAS, operating the SovInfra and SovAPI services.</dd>
93
+ <dt>Registered office</dt>
94
+ <dd>10 Place Vendome, 75001 Paris, France.</dd>
95
+ <dt>Legal form</dt>
96
+ <dd>SAS, societe par actions simplifiee.</dd>
97
+ <dt>Share capital</dt>
98
+ <dd>168,000 EUR.</dd>
99
+ <dt>SIREN</dt>
100
+ <dd>934 780 917.</dd>
101
+ <dt>SIRET</dt>
102
+ <dd>934 780 917 00019.</dd>
103
+ <dt>RCS</dt>
104
+ <dd>Paris.</dd>
105
+ <dt>VAT number</dt>
106
+ <dd>FR13 934 780 917.</dd>
107
+ <dt>Publication director</dt>
108
+ <dd>Thierry Abimelech, Founder of SovInfra.</dd>
109
+ <dt>Contact</dt>
110
+ <dd><a href="mailto:contact@sovinfra.ai">contact@sovinfra.ai</a></dd>
111
+ </dl>
112
+
113
+ <h2>Service</h2>
114
+ <p>
115
+ SovAPI Arena is a public demonstration interface for SovAPI, an
116
+ OpenAI-compatible, modeless inference API. The Arena compares a live SovAPI
117
+ route with a selected challenger model and displays latency, throughput,
118
+ token usage and cost data returned by the live API responses.
119
+ </p>
120
+
121
  <h2>Hosting</h2>
122
  <p>
123
  The SovAPI gateway and inference run on SovInfra-controlled European infrastructure.
 
125
  demonstration interface itself is hosted on a third-party platform that may be located
126
  outside the European Union. Provider and gateway secrets are held server-side and are
127
  not embedded in browser assets.
128
+ </p>
129
+
130
+ <h2>Intellectual property</h2>
131
+ <p>
132
+ SovInfra, SovAPI, the Arena interface, documentation, software and visual identity
133
+ are protected by applicable intellectual-property law. Third-party model names and
134
+ trademarks belong to their respective owners.
135
+ </p>
136
+
137
  <h2>Personal data and GDPR</h2>
138
  <p>
139
  <strong>Data controller.</strong> FPLC SAS, 10 Place Vendome, 75001 Paris, France,
 
192
  The public Arena is intended for demonstration use. Do not submit confidential,
193
  sensitive, regulated or third-party personal data in prompts.
194
  </p>
195
+
196
  <p class="muted">Last updated: July 2026.</p>
197
+ </section>
198
+ </main>
199
+ </body>
200
+ </html>
terms.html CHANGED
@@ -1,95 +1,95 @@
1
- <!doctype html>
2
- <html lang="en" data-theme="light">
3
- <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Terms</title>
7
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%230b1620'/%3E%3Ctext x='16' y='22' font-size='18' text-anchor='middle' fill='%23ff7a1a' font-family='Arial'%3ES%3C/text%3E%3C/svg%3E" />
8
- <style>
9
- :root {
10
- --paper: #f3eadc;
11
- --panel: #fff8ec;
12
- --ink: #15110d;
13
- --muted: #6f6255;
14
- --line: #201812;
15
- --orange: #ff5a1f;
16
- }
17
- * {
18
- box-sizing: border-box;
19
- }
20
- body {
21
- background: var(--paper);
22
- color: var(--ink);
23
- font-family: Inter, ui-sans-serif, system-ui, sans-serif;
24
- line-height: 1.5;
25
- margin: 0;
26
- }
27
- main {
28
- margin: 0 auto;
29
- max-width: 980px;
30
- padding: 28px 18px 48px;
31
- }
32
- a {
33
- color: inherit;
34
- font-weight: 800;
35
- }
36
- .panel {
37
- background: var(--panel);
38
- border: 2px solid var(--line);
39
- padding: 18px;
40
- }
41
- h1 {
42
- font-size: clamp(42px, 11vw, 92px);
43
- letter-spacing: 0;
44
- line-height: 0.9;
45
- margin: 0 0 18px;
46
- text-transform: uppercase;
47
- }
48
- h2 {
49
- border-top: 2px solid var(--line);
50
- margin-top: 24px;
51
- padding-top: 14px;
52
- text-transform: uppercase;
53
- }
54
- .kicker {
55
- color: var(--orange);
56
- font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
57
- font-weight: 900;
58
- text-transform: uppercase;
59
- }
60
- .muted {
61
- color: var(--muted);
62
- }
63
- </style>
64
- </head>
65
- <body>
66
- <main>
67
- <p><a href="/">Back to SovAPI Arena</a></p>
68
- <h1>Terms</h1>
69
- <section class="panel">
70
- <p class="kicker">SovAPI Arena terms of use</p>
71
-
72
- <h2>1. Acceptance</h2>
73
- <p>
74
- By accessing SovAPI Arena, you agree to these terms. If you do not agree, do not
75
- use the Arena or the SovAPI demonstration endpoints.
76
- </p>
77
-
78
- <h2>2. Service description</h2>
79
- <p>
80
- The Arena is a public demonstration of SovAPI modeless routing. It sends one prompt
81
- to SovAPI and, when available, to a selected challenger through a server-side relay,
82
- then displays live metrics returned by the APIs.
83
- </p>
84
-
85
- <h2>3. API access</h2>
86
- <p>
87
- Production API usage requires a SovAPI key issued through the SovInfra portal at
88
- <a href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">app.sovinfra.ai</a>.
89
- The public model alias is <code>sovapi</code> and the OpenAI-compatible base URL is
90
- <code>https://api.sovinfra.ai/v1</code>.
91
- </p>
92
-
93
  <h2>4. Trial grant</h2>
94
  <p>
95
  The free tier includes a grant of 100 M tokens and a limit of 100 requests per minute.
@@ -99,76 +99,76 @@
99
 
100
  <h2>5. Pricing</h2>
101
  <p>
102
- Paid SovAPI access is billed exclusively from usage, at 0.015 USD per million input
103
- tokens and 0.13 USD per million output tokens, unless a signed agreement states
104
  otherwise. It has no token ceiling, is limited to 600 requests per minute, includes
105
  email support within 24 hours and applies no data retention. Challenger costs are read
106
  from the provider response when available.
107
  </p>
108
-
109
  <h2>6. Public-demo quota</h2>
110
  <p>
111
  Public challenge sessions are limited to 30,000 challenger tokens per duel, reset at
112
  each new duel, together with a per-IP daily limit on the number of duels. These limits
113
  protect the service from abuse.
114
- </p>
115
-
116
- <h2>7. Acceptable use</h2>
117
- <p>
118
- You must not use the Arena to submit illegal, harmful, confidential, sensitive,
119
- regulated or third-party personal data. You must not attempt to bypass quotas,
120
- extract secrets, disrupt the service or resell access without written permission.
121
- </p>
122
-
123
  <h2>8. Secrets and provider keys</h2>
124
  <p>
125
  SovAPI keys, gateway credentials and provider secrets are held server-side. They must
126
  not be exposed in browser code, public repositories or shared screenshots.
127
- </p>
128
-
129
- <h2>9. Benchmark information</h2>
130
- <p>
131
- Arena metrics are measured on live requests and may vary with prompt length, provider
132
- availability, network conditions, GPU placement and selected challenger model. Shared
133
- result cards must be read as demonstrations, not guaranteed performance commitments.
134
- </p>
135
-
136
- <h2>10. Generated content</h2>
137
- <p>
138
- Outputs are generated by AI systems and may be incomplete, inaccurate or unsuitable
139
- for production use without review. You remain responsible for validating any output
140
- before using it.
141
- </p>
142
-
143
- <h2>11. Intellectual property</h2>
144
- <p>
145
- The SovAPI Arena interface, copy, software and brand assets remain the property of
146
- FPLC SAS / SovInfra. Third-party model names and trademarks belong to their respective
147
- owners.
148
- </p>
149
-
150
- <h2>12. Availability</h2>
151
- <p>
152
- The Arena is provided as a demonstration service. It may be modified, suspended or
153
- unavailable during maintenance, infrastructure changes, provider incidents or abuse
154
- mitigation.
155
- </p>
156
-
157
- <h2>13. Liability</h2>
158
- <p>
159
- To the maximum extent permitted by law, FPLC SAS / SovInfra is not liable for indirect
160
- damages, loss of business, loss of data, provider outages or decisions made from
161
- unverified AI outputs.
162
- </p>
163
-
164
- <h2>14. Governing law and contact</h2>
165
- <p>
166
- These terms are governed by French law and applicable European Union law. For legal
167
  questions, contact <a href="mailto:legal@sovinfra.eu">legal@sovinfra.eu</a>.
168
- </p>
169
-
170
- <p class="muted">Last updated: July 2026.</p>
171
- </section>
172
- </main>
173
- </body>
174
- </html>
 
1
+ <!doctype html>
2
+ <html lang="en" data-theme="light">
3
+ <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
  <title>SovAPI Terms</title>
7
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%230b1620'/%3E%3Ctext x='16' y='22' font-size='18' text-anchor='middle' fill='%23ff7a1a' font-family='Arial'%3ES%3C/text%3E%3C/svg%3E" />
8
+ <style>
9
+ :root {
10
+ --paper: #f3eadc;
11
+ --panel: #fff8ec;
12
+ --ink: #15110d;
13
+ --muted: #6f6255;
14
+ --line: #201812;
15
+ --orange: #ff5a1f;
16
+ }
17
+ * {
18
+ box-sizing: border-box;
19
+ }
20
+ body {
21
+ background: var(--paper);
22
+ color: var(--ink);
23
+ font-family: Inter, ui-sans-serif, system-ui, sans-serif;
24
+ line-height: 1.5;
25
+ margin: 0;
26
+ }
27
+ main {
28
+ margin: 0 auto;
29
+ max-width: 980px;
30
+ padding: 28px 18px 48px;
31
+ }
32
+ a {
33
+ color: inherit;
34
+ font-weight: 800;
35
+ }
36
+ .panel {
37
+ background: var(--panel);
38
+ border: 2px solid var(--line);
39
+ padding: 18px;
40
+ }
41
+ h1 {
42
+ font-size: clamp(42px, 11vw, 92px);
43
+ letter-spacing: 0;
44
+ line-height: 0.9;
45
+ margin: 0 0 18px;
46
+ text-transform: uppercase;
47
+ }
48
+ h2 {
49
+ border-top: 2px solid var(--line);
50
+ margin-top: 24px;
51
+ padding-top: 14px;
52
+ text-transform: uppercase;
53
+ }
54
+ .kicker {
55
+ color: var(--orange);
56
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
57
+ font-weight: 900;
58
+ text-transform: uppercase;
59
+ }
60
+ .muted {
61
+ color: var(--muted);
62
+ }
63
+ </style>
64
+ </head>
65
+ <body>
66
+ <main>
67
+ <p><a href="/">Back to SovAPI Arena</a></p>
68
+ <h1>Terms</h1>
69
+ <section class="panel">
70
+ <p class="kicker">SovAPI Arena terms of use</p>
71
+
72
+ <h2>1. Acceptance</h2>
73
+ <p>
74
+ By accessing SovAPI Arena, you agree to these terms. If you do not agree, do not
75
+ use the Arena or the SovAPI demonstration endpoints.
76
+ </p>
77
+
78
+ <h2>2. Service description</h2>
79
+ <p>
80
+ The Arena is a public demonstration of SovAPI modeless routing. It sends one prompt
81
+ to SovAPI and, when available, to a selected challenger through a server-side relay,
82
+ then displays live metrics returned by the APIs.
83
+ </p>
84
+
85
+ <h2>3. API access</h2>
86
+ <p>
87
+ Production API usage requires a SovAPI key issued through the SovInfra portal at
88
+ <a href="https://app.sovinfra.ai" rel="noopener noreferrer" target="_blank">app.sovinfra.ai</a>.
89
+ The public model alias is <code>sovapi</code> and the OpenAI-compatible base URL is
90
+ <code>https://api.sovinfra.ai/v1</code>.
91
+ </p>
92
+
93
  <h2>4. Trial grant</h2>
94
  <p>
95
  The free tier includes a grant of 100 M tokens and a limit of 100 requests per minute.
 
99
 
100
  <h2>5. Pricing</h2>
101
  <p>
102
+ Paid SovAPI access is billed exclusively from usage, at 0.018 USD per million input
103
+ tokens and 0.16 USD per million output tokens, unless a signed agreement states
104
  otherwise. It has no token ceiling, is limited to 600 requests per minute, includes
105
  email support within 24 hours and applies no data retention. Challenger costs are read
106
  from the provider response when available.
107
  </p>
108
+
109
  <h2>6. Public-demo quota</h2>
110
  <p>
111
  Public challenge sessions are limited to 30,000 challenger tokens per duel, reset at
112
  each new duel, together with a per-IP daily limit on the number of duels. These limits
113
  protect the service from abuse.
114
+ </p>
115
+
116
+ <h2>7. Acceptable use</h2>
117
+ <p>
118
+ You must not use the Arena to submit illegal, harmful, confidential, sensitive,
119
+ regulated or third-party personal data. You must not attempt to bypass quotas,
120
+ extract secrets, disrupt the service or resell access without written permission.
121
+ </p>
122
+
123
  <h2>8. Secrets and provider keys</h2>
124
  <p>
125
  SovAPI keys, gateway credentials and provider secrets are held server-side. They must
126
  not be exposed in browser code, public repositories or shared screenshots.
127
+ </p>
128
+
129
+ <h2>9. Benchmark information</h2>
130
+ <p>
131
+ Arena metrics are measured on live requests and may vary with prompt length, provider
132
+ availability, network conditions, GPU placement and selected challenger model. Shared
133
+ result cards must be read as demonstrations, not guaranteed performance commitments.
134
+ </p>
135
+
136
+ <h2>10. Generated content</h2>
137
+ <p>
138
+ Outputs are generated by AI systems and may be incomplete, inaccurate or unsuitable
139
+ for production use without review. You remain responsible for validating any output
140
+ before using it.
141
+ </p>
142
+
143
+ <h2>11. Intellectual property</h2>
144
+ <p>
145
+ The SovAPI Arena interface, copy, software and brand assets remain the property of
146
+ FPLC SAS / SovInfra. Third-party model names and trademarks belong to their respective
147
+ owners.
148
+ </p>
149
+
150
+ <h2>12. Availability</h2>
151
+ <p>
152
+ The Arena is provided as a demonstration service. It may be modified, suspended or
153
+ unavailable during maintenance, infrastructure changes, provider incidents or abuse
154
+ mitigation.
155
+ </p>
156
+
157
+ <h2>13. Liability</h2>
158
+ <p>
159
+ To the maximum extent permitted by law, FPLC SAS / SovInfra is not liable for indirect
160
+ damages, loss of business, loss of data, provider outages or decisions made from
161
+ unverified AI outputs.
162
+ </p>
163
+
164
+ <h2>14. Governing law and contact</h2>
165
+ <p>
166
+ These terms are governed by French law and applicable European Union law. For legal
167
  questions, contact <a href="mailto:legal@sovinfra.eu">legal@sovinfra.eu</a>.
168
+ </p>
169
+
170
+ <p class="muted">Last updated: July 2026.</p>
171
+ </section>
172
+ </main>
173
+ </body>
174
+ </html>