FreshRouter
PricingDocs
Log inGet API key

Get started

  • Quick start
  • Base URL and API key

Tools

  • Claude Code
  • Codex
  • Pi
  • Grok Build
  • Antigravity CLI
  • Cursor
  • Cline, Roo Code, Kilo Code
  • MiniMax Code
  • Open WebUI
  • LibreChat
  • Chatbox
  • n8n

Reference

  • SDKs
  • API reference
  • Prompt caching
  • Tool calling and images
  • Limits
  • Errors

Get started

  • Quick start
  • Base URL and API key

Tools

  • Claude Code
  • Codex
  • Pi
  • Grok Build
  • Antigravity CLI
  • Cursor
  • Cline, Roo Code, Kilo Code
  • MiniMax Code
  • Open WebUI
  • LibreChat
  • Chatbox
  • n8n

Reference

  • SDKs
  • API reference
  • Prompt caching
  • Tool calling and images
  • Limits
  • Errors
FreshRouter

One key for every top AI model. Pay only for what you use.

Product

  • Pricing
  • Models
  • OpenRouter alternative
  • Console

Resources

  • Quick start
  • Documentation
  • Blog
  • support@freshrouter.com

Legal

  • Terms of Service
  • Privacy Policy

© 2026 FreshRouter. All rights reserved.

MiniMax Code

Add FreshRouter to MiniMax Code's settings and use MiniMax M4 or any other model.

MiniMax Code is MiniMax's coding agent, an app for macOS and Windows. FreshRouter goes into its settings as your own provider. Then MiniMax M4, and any other model on your Models page, runs on your FreshRouter balance.

Add FreshRouter in the app

  1. Open the settings: on a Mac, MiniMax Code → Settings in the menu bar.
  2. Go to Usage & model → Custom model. Typing custom into the settings search finds it too.
  3. Click + Add provider. In Provider, pick Others (type Other if the list doesn't show it).
  4. Fill in the provider and the model with the values below, and click Save.
  5. Pick MiniMax-M4 in the model menu next to the message box.

The provider:

FieldValue
API formatOpenAI Completions
Base URLhttps://freshrouter.com/v1
API keyYour FreshRouter key

The model, under Model 01:

FieldValue
Model nameMiniMax-M4
Context window1000000
Max tokens64000
Supported attachmentsImages
Leave Custom headers and Effort empty.

More models

Click + Add under the model for another one. Any ID from your Models page works, such as gemini-4-neon or gpt-6.1-sol. Each model's context window and output limit are in the model catalog, /models.json on this site.

Claude models

Claude models are cached only in Anthropic's format, which makes long sessions much cheaper. For them, add FreshRouter a second time with API format set to Anthropic Messages, the same address, https://freshrouter.com/v1, and the same key. More on the Prompt caching page.

PreviousCline, Roo Code, Kilo CodeNextOpen WebUI