SPB Git forge

spb/polyllm

Public
15commits 1branches 0releases
2.2 MBsize
maindefault branch
13 days agolast push
TypeScript 97.4% SQL 1% JavaScript 0.9% CSS 0.6%
6.9 KB · 144 lines json
Raw Blame History
1[2  {3    "id": "deepseek-v4-flash",4    "displayName": "DeepSeek V4 Flash",5    "family": "deepseek-v4",6    "contextTokens": 1000000,7    "maxOutputTokens": 393216,8    "capabilities": {9      "text": true,10      "vision": false,11      "audioInput": false,12      "audioOutput": false,13      "imageGeneration": false,14      "video": false,15      "reasoning": true,16      "tools": true,17      "structuredOutput": "json_object-only",18      "streaming": true,19      "files": false,20      "webSearch": "responses-api-only"21    },22    "parameters": {23      "temperature": "non-thinking-only",24      "topP": "non-thinking-only",25      "topK": false,26      "maxTokens": true,27      "reasoningEffort": ["none", "low", "high", "max"],28      "thinkingBudget": false,29      "stop": true,30      "seed": false,31      "frequencyPenalty": false,32      "presencePenalty": false33    },34    "pricing": {35      "inputPerMillion": 0.44,36      "cachedInputPerMillion": 0.014,37      "outputPerMillion": 1.32,38      "offPeakInputPerMillion": 0.22,39      "offPeakCachedInputPerMillion": 0.007,40      "offPeakOutputPerMillion": 0.66,41      "peakHoursUtc": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC; all other hours off-peak (50%)",42      "longContextThresholdTokens": null,43      "imageInputPerMillionTokens": null44    },45    "status": "active",46    "aliases": ["deepseek-chat", "deepseek-reasoner"],47    "notes": "Version DeepSeek-V4-Flash-0731 (GA 2026-07-31), 284B total / 13B active MoE. Hybrid model: thinking ENABLED by default at effort 'high'; disable with thinking:{type:'disabled'} (or reasoning_effort:'none', undocumented). reasoning_effort low|high|max (medium/xhigh map to high). reasoning_content returned in message and streamed as delta.reasoning_content (both content/reasoning_content keys present in every delta, one null). max_tokens range [1,393216] and it caps reasoning+answer together (small caps -> finish_reason 'length' with empty content). completion_tokens includes reasoning tokens. In thinking mode temperature/top_p/penalties are silently ignored. Usage arrives on the finish_reason chunk even without include_usage. response_format json_schema -> 400 'unavailable now'; json_object requires the word 'json' in the prompt. n=1 only; developer role rejected (map to system). Images are silently DROPPED (placeholder, no 400) -> block client-side. When tools are sent, replay reasoning_content on assistant messages (docs require it; V4 did not 400 without it). Aliases deepseek-chat (non-thinking) / deepseek-reasoner (thinking) were retired 2026-07-24 per docs but still resolve here as of 2026-09-08 - do not list. Concurrency limit 2500. Cache hits in 64-token units, cache-hit input = 1/32 of miss price."48  },49  {50    "id": "deepseek-v4-pro",51    "displayName": "DeepSeek V4 Pro",52    "family": "deepseek-v4",53    "contextTokens": 1000000,54    "maxOutputTokens": 393216,55    "capabilities": {56      "text": true,57      "vision": false,58      "audioInput": false,59      "audioOutput": false,60      "imageGeneration": false,61      "video": false,62      "reasoning": true,63      "tools": true,64      "structuredOutput": "json_object-only",65      "streaming": true,66      "files": false,67      "webSearch": "responses-api-only"68    },69    "parameters": {70      "temperature": "non-thinking-only",71      "topP": "non-thinking-only",72      "topK": false,73      "maxTokens": true,74      "reasoningEffort": ["none", "low", "high", "max"],75      "thinkingBudget": false,76      "stop": true,77      "seed": false,78      "frequencyPenalty": false,79      "presencePenalty": false80    },81    "pricing": {82      "inputPerMillion": 1.32,83      "cachedInputPerMillion": 0.044,84      "outputPerMillion": 3.96,85      "offPeakInputPerMillion": 0.66,86      "offPeakCachedInputPerMillion": 0.022,87      "offPeakOutputPerMillion": 1.98,88      "peakHoursUtc": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC; all other hours off-peak (50%)",89      "longContextThresholdTokens": null,90      "imageInputPerMillionTokens": null91    },92    "status": "active",93    "aliases": [],94    "notes": "Flagship, version DeepSeek-V4-Pro-0813 (GA 2026-08-13), 1.6T total / 49B active MoE. Same API behaviour and parameter matrix as deepseek-v4-flash (probed identical): thinking default on at 'high', effort low|high|max, reasoning_content in message + deltas, max_tokens [1,393216] covering reasoning+answer, json_object only, n=1, developer role 400, images silently dropped. 3x the price of Flash; lower concurrency limit (500). Slightly slower TTFT (~2.1 s vs 1.1 s for a trivial prompt). Only model listed for FIM in the docs (but Flash answered FIM too). Anthropic-format endpoint maps Claude Opus names to this model. Peak/off-peak pricing since 2026-08-16."95  },96  {97    "id": "deepseek-v4-flash-vision-exp",98    "displayName": "DeepSeek V4 Flash Vision (experimental)",99    "family": "deepseek-v4",100    "contextTokens": 1000000,101    "maxOutputTokens": 393216,102    "capabilities": {103      "text": true,104      "vision": true,105      "audioInput": false,106      "audioOutput": false,107      "imageGeneration": false,108      "video": false,109      "reasoning": true,110      "tools": true,111      "structuredOutput": "json_object-only",112      "streaming": true,113      "files": "images-via-files-api-only",114      "webSearch": "responses-api-only"115    },116    "parameters": {117      "temperature": "non-thinking-only",118      "topP": "non-thinking-only",119      "topK": false,120      "maxTokens": true,121      "reasoningEffort": ["none", "low", "high", "max"],122      "thinkingBudget": false,123      "stop": true,124      "seed": false,125      "frequencyPenalty": false,126      "presencePenalty": false127    },128    "pricing": {129      "inputPerMillion": 0.44,130      "cachedInputPerMillion": 0.014,131      "outputPerMillion": 1.32,132      "offPeakInputPerMillion": 0.22,133      "offPeakCachedInputPerMillion": 0.007,134      "offPeakOutputPerMillion": 0.66,135      "peakHoursUtc": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC; all other hours off-peak (50%)",136      "longContextThresholdTokens": null,137      "imageInputPerMillionTokens": 0.44138    },139    "status": "experimental",140    "aliases": [],141    "notes": "Released 2026-08-21, experimental (may change or be withdrawn). Text capabilities = V4-Flash, same price. The ONLY model that accepts images: {type:'image_url', image_url:{url, detail?}} with data URLs or http(s) URLs, or {type:'file', file_id|file_data} via the free Files API. JPEG/PNG/GIF/WebP sniffed from bytes; <=32 MiB inline (64 MiB via Files API), body <=48 MiB, <=600 images, side <=8192 px. Images only in user messages (system -> 400 'Image in system message is unsupported'). Token cost per image: upscaled to ~384x384 minimum / downscaled to ~800x800 area -> ~100-384 tokens per image billed as input (probed: 32x32 PNG = ~111 tokens, 103 with detail:'low'). detail low|high|original|auto (high=original=auto). Thinking + tools + json_object all work with images (probed). Thinking mode with a small max_tokens can spend the whole budget on reasoning -> empty content. Concurrency limit 2500. FIM not supported (docs)."142  }143]144