{"slug":"deepseek-v4-flash-vision-exp","name":"DeepSeek V4 Flash Vision Exp","family":"deepseek","family_name":"DeepSeek","developer":"DeepSeek","color":"#1e3a8a","status":"preview","released":"2026-10-17","snapshot_of":null,"open":true,"context":1048576,"max_output":393216,"knowledge_cutoff":"2025-05","modalities":["text","image"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"deepseek-ai/DeepSeek-V4-Flash-Vision-Exp","speed":46,"latency":1.57,"short":"An open-weights DeepSeek model with a 1M-token context window that accepts text and images. It is a low-priced option, but it has no published benchmark results.","strengths":["Open weights with a 1M-token context window","Accepts text and image input, with tool calling and structured output","Blended price of $0.32 per million tokens, well below the $1.01 median","Price rank of 46 of 194, where 1 is best"],"weaknesses":["No benchmark results, so capability cannot be compared with other models","Available only through OpenRouter"],"best_for":"Cost-sensitive agents that need long context, image input, or tool calling, and can test quality themselves.","long":"DeepSeek V4 Flash Vision Exp is an open-weights model from DeepSeek, released in October 2026. It accepts text and image input and offers a context window of 1M tokens, with up to 393k tokens in a single response. Tool calling, reasoning mode and structured output are all supported. Its knowledge cutoff is May 2025.\n\nPricing is the clearest point in its favour. Input costs $0.22 per million tokens and output $0.65, giving a blended price of $0.32 against a registry median of $1.01. It ranks 46th of 194 on price and 80th of 194 on popularity, where 1 is best in both.\n\nThe model has no benchmark results in the registry, so its quality cannot be ranked against other models. It is offered only through OpenRouter. Teams should run their own evaluations on representative tasks before relying on it.","described":true,"gateway":false,"byok":true,"string":"openrouter:deepseek/deepseek-v4-flash-vision-exp","input":0.2156,"output":0.6468,"cache_read":0.00686,"blended":0.3234,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"deepseek/deepseek-v4-flash-vision-exp","api":["openai"],"input":0.2156,"output":0.6468,"cache_read":0.00686,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:deepseek/deepseek-v4-flash-vision-exp","gateway_string":null}],"ranks":{"intelligence":null,"popularity":80,"efficiency":null,"speed":130,"price":46},"top_score":0.2619,"about":["An open-weights DeepSeek model with a 1M-token context window that accepts text and images. It is a low-priced option, but it has no published benchmark results.","DeepSeek V4 Flash Vision Exp is an open-weights model from DeepSeek, released in October 2026. It accepts text and image input and offers a context window of 1M tokens, with up to 393k tokens in a single response. Tool calling, reasoning mode and structured output are all supported. Its knowledge cutoff is May 2025.","Pricing is the clearest point in its favour. Input costs $0.22 per million tokens and output $0.65, giving a blended price of $0.32 against a registry median of $1.01. It ranks 46th of 194 on price and 80th of 194 on popularity, where 1 is best in both.","The model has no benchmark results in the registry, so its quality cannot be ranked against other models. It is offered only through OpenRouter. Teams should run their own evaluations on representative tasks before relying on it."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:deepseek/deepseek-v4-flash-vision-exp', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:deepseek/deepseek-v4-flash-vision-exp', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:deepseek/deepseek-v4-flash-vision-exp',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:deepseek/deepseek-v4-flash-vision-exp')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:deepseek/deepseek-v4-flash-vision-exp'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/deepseek/deepseek-v4-flash-vision-exp'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'deepseek/deepseek-v4-flash-vision-exp' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('deepseek/deepseek-v4-flash-vision-exp'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}