{"slug":"step-5-preview","name":"Step 5 Preview","family":"stepfun","family_name":"StepFun","developer":"StepFun","color":"#66fff0","status":"preview","released":"2026-09-16","snapshot_of":null,"open":true,"context":1048576,"max_output":64000,"knowledge_cutoff":null,"modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"stepfun-ai/Step-5-Preview","speed":66.5,"latency":10.85,"short":"Open-weight model from StepFun with a very large context window and image and video input. Its standout result is scientific programming, where it ranks among the top fifteen on SciCode.","strengths":["58.9% on SciCode, 14th of 96","1570 on WebDev Arena, 26th of 85, above the 1506 median","Ninth most popular of 194 models in the registry","1M-token context window with responses up to 64k tokens"],"weaknesses":["Blended price of $1.43 per million tokens, above the $1.01 median","Intelligence index of 61.0, 52nd of 114, barely above median","Available from only two providers, Novita and OpenRouter"],"best_for":"Coding and scientific programming agents that need long context and image or video input, where cost is less important.","long":"Step 5 Preview is an open-weight model from StepFun, released in September 2026. It accepts text, image and video, offers a 1M-token context window and supports tool calling, structured output and reasoning mode.\n\nIts benchmark results are uneven. SciCode is a clear strength, at 58.9% and 14th of 96, and WebDev Arena also sits well above the median. The overall intelligence index of 61.0 is only just above the median, and LMArena text is roughly average.\n\nCost is the main drawback. Its blended price of $1.43 per million tokens is above the registry median, and it is served by only Novita and OpenRouter.","described":true,"gateway":false,"byok":true,"string":"openrouter:stepfun/step-5-preview","input":1,"output":2.7,"cache_read":0.1,"blended":1.425,"efficiency":42.8,"bench":{"index":61,"scicode":58.9,"webdev":1570.2,"lmarena":1443.8},"offers":[{"provider":"novita","name":"Novita","model_id":"stepfun/step-5-preview","api":["openai"],"input":1,"output":2.7,"cache_read":0.1,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"stepfun/step-5-preview","api":["openai"],"input":1,"output":2.7,"cache_read":0.1,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:stepfun/step-5-preview","gateway_string":null}],"ranks":{"intelligence":49,"popularity":9,"efficiency":51,"speed":94,"price":106},"top_score":0.8392,"about":["Open-weight model from StepFun with a very large context window and image and video input. Its standout result is scientific programming, where it ranks among the top fifteen on SciCode.","Step 5 Preview is an open-weight model from StepFun, released in September 2026. It accepts text, image and video, offers a 1M-token context window and supports tool calling, structured output and reasoning mode.","Its benchmark results are uneven. SciCode is a clear strength, at 58.9% and 14th of 96, and WebDev Arena also sits well above the median. The overall intelligence index of 61.0 is only just above the median, and LMArena text is roughly average.","Cost is the main drawback. Its blended price of $1.43 per million tokens is above the registry median, and it is served by only Novita and OpenRouter."],"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:stepfun/step-5-preview', 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:stepfun/step-5-preview', 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:stepfun/step-5-preview',\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:stepfun/step-5-preview')\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:stepfun/step-5-preview'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/stepfun/step-5-preview'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'stepfun/step-5-preview' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='Novita' \\\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('stepfun/step-5-preview'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"index","name":"Intelligence index","unit":"","desc":"Our composite of the benchmarks below, 0-100","category":"reference","floor":0,"ceiling":100,"url":"/methodology/","credit":"Pydantic, from the sources credited below"},{"id":"scicode","name":"SciCode","unit":"%","desc":"Scientific programming problems written by researchers","category":"coding","floor":0,"ceiling":100,"url":"https://scicode-bench.github.io/","credit":"SciCode, via Epoch AI (CC BY 4.0)"},{"id":"webdev","name":"WebDev Arena","unit":"","desc":"Rating from human votes on web apps the models built","category":"coding","floor":1000,"ceiling":1900,"url":"https://web.lmarena.ai/leaderboard","credit":"LMArena, via Epoch AI (CC BY 4.0)"},{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}