Skip to content
Dashboard

MiniMax M3 and M2.7 are free on AI Gateway

MiniMax M3 and M2.7 are free on AI Gateway via GMI Cloud through Sunday, September 6.

Use minimax/minimax-m3-free or minimax/minimax-m2.7-free to route requests to GMI Cloud. These model IDs will return an error after the free period ends.

import { streamText } from 'ai';
const result = streamText({
model: 'minimax/minimax-m3-free',
prompt: 'Summarize the incident report.',
});

Stream a response from MiniMax M3 through the free GMI Cloud route.

To keep requests working after the free period, use the standard model ID without the -free suffix and place GMI Cloud first in the provider order:

const result = streamText({
model: 'minimax/minimax-m3',
prompt: 'Summarize the incident report.',
providerOptions: {
gateway: {
order: ['gmicloud'],
},
},
});

Prefer GMI Cloud for MiniMax M3 while allowing provider fallback.

AI Gateway tries GMI Cloud first and can fall back to another provider if GMI Cloud can't serve the request. This lets the same code continue working after the free period. Outside the free GMI Cloud route, requests are billed at the serving provider's rate. Both routing options work across all AI Gateway APIs.

To use a free MiniMax model with a coding agent, run vercel ai-gateway coding-agents setup, then select one of the -free model IDs in your agent.

Try MiniMax M3 and M2.7 in the gateway playground.

Reference Architecture

Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.

  • Agent stack: Build and operate agents with models, tools, and durable workflows.
  • Web applications: Choose rendering, data, authentication, and caching approaches.
  • Backends: Choose a runtime, connect services, and run background work.

Browse all stacks

Build with prompts

Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.