Skip to content

Commit 33f392d

Browse files
feat(ai-gateway): add discounted Claude Opus 4.8 stealth model (#3592)
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent 52f1682 commit 33f392d

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

apps/web/src/lib/ai-gateway/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ import {
1010
} from '@/lib/ai-gateway/auto-model';
1111
import {
1212
CLAUDE_OPUS_CURRENT_MODEL_ID,
13+
CLAUDE_OPUS_4_8_STEALTH_MODEL_ID,
1314
CLAUDE_OPUS_STEALTH_MODEL_ID,
1415
CLAUDE_SONNET_STEALTH_MODEL_ID,
1516
CLAUDE_OPUS_4_6_STEALTH_MODEL_ID,
17+
claude_opus_4_8_stealth_model,
1618
claude_opus_4_7_stealth_model,
1719
claude_sonnet_4_6_stealth_model,
1820
claude_opus_4_6_stealth_model,
@@ -57,6 +59,7 @@ export const preferredModels = [
5759
KILO_AUTO_FREE_MODEL.id,
5860
...autoFreeModels,
5961
CLAUDE_OPUS_CURRENT_MODEL_ID,
62+
CLAUDE_OPUS_4_8_STEALTH_MODEL_ID,
6063
CLAUDE_OPUS_STEALTH_MODEL_ID,
6164
CLAUDE_SONNET_STEALTH_MODEL_ID,
6265
CLAUDE_OPUS_4_6_STEALTH_MODEL_ID,
@@ -93,6 +96,7 @@ export const kiloExclusiveModels = [
9396
...deepseekDiscountedModels,
9497
qwen36_plus_stealth_model,
9598
claude_sonnet_clawsetup_model,
99+
claude_opus_4_8_stealth_model,
96100
claude_opus_4_7_stealth_model,
97101
claude_sonnet_4_6_stealth_model,
98102
claude_opus_4_6_stealth_model,

apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
export const CLAUDE_SONNET_CURRENT_MODEL_ID = 'anthropic/claude-sonnet-4.6';
88
export const CLAUDE_OPUS_CURRENT_MODEL_ID = 'anthropic/claude-opus-4.8';
99
export const CLAUDE_HAIKU_CURRENT_MODEL_ID = 'anthropic/claude-haiku-4.5';
10+
export const CLAUDE_OPUS_4_8_STEALTH_MODEL_ID = 'stealth/claude-opus-4.8';
1011
export const CLAUDE_OPUS_STEALTH_MODEL_ID = 'stealth/claude-opus-4.7';
1112
export const CLAUDE_SONNET_STEALTH_MODEL_ID = 'stealth/claude-sonnet-4.6';
1213
export const CLAUDE_OPUS_4_6_STEALTH_MODEL_ID = 'stealth/claude-opus-4.6';
@@ -27,6 +28,22 @@ const CLAUDE_OPUS_STEALTH_PRICING: Pricing = {
2728
usage.cacheWriteTokens * 5,
2829
};
2930

31+
export const claude_opus_4_8_stealth_model: KiloExclusiveModel = {
32+
public_id: CLAUDE_OPUS_4_8_STEALTH_MODEL_ID,
33+
internal_id: 'anthropic/claude-opus-4-8:optimized',
34+
display_name: 'Stealth: Claude Opus 4.8 (20% off)',
35+
description:
36+
"Your prompts and completions may be retained and used to train or improve the provider's services. This third-party-served variant of Claude Opus 4.8 is offered at 20% lower cost than standard Claude Opus 4.8 pricing and is not served by Anthropic or Kilo Code.",
37+
status: 'public',
38+
context_length: 1_000_000,
39+
max_completion_tokens: 128_000,
40+
gateway: 'martian',
41+
flags: ['reasoning', 'vision', 'stealth', 'requires-data-collection'],
42+
pricing: CLAUDE_OPUS_STEALTH_PRICING,
43+
exclusive_to: [],
44+
inference_provider_restriction: [],
45+
};
46+
3047
export const claude_opus_4_7_stealth_model: KiloExclusiveModel = {
3148
public_id: CLAUDE_OPUS_STEALTH_MODEL_ID,
3249
internal_id: 'anthropic/claude-opus-4-7:optimized',

0 commit comments

Comments
 (0)