API & developer integration
Bring MakeGame asset generation into your workflow
API Keys
Call the public API with Authorization: Bearer mk_… — each call deducts credits. The plaintext key is shown only once, save it immediately.
REST endpoints
Use your API key with /api/v1/generate for one-off images, or run a **workflow** you saved on the canvas by id (list → run → poll). Session-cookie endpoints work too:
curl -X POST https://makegame.ai/api/v1/generate \
-H 'content-type: application/json' \
-H 'authorization: Bearer mk_...' \
-d '{
"agentId": "pixel",
"prompt": "a pixel treasure chest"
}'- POST
/api/v1/generatePublic generation (API-key auth) - GET
/api/v1/workflowsList your saved workflows (with overridable nodes) - POST
/api/v1/workflows/:id/runRun a workflow by id (optionally override node prompts) - GET
/api/v1/runs/:runIdPoll a run; each call advances it by one node - POST
/api/v1/videoSubmit a video job (async, 180 credits on submit) - GET
/api/v1/video/:idPoll a video job (auto-refunded on failure) - POST
/api/ai/streamStreaming generation (SSE, session auth) - POST
/api/ai/generateOne-shot generation (session auth) - GET
/api/ai/agentsList available agents
Use it from AI coding agents
One command installs MakeGame asset generation into Claude Code, Cursor, Codex, Windsurf and 70+ other agents (via npx skills). Give it your API key and it can generate assets straight into your project:
# 一键装进你的编码 Agent(Claude Code / Cursor / Codex / Windsurf …)
npx skills add https://makegame.ai/skill.zip --skill makegame-game-assets
# 然后把 API Key 给它,之后直接说「生成一个 32x32 的像素宝箱图标」即可
export MAKEGAME_API_KEY=mk_...Single-file source works too: npx skills add https://makegame.ai/skills/game-assets/SKILL.md