If you’re an agent, get a key for your user via auth.md, then install the
skill + MCP and follow the Agent quickstart.
✦ Integrate Alakazam into my app
Hand this to your coding agent. It briefs itself on the API, installs the skill + MCP,
scans your repo for integration spots, and wires Alakazam in.Copy the prompt → · ▶ Open in Cursor
Get an API key
1
Sign in to the dashboard
Open the developer dashboard and
sign in with your Alakazam account.
2
Create an app
An app is your project. Every world, session, and usage record is
attributed to it. Create one and give it a name.
3
Mint a secret key
From your app, generate a secret key (
sk_test_…). It’s shown once, so
copy it now and store it securely. A test key runs against a free
sandbox (mocked responses, no GPU spend), good for wiring up.
Switch to a sk_live_… key when you want real worlds.Create your first world
To verify your setup, we recommend creating a world from only a text premise. Send aPOST to /v1/worlds with your secret key:
The response above is what a live key returns. A test key (
sk_test_…)
returns the same shape but with "mock": true, a placeholder cover, and no
slug (test worlds are private). It’s a mocked sandbox response with no GPU spend.
See Testing before you rely on the values.A live creation reserves one generation against your daily quota (test-mode
creates are free and uncapped). You can check what’s left any time with
GET /v1/usage.Embed it
A world is meant to be played. Embedding is two steps: mint a session token on your server, then boot the world in the browser with the SDK.1
Mint a session token (server)
Call
/v1/sessions/token with your secret key. Bind it to the player and to
the origin you’ll embed on.2
Boot the world (browser)
Install the SDK and mount the world. Pass the session token, never your
secret key.
Next steps
World generation examples
Create from a premise, an image URL, or an uploaded frame.
Embedding
Theming, events, token refresh, and cross-origin security.

