Skip to content

StepFun Step 3.7 Flash + OpenCode: Cheapest Reasoning Setup

Set up OpenCode with StepFun Step 3.7 Flash for a very cheap, multimodal reasoning coding agent. Provider config, model IDs, low pricing, and the common fixes.

MGMCSA Guru Team August 13, 2026 2 min read
OpenCode configured with StepFun Step 3.7 Flash on Windows

Step 3.7 Flash is an open 198B mixture-of-experts vision-language model with about 11B active parameters per token. It accepts text and images, has a 256K context window, and offers low, medium, and high reasoning levels. OpenCode can use it through an OpenAI-compatible provider.

This is the OpenCode + StepFun setup. For OpenCode’s general provider model, see OpenCode custom providers.

Step 1: Install OpenCode and get a StepFun key

npm install -g opencode-ai

Create a StepFun API key. Native Windows and WSL both work with OpenCode. See install OpenCode on Windows with WSL when the project uses Linux tooling.

Step 2: Add the StepFun provider

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "stepfun": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "StepFun",
      "options": {
        "baseURL": "https://api.stepfun.com/v1",
        "apiKey": "{env:STEPFUN_API_KEY}"
      },
      "models": {
        "step-3.7-flash": { "name": "Step 3.7 Flash" },
        "step-3.5-flash": { "name": "Step 3.5 Flash" }
      }
    }
  },
  "model": "stepfun/step-3.7-flash"
}

Export the key:

export STEPFUN_API_KEY="your-stepfun-key"

Confirm the exact base URL and model IDs on StepFun’s docs.

Step 3: Run it

opencode

The default is stepfun/step-3.7-flash. For the lowest cost on simpler tasks, switch to step-3.5-flash.

StepFun models (verify rates on StepFun)

step-3.7-flash Tunable reasoning; multimodal; very cheap
step-3.5-flash Even cheaper; great for simple tasks

Pricing

Requesty’s live catalog lists Step 3.7 Flash at $0.20 input and $1.15 output per million tokens before its displayed discount. Check StepFun’s account console for the direct rate attached to your plan.

Troubleshooting

  • If the provider is missing, make sure the stepfun key matches the model prefix.
  • For authentication errors, confirm that STEPFUN_API_KEY is set in the launching shell.
  • If the model is rejected, verify its ID in StepFun’s live model list.
  • For format errors, confirm that the OpenAI-compatible endpoint is selected.

StepFun + OpenCode checklist

  • OpenCode installed
  • StepFun API key created and exported
  • Provider block with StepFun's OpenAI base URL
  • Step 3.7/3.5 Flash IDs listed; default set
  • Launched with opencode

Verify the provider

Restart OpenCode and ask it to read one file without editing it. Confirm the active provider and model before approving commands.

For the broader budget picture, see cheapest AI coding API in 2026.

Frequently asked questions

What is StepFun Step 3.7 Flash?

It is a 198B mixture-of-experts vision-language model with about 11B active parameters per token. It accepts text and images and supports low, medium, and high reasoning levels.

How cheap is it?

Requesty's live catalog lists Step 3.7 Flash at $0.20 input and $1.15 output per million tokens before any gateway discount. Direct-provider prices can differ.

How do I add StepFun to OpenCode?

Add a custom provider in opencode.json using @ai-sdk/openai-compatible with StepFun's OpenAI-compatible base URL and your API key, then list the Step model ID and set it as default.

Is it good for coding?

It's a capable, cheap reasoning model that works for everyday coding, and its multimodal ability is a bonus if you feed it images. For the hardest tasks, a dedicated coding flagship may edge it, but for the price it's strong.

Does it run on Windows?

Yes, and cleanly in WSL. The OpenCode config is identical either way; WSL just gives the smoother terminal.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.