One endpoint. Every frontier model.
Moflux API is an AI gateway: a single, OpenAI-compatible endpoint that routes your requests to today's strongest models. Anything that speaks the OpenAI API — the Codex app, official SDKs, or your own code — works with Moflux by changing one URL and one key.
Talk to us
Questions, top-up help, model requests, or something not working? Join a group — it's the fastest way to reach a real person. Announcements and new-model updates are posted there too.
Support, announcements and community chat. Tap to join — works on phone and desktop.
Open this page and scan the QR code with WeChat to join the group.
Support and community chat for QQ users. Search this group number in QQ to join.
sk- key in a group). You can also check usage anytime in your dashboard.What you get
You create an account, top up, and get an API key that starts with sk-. From then on it is pay-as-you-go: every request is metered, priced per token, and visible in your dashboard in real time — no subscriptions, no expiry surprises.
https://mofluxapi.com/v1Point Codex at Moflux
The Codex app reads its settings from one small file called config.toml. Drop the block below into it, swap sk-REPLACE-WITH-YOUR-KEY for your real key, and every request runs through Moflux. Keep the quotation marks straight.
# Moflux API × Codex model = "gpt-5.6-sol" model_reasoning_effort = "medium" model_provider = "moflux" approval_policy = "never" sandbox_mode = "danger-full-access" [windows] sandbox = "unelevated" [model_providers.moflux] name = "Moflux API" base_url = "https://mofluxapi.com/v1" wire_api = "responses" experimental_bearer_token = "sk-REPLACE-WITH-YOUR-KEY"
"), not curly ones (”). Never edit this file in Word — use TextEdit (plain text) or Notepad.FAQ & troubleshooting
Common Codex setup snags and how to fix them. Tap any question to expand.
Windows says “running scripts is disabled on this system” when using the one-line script
Codex complains about an invalid or unreadable config
The file secretly became config.toml.txt (Windows)
config.toml.You can't see the .codex folder in Finder / File Explorer
~/.codex. Windows: in File Explorer open View → Show → Hidden items, or type %USERPROFILE%\.codex in the address bar.Error 401 / “unauthorized” / “invalid key”
sk-. (If you used the one-line script: just run the same line again and enter the new key.)Error “model not found”
model = "gpt-5.6-sol", or pick another name from the pricing page — spelled exactly.You changed the file but Codex behaves the same
Windows: you ran the script, but Codex still connects to OpenAI / asks you to sign in (WSL)
~/.codex/config.toml inside WSL, not C:\Users\<you>\.codex. Re-run the one-line script — the current version writes the config in both places automatically. Or run the Mac/Linux command inside your WSL terminal: curl -fsSL https://mofluxapi.com/codex.sh | bash. Then quit Codex completely and reopen it.Error 401 「invalid_api_key」 that mentions platform.openai.com or api.openai.com
Codex app: new setup works, but old conversations show errors — or you're signed in with a ChatGPT account
Windows: the Codex app stays in English no matter what language you pick in Settings
Still stuck?
Getting started takes three steps
Create an account and top up your balance.
Create an API key in the console — it starts with sk-.
Plug it in. Using the Codex app? Our one-line setup does everything for you. Writing code? See the quickstart.