Test and Live
Every editor has a Test and a Live environment, on every plan, free trial included. Build in Test, then Copy to Live.
Every editor has two environments, Test and Live, on every plan. They never share data: each has its own keys, templates, end users, allowed domains and webhooks. It works like Stripe's test mode: the key decides the environment, and your code stays the same.
ws_…mk_test_…mk_live_…| Test | Live | |
|---|---|---|
| Keys | mk_test_… | mk_live_… |
| For | Building, QA and demos | Your real users |
| Domains | localhost, plus your staging or preview domains | Your production domains, https only |
| Sessions on localhost | Free, up to your plan's fair use | Refused: use a Test key |
| Sessions on https | Count toward your plan's sessions | Count toward your plan's sessions |
| Render API | Free, watermarked TEST, kept 7 days, up to 500 a day (50 videos) | Uses API credits |
| AI | Uses AI credits | Uses AI credits |
| In the editor | A small Test badge in a corner | As your plan sets |
Older mk_dev_…, mk_staging_… and mk_sandbox_… keys keep working as Test keys.
What each environment holds
| Each environment has its own | Shared by the editor |
|---|---|
| API keys | Brand kit |
| Allowed domains | Library picks |
| Webhooks and signing secrets | Members and roles |
| Templates | Plan, billing, add-ons and storage |
| Look and Features | |
| End users and their designs | |
| Sessions, renders and the API log | |
| AI assistants for your users, and their connections |
Sessions, API credits and AI credits are one pool for the editor: usage in Test on an https domain and usage in Live draw on the same numbers, shown per environment in the dashboard.
Free localhost sessions
Sessions on http://localhost, 127.0.0.1 or *.localhost with a Test key are free, up to your plan's fair-use cap a month (limits.localhost_sessions in Get the workspace). Past the cap, new localhost sessions answer 402 localhost_sessions_exhausted until the next period; use your staging domain meanwhile. Live keys never open on localhost, so a production app can't run on free sessions.
Copy to Live
When Test looks right, Copy to Live moves your templates, look and Features to Live in one step. It shows what's new, changed or the same first. A template edited in Live since it was last copied is a conflict: it stays as it is unless you choose to replace it. Changed templates get a new version, so their history is kept. A copy can be undone for 7 days; templates edited after it keep their edits.
Never copied: keys, secrets, allowed domains, webhooks, AI assistant settings, end users and their designs, and usage.
An AI app your team connects through MCP works in Test unless you allow it Live changes.
Name templates by their key in your code: the key is the same in Test and Live, so going live means swapping the key on your server and adding your production domain. Nothing else changes.
Without a plan
Every plan starts with a 15-day free trial, with the plan's features and capped sessions and credits until the first payment. An editor with no plan (before its trial starts, or after a plan or trial ended) answers 402 plan_required (with a reason) on POST /v1/sessions. After a failed renewal, sessions keep working for two days while Stripe retries the card.