REST API
Generate game assets from your own app, game server or pipeline.
Included with Pro and Studio. See what a generation costs
Set up in 3 steps
Subscribe to a paid plan
API, MCP and CLI access is included on Pro and Studio.
Get Your API Key
Log in at app.ludo.ai, open API Keys from the sidebar or the user menu, name your key and click Create key. Copy it right away: it is shown only once.
Call the API
Send requests to https://api.ludo.ai/api/ with the Authorization: ApiKey YOUR_API_KEY header.
REST API
Build custom integrations with Ludo.ai using our comprehensive REST API. Generate game assets, animate sprites programmatically, and integrate AI-powered asset creation into your pipeline. Full API reference or the OpenAPI spec.
request_id returns the existing job instead of charging twiceX-Ludo-Job-Id header, so a dropped connection never loses a generationAsync Generation
Generations run as jobs by default, so your scripts never have to hold a connection open:
- Send a generation request as usual and get an instant
202with a job id. - Fetch the result with
GET /assets/jobs/{id}?wait=30: the call waits up to 30 seconds and returns the moment your generation finishes. - List recent jobs with
GET /assets/jobs, or cancel a queued one withDELETE /assets/jobs/{id}(credits refunded).
"async": false to a request body, but new integrations should use jobs.Generation History
GET /assets/generations lists everything you have generated: filter by type, search by text, and choose the source (api, web, or all), paginated newest first.
Buying Credits
When an account runs out, the API can buy a top-up at the plan's top-up price, with a person approving every payment: GET /assets/topup/quote prices it, POST /assets/topup/link returns a Stripe payment page, and POST /assets/topup/pay takes a one-time Link payment token. None of them charges the card saved on the account.
POST /assets/topup/pay with only {"credits": 1000} answers 402 with a challenge for the price, which link-cli mpp pay pays once the account holder approves it in Link (for US and Canadian customers).Build with Ludo from your own code
Plug game-asset generation into your app, server or pipeline.