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 an API key against /api/v1/generate (pass prompt or messages, optional agentId); in-app endpoints also accept session-cookie auth:
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) - 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
A packaged skill (meowa-skills style) is not published yet. In the meantime any coding agent can call the public API directly with your key:
# 让编码 Agent 直接产资产:把下面这段喂给它(把 mk_... 换成你的 API Key)
curl -X POST https://makegame.157215725.workers.dev/api/v1/generate \
-H 'authorization: Bearer mk_...' -H 'content-type: application/json' \
-d '{"agentId":"pixel","prompt":"32x32 pixel sword icon","transparent":true}'