diff --git a/mcp/payment/claw402.go b/mcp/payment/claw402.go index f28ca1ca..9d628f54 100644 --- a/mcp/payment/claw402.go +++ b/mcp/payment/claw402.go @@ -65,6 +65,8 @@ var claw402ModelEndpoints = map[string]string{ // DeepSeek "deepseek": "/api/v1/ai/deepseek/chat", "deepseek-reasoner": "/api/v1/ai/deepseek/chat/reasoner", + "deepseek-v4-flash": "/api/v1/ai/deepseek/v4-flash", + "deepseek-v4-pro": "/api/v1/ai/deepseek/v4-pro", // Qwen "qwen-max": "/api/v1/ai/qwen/chat/max", "qwen-plus": "/api/v1/ai/qwen/chat/plus", diff --git a/store/ai_charge.go b/store/ai_charge.go index 99ff6301..340009e8 100644 --- a/store/ai_charge.go +++ b/store/ai_charge.go @@ -22,18 +22,20 @@ func (AICharge) TableName() string { return "ai_charges" } var modelPrices = map[string]float64{ "deepseek": 0.003, "deepseek-reasoner": 0.005, + "deepseek-v4-flash": 0.003, + "deepseek-v4-pro": 0.01, "gpt-5.4": 0.05, "gpt-5.4-pro": 0.50, "gpt-5.3": 0.01, "gpt-5-mini": 0.005, - "claude-opus": 0.12, - "qwen-max": 0.01, - "qwen-plus": 0.005, - "qwen-turbo": 0.002, - "qwen-flash": 0.002, - "grok-4.1": 0.06, - "gemini-3.1-pro": 0.03, - "kimi-k2.5": 0.008, + "claude-opus": 0.12, + "qwen-max": 0.01, + "qwen-plus": 0.005, + "qwen-turbo": 0.002, + "qwen-flash": 0.002, + "grok-4.1": 0.06, + "gemini-3.1-pro": 0.03, + "kimi-k2.5": 0.008, } // GetModelPrice returns the price per call for a given model diff --git a/web/src/components/trader/model-constants.ts b/web/src/components/trader/model-constants.ts index 75c15414..d87ddd02 100644 --- a/web/src/components/trader/model-constants.ts +++ b/web/src/components/trader/model-constants.ts @@ -43,6 +43,8 @@ export function getShortName(fullName: string): string { // Models available through Claw402 (x402 USDC payment protocol) export const CLAW402_MODELS: Claw402Model[] = [ + { id: 'deepseek-v4-flash', name: 'DeepSeek V4 Flash', provider: 'DeepSeek', desc: '$0.003/call', icon: '⚡', price: 0.003 }, + { id: 'deepseek-v4-pro', name: 'DeepSeek V4 Pro', provider: 'DeepSeek', desc: '$0.01/call', icon: '🧠', price: 0.01 }, { id: 'deepseek', name: 'DeepSeek V3', provider: 'DeepSeek', desc: '$0.003/call', icon: '🔥', price: 0.003 }, { id: 'deepseek-reasoner', name: 'DeepSeek R1', provider: 'DeepSeek', desc: '$0.005/call', icon: '🤔', price: 0.005 }, { id: 'gpt-5-mini', name: 'GPT-5 Mini', provider: 'OpenAI', desc: '$0.005/call', icon: '🚀', price: 0.005 },