SwiftRelay

← All sprint notes

How to Set Up MiniMax M3 API Proxy on SwiftRelay

Model splitsEN

Copy three lines and run MiniMax M3

Getting MiniMax M3 running on SwiftRelay should feel like a clean first lap: sign up, copy three lines, run. SwiftRelay is a pay-per-token API relay, so there is no monthly fee and nothing to subscribe to. Top up a balance and each call deducts only what it used.

Start on the SwiftRelay website and create your account. New sign-ups receive $0.22 in gift credit, which lands on your balance and can be used on your first MiniMax M3 calls straight away.

Next, open your dashboard and create an API key. Every key you use with SwiftRelay begins with swft_. You can keep up to 20 live API keys per account, which is handy if you want a separate key per project or per machine.

Then paste these three lines into your OpenAI-compatible setup, and you are ready to send a request:

Base URL: https://api.fastapirelay.com/v1

API key: your swft_ key

Model: MiniMax-M3

That is the whole setup: three lines, one model name, no infrastructure to provision and no server to configure. Because billing is per token, you can send a single test prompt first, check the usage panel, and only then start a larger job. SwiftRelay lists the tokens and the cost for each call, so the first run is easy to audit.

When the model name comes back as not found

One of the most common errors is a 404 that says the model does not exist or is not available. On SwiftRelay, that usually means the model identifier in your request does not match the one shown on the pricing page. For MiniMax M3, the identifier is MiniMax-M3, capitalised exactly as written.

Check three things in order. First, confirm the base URL ends with /v1. Second, confirm the model field contains MiniMax-M3 with no trailing space and no version suffix. Third, confirm you are not pointing a native-only route at an OpenAI-compatible model.

  • The model field says MiniMax-M3, spelled exactly as it appears on the SwiftRelay pricing page.
  • The request goes to https://api.fastapirelay.com/v1 and not to a different path.
  • The request uses the OpenAI-compatible format that your client expects.

If the model string is right and the path is right but the error persists, copy the request into a minimal test and try again before changing anything else. A stray character in a quoted key or a stale configuration file is often the real pit stop.

When the API key is rejected with a 401

A 401 Unauthorized or an invalid_api_key message means the request reached SwiftRelay but the credential did not pass. The fix is usually small and fast.

  • Copy the key again from the dashboard instead of retyping it. Keys start with swft_.
  • Remove any spaces, line breaks, or quotation marks that your editor may have added.
  • Make sure the key is set as the API key for the OpenAI-compatible endpoint, and not left as a placeholder such as your-key-here.
  • Check whether the key was deleted or rotated. Create a fresh one in the dashboard if you are unsure.

SwiftRelay supports up to 20 live API keys per account, so creating a replacement is quick and does not mean rebuilding your project. Update the environment variable, restart the client, and run the same test again. If the key works in one place and fails in another, the difference is almost always which configuration file the tool actually reads.

Also confirm you are pointing at the SwiftRelay API host, https://api.fastapirelay.com, and not a leftover host from another tool. A clean first run starts with a single, verified key.

When a native protocol rejects an OpenAI-compatible model

Another frequent error is a 400 invalid request that complains about the request body or the protocol. MiniMax M3 is reached through the OpenAI-compatible endpoint at https://api.fastapirelay.com/v1, so the client must be speaking that format.

If your client is built around a different native protocol, it will not accept MiniMax M3, no matter how correct the key is. In that case, switch the client to its OpenAI-compatible mode, or use a client that already supports that format. SwiftRelay keeps the routing rules simple: match the client to the model family, and the rest of the setup stays the same.

The same rule applies in reverse. Some model families on SwiftRelay are only reachable through their own native protocol, so an OpenAI-compatible request will not reach them. Read the pairing note for your chosen model before you spend time on credentials.

When in doubt, run one minimal request, read the returned error text carefully, and change one setting at a time. That loop takes minutes and saves hours of blind troubleshooting.

When the balance and the cost per call look wrong

Usage in the SwiftRelay dashboard lists the tokens and the cost for each call, so you can compare a run against your expectation line by line. MiniMax M3 is priced per 1M tokens on the SwiftRelay pricing page: input $0.1208, output $0.4792, and cache read $0.0236.

Example: say you send 200,000 input tokens and receive 50,000 output tokens in one day. The input portion is 0.2 of $0.1208, or $0.02416. The output portion is 0.05 of $0.4792, or $0.02396. Together that is $0.04812 for the day. This is an example, not a quotation for a specific workload.

Cache reads are listed separately at $0.0236 per 1M tokens, so repeated context reads are visible in the same usage view rather than hidden inside one lump sum.

Top-up options are $1.39, $6.94, $13.89, $27.78, $69.44, and $138.89. Pick the amount that fits the way you work; SwiftRelay does not sell subscriptions, so unused balance simply sits there until you use it. Each call deducts only what it used, which is a different rhythm from keeping your own subscription or official account open.

If you top up and change your mind, unused credit can be refunded within 11 days of the top-up, minus what was used and the payment fee. That window is short, so keep it in mind if you are still testing a new setup.

When you want to share SwiftRelay or ask for help

Invite a colleague through your referral link and you earn 14% of each top-up by the person you invited, plus 3% from the people they invite in turn. Rewards can be withdrawn once they reach $4.86, or moved straight into your SwiftRelay balance.

For support, open Messages in the SwiftRelay dashboard. Support is handled there, and login is required; there is no support email to hunt for. That means the conversation stays attached to your account and your usage history.

A good first question includes your model name, the exact error text, and the client you are using. With those three details, the answer is usually one round trip away.

Ready for a clean first run? Sign up for SwiftRelay, top up your balance, and put MiniMax M3 to work in minutes.

Keep reading

Back for another lap?Log in