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.

View as Markdown

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.

Your editorone workspace, ws_…
Testmk_test_…
Building and QA. Localhost is allowed and free.
Copy to Live
Livemk_live_…
Your real users, on your production domains.
Each environment has its own
API keysAllowed domainsWebhooksTemplatesLook and FeaturesEnd users and their designsSessions and renders
Shared by both
Members and rolesBrand kitLibrary picksPlan and billing
One editor, two environments. Build in Test, then copy it to Live.
TestLive
Keysmk_test_…mk_live_…
ForBuilding, QA and demosYour real users
Domainslocalhost, plus your staging or preview domainsYour production domains, https only
Sessions on localhostFree, up to your plan's fair useRefused: use a Test key
Sessions on httpsCount toward your plan's sessionsCount toward your plan's sessions
Render APIFree, watermarked TEST, kept 7 days, up to 500 a day (50 videos)Uses API credits
AIUses AI creditsUses AI credits
In the editorA small Test badge in a cornerAs 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 ownShared by the editor
API keysBrand kit
Allowed domainsLibrary picks
Webhooks and signing secretsMembers and roles
TemplatesPlan, 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.