{"slug":"step-3.7-flash","name":"Step 3.7 Flash","family":"stepfun","family_name":"StepFun","developer":"StepFun","color":"#66fff0","status":"active","released":"2026-05-29","snapshot_of":null,"open":true,"context":262144,"max_output":230400,"knowledge_cutoff":"2026-03","modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"stepfun-ai/Step-3.7-Flash","speed":63.5,"latency":3.7,"short":"An open-weights model from StepFun with a 262k context window and text, image and video input. It is inexpensive, and its single benchmark result is below the registry median.","strengths":["262k context window with up to 230k response tokens","Accepts text, image and video input","Blended price $0.44 per million tokens, well below the $1.01 median","Supports tool calling, structured output and reasoning mode"],"weaknesses":["SciCode 40.0%, 80th of 96, below the 50.2% median","Only one benchmark result, so capability is hard to judge","Served by only two providers, Novita and OpenRouter"],"best_for":"Cost-sensitive agents handling long documents, multimodal inputs or tool-calling workflows, tested against their own tasks first.","long":"Step 3.7 Flash is an open-weights model from StepFun, released May 2026. It has a 262k context window, accepts text, image and video input, and supports tool calling, structured output and a reasoning mode. Its knowledge runs to March 2026.\n\nIts main draw is price. At $0.20 per million input tokens and $1.15 per million output tokens, its blended rate of $0.44 is well under the registry median, and it ranks 53rd of 194 on price. Only one benchmark is recorded, SciCode, where it scores 40.0% against a median of 50.2% and ranks 80th of 96. It is served by Novita and OpenRouter.\n\nFor an agent, this makes it a candidate for long-context, multimodal or tool-driven work where cost matters more than strong scientific coding results. Because benchmark evidence is thin and below the median, testing it on the actual workload before committing is the sensible step.","described":true,"gateway":false,"byok":true,"string":"openrouter:stepfun/step-3.7-flash","input":0.2,"output":1.15,"cache_read":0.04,"blended":0.4375,"efficiency":null,"bench":{"scicode":40},"offers":[{"provider":"novita","name":"Novita","model_id":"stepfun/step-3.7-flash","api":["openai"],"input":0.2,"output":1.15,"cache_read":0.04,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"stepfun/step-3.7-flash","api":["openai"],"input":0.2,"output":1.15,"cache_read":0.04,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:stepfun/step-3.7-flash","gateway_string":null}],"ranks":{"intelligence":null,"popularity":122,"efficiency":null,"speed":100,"price":53},"top_score":0.1619,"about":["An open-weights model from StepFun with a 262k context window and text, image and video input. It is inexpensive, and its single benchmark result is below the registry median.","Step 3.7 Flash is an open-weights model from StepFun, released May 2026. It has a 262k context window, accepts text, image and video input, and supports tool calling, structured output and a reasoning mode. Its knowledge runs to March 2026.","Its main draw is price. At $0.20 per million input tokens and $1.15 per million output tokens, its blended rate of $0.44 is well under the registry median, and it ranks 53rd of 194 on price. Only one benchmark is recorded, SciCode, where it scores 40.0% against a median of 50.2% and ranks 80th of 96. It is served by Novita and OpenRouter.","For an agent, this makes it a candidate for long-context, multimodal or tool-driven work where cost matters more than strong scientific coding results. Because benchmark evidence is thin and below the median, testing it on the actual workload before committing is the sensible step."],"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-3.7-flash', 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-3.7-flash', 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-3.7-flash',\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-3.7-flash')\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-3.7-flash'","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-3.7-flash'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'stepfun/step-3.7-flash' \\\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-3.7-flash'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}