Ludo.ai Documentation API
Read and search Ludo.ai's own feature guides programmatically — GET /docs and GET /docs/search.
Read and search Ludo.ai's own feature guides programmatically — GET /docs and GET /docs/search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ludo-ai:ludo-ai-documentation-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: 0.9.10
title: Ludo.ai Documentation API
description: "The Ludo.ai API enables you to generate game assets programmatically, including images, videos, 3D models, spritesheets, and audio.\n\n# Getting Started\n\n## Base URL\nAll API requests should be made to: `https://api.ludo.ai/api`\n\n## Authentication\nInclude your API key in the `Authorization` header:\n```\nAuthorization: ApiKey YOUR_API_KEY\n```\n\n## Models\nPick from the current models for any new integration:\n\n- `hydra` (Hydra) - Best motion and prompt adherence.\n- `griffin-hd` (Griffin) - Cinematic videos in any style, with audio, 768p.\n- `ignis` (Ignis) - Cheapest alternative, for simple body shapes and simple actions.\n- `ignis-pixel` (Ignis Pixel) - Best for low-res pixel art animations\n\nWhich models each action accepts (in preference order):\n\n- sprite animation: `hydra`, `griffin-hd`, `ignis`, `ignis-pixel`\n- motion transfer: `hydra`, `ignis`, `ignis-pixel`\n- spritesheet editing: `hydra`, `griffin-hd`\n- new view: `hydra`\n- video generation: `griffin-hd`, `ignis`\n- references to video: `griffin-hd`\n- video editing: `griffin-hd`\n\n**Legacy models** are still accepted so existing integrations keep working, but they are scheduled for removal - do not use them for new work:\n\n- `hydra-plus` (Hydra+) - legacy since 2026-11-02\n- `blitz` (Blitz) - legacy since 2026-09-17\n- `eagle` (Eagle) - legacy since 2026-09-17\n- `eagle-audio` (Eagle with Audio) - legacy since 2026-09-17\n- `forge` (Forge) - legacy since 2026-11-16\n- `forge-pixel` (Forge Pixel) - legacy since 2026-11-16\n- `tango` (Tango) - legacy since 2026-09-17\n\nEach generation endpoint lists its own models, rates and durations in its `model` parameter description.\n\n## Timeout\nGeneration requests return `202` immediately (see below) and hold no connection open while the work runs. If you opt into a synchronous response with `async: false`, include a generous timeout (at least 20 minutes): the call is held for at most 15 minutes, and past that you receive `202` with the job instead of an error and resume with `GET /assets/jobs/{id}`.\n\n## Documentation\n`GET /docs/search?query=...` searches Ludo's feature guides with a plain-language\nquestion and returns the few sections that answer it (each names a `doc` and\n`section`). `GET /docs` lists every document and section, and `GET /docs?doc=...`\nreads one in full. Both are free (no credits) and rate-limited: 60 requests per 5 minutes\nand 1000 per day for search, 150 per 5 minutes for reading. Read the relevant guide before\nyour first call to a generator: it explains modes, models, margins and known limitations.\n\n## Async Usage\nGeneration endpoints are asynchronous: you submit the work, get a job id back, and\ncollect the result when it is ready. Nothing is held open while a GPU runs.\n\n1. **Submit** the generation. The API responds immediately with\n `202 { id, status: \"queued\" }`.\n2. **Poll** `GET /assets/jobs/{id}` until `status` is `succeeded` or `failed`.\n Non-terminal responses carry `poll_after_ms` - wait at least that long before the\n next poll. Better still, long-poll: `GET /assets/jobs/{id}?wait=30` holds the\n request up to 30 s (max 60) and returns the moment the job finishes.\n3. **Read** `result` - it is exactly the response documented for that operation. On a\n failure, read `error` instead.\n\n`GET /assets/jobs` lists your recent jobs, and `DELETE /assets/jobs/{id}` cancels one\nthat has not finished yet (credits are refunded).\n\nJob-status endpoints are rate-limited to 150 requests per 5 minutes per API key; a\n`429` carries `Retry-After`. Each account may have up to 50 generations queued or\nrunning at once via the API; a request beyond that returns `429` (code\n`PENDING_JOBS_LIMIT`) - wait for jobs to finish, then submit again.\n\n### Synchronous responses (deprecated)\nPassing `async: false` in the payload opts into a synchronous response: the call blocks\nuntil the result is ready and returns it as the response body. This is deprecated, but\nthe opt-out is permanent and stays supported.\n\nSynchronous calls run on the same queue: the response carries an `X-Ludo-Job-Id`\nheader, and if the job is still running after 15 minutes you receive `202` with the job\ninstead of an error - resume with `GET /assets/jobs/{id}`.\n\nThe legacy `request_id` + `GET /assets/{type}/results` flow keeps working unchanged.\n\n### Legacy results endpoints\nEach asset type still has a results endpoint:\n- `GET /assets/images/results` - images\n- `GET /assets/sprites/results` - spritesheets\n- `GET /assets/videos/results` - videos\n- `GET /assets/audio/results` - audio\n- `GET /assets/3d-models/results` - 3D models\n\nResults are available for 7 days and return the 100 most recent API-generated assets. The `request_id` query parameter is optional - omit it to list all recent results.\n\n## Directional Sprites\nDirectional Sprites render one 3D model as sprites seen from up to 8 directions that line up. The calls go in this order:\n1. *(Optional)* `POST /assets/3d-model/image` (create3DModelImage): a character image from a `prompt`, or your own `image` redrawn as a 3D render (the prompt then says what to change). Call again for another try.\n2. `POST /assets/3d-model` (create3DModel) with that image and `rig: true`, for a rigged GLB. A model you already have can be rigged with `POST /assets/3d-model/rig` (rigModel).\n *(Optional)* accessories - a sword, a gun, a shield, a helmet, a backpack: an item GLB (create3DModel, no rig) held by a bone of the model. `POST /assets/sprite/directional-accessory-fit` (fitDirectionalAccessory, free) fits one automatically for its `kind` and answers previews, numeric `checks` and a `placement`; call it again with `size`, `move` and `turn` (relative to the automatic fit) until it looks right. Then `POST /assets/sprite/directional-accessories` (attachDirectionalAccessories, free) with every item's placement: its `model_url` is the model holding them, to pass as `model` below.\n3. *(Optional)* an animation, at most one: a `preset_id` from `GET /assets/sprite/animation-presets` (listAnimationPresets), an `animation_id` from `POST /assets/animation` (createAnimation, a move generated from a text prompt) or `GET /assets/animations` (listMyAnimations), or an `animation_url` made for this model by animate3DModelPreset or animate3DModel. With none, the sprites are a still pose.\n4. `GET /assets/sprite/directional-styles` (listDirectionalSpriteStyles, free): pick a `style_id` and its `style_params`.\n5. `POST /assets/sprite/directional-preview` (previewDirectionalSprites, free and synchronous): check the look from the directions you want. One preview at a time; a newer one cancels yours.\n6. `POST /assets/sprite/directional` (createDirectionalSprites) for one spritesheet per direction, or `POST /assets/sprite/directional-stills` (createDirectionalStills) for one large image per direction. Pass the GLB as `model`, the animation, the style and up to 8 `directions`.\n\nRead the full guide with `GET /docs?doc=directional-sprites`.\n\n## Asset URL Expiration\nAll generated asset URLs (images, spritesheets, videos, audio, 3D models) are temporary and expire after **7 days**. If you need to keep an asset, download it before it expires.\n\n## Request Format\n- Use `Content-Type: application/json` for all requests\n- All responses are returned in JSON format\n\n## Credits\nEach API call consumes credits from your account. The credit cost varies by endpoint and is documented in each endpoint's description.\n\n> **Note:** All API requests consume credits, even if your subscription includes unlimited credits for the web application. Check your account dashboard for your current API credit balance.\n"
x-logo:
url: /static/logo-small.png
altText: Logo
x-model-lineup: 'Current models: hydra (Hydra) - Best motion and prompt adherence. griffin-hd (Griffin) - Cinematic videos in any style, with audio, 768p. ignis (Ignis) - Cheapest alternative, for simple body shapes and simple actions. ignis-pixel (Ignis Pixel) - Best for low-res pixel art animations. Per action - sprite animation: hydra, griffin-hd, ignis, ignis-pixel; motion transfer: hydra, ignis, ignis-pixel; spritesheet editing: hydra, griffin-hd; new view: hydra; video generation: griffin-hd, ignis; references to video: griffin-hd; video editing: griffin-hd. LEGACY models, still accepted but scheduled for removal - do not use them for new work: hydra-plus, blitz, eagle, eagle-audio, forge, forge-pixel, tango.'
servers:
- url: /api
tags:
- name: Documentation
paths:
/docs:
get:
description: 'Browse or read Ludo''s own documentation in full - how to choose a sprite animation mode, when to use Generate Before / Generate After, how margins behave, which model suits a job, and each generator''s known limitations. To answer a specific question, call searchDocs first: it returns just the sections that match. Use getDocs to see what documentation exists, or to read a whole document or named sections. This is the same documentation the Ludo web app shows its users, so it occasionally describes buttons rather than parameters; the substance applies to the API and MCP surfaces just the same. To browse, call it with NO parameters to get a table of contents - every document with its id, label and section titles, and no bodies - then call it again with `doc` (and optionally `sections`) to read only what you need. Fetching a whole document can return tens of thousands of characters, so prefer naming the sections, using titles copied from the table of contents. Section titles match ignoring case, spacing and punctuation: when only some requested titles exist you receive those sections plus `unmatched_sections` and `available_sections`, and when none exist (or `doc` is unknown) the call returns 400 listing the valid values so you can retry once. This is a free discovery endpoint: it does not charge credits and does not queue a job. Requires an API key (user scope).'
tags:
- Documentation
operationId: getDocs
security:
- ApiKey: []
parameters:
- name: doc
in: query
description: Which document to read, by id (the table of contents returned by the no-parameter call lists them). Omit to receive the table of contents.
required: false
schema:
type: string
enum:
- assistant
- game-ideator
- image-generator
- project
- account
- faq
- 3d-generator
- video-generator
- sprite-generator
- audio-generator
- api-mcp
- game-asset-generation
- directional-sprites
- asset-toolbox
- name: sections
in: query
description: Section titles to return from `doc`, copied from the table of contents (an array of titles; over plain REST, a comma-separated string, where a title that itself contains a comma is still matched whole). Matching ignores case, spacing and punctuation; titles that match nothing are reported back in `unmatched_sections` rather than guessed at. Only valid together with `doc`. Omit to return every section of the document.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentationResponse'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Documentation temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X GET \"https://api.ludo.ai/api/docs\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/docs\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.ludo.ai/api/docs\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
/docs/search:
get:
description: 'Search Ludo''s own documentation with a plain-language question and get back only the few sections that answer it - the fastest way to learn how a feature is meant to be used before you generate with it (how to pick a sprite animation mode or model, how margins behave, what something costs, known limitations). Start here rather than reading whole documents. Each result carries `doc` and `section`, which you can pass straight to getDocs to re-read that section, and the section''s full markdown `content`. Results are best first; weak matches are left out, so an empty `results` list means the documentation does not cover the question - rephrase it, or call getDocs with no parameters to browse the table of contents. This is the same documentation the Ludo web app shows its users, so it occasionally describes buttons rather than parameters; the substance applies to the API and MCP surfaces just the same. Returns up to `n` sections (default 3, max 10). If it answers 503 the search backend is briefly unavailable: call getDocs instead rather than retrying in a loop. This is a free discovery endpoint: it does not charge credits and does not queue a job. Requires an API key (user scope).'
tags:
- Documentation
operationId: searchDocs
security:
- ApiKey: []
parameters:
- name: query
in: query
description: What you want to know, in plain language, e.g. "how do I keep a sprite animation's colors consistent" or "what does a 3D model cost".
required: true
example: how do I keep a sprite animation's colors consistent
schema:
type: string
minLength: 1
maxLength: 500
- name: n
in: query
description: Maximum number of sections to return. Defaults to 3.
required: false
schema:
type: integer
format: int32
minimum: 1
maximum: 10
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentationSearchResponse'
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Documentation search temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl -X GET \"https://api.ludo.ai/api/docs/search?query=how%20do%20I%20keep%20a%20sprite%20animation's%20colors%20consistent\" \\\n -H \"Authorization: ApiKey YOUR_API_KEY\""
- lang: JavaScript
label: JavaScript
source: "const response = await fetch(\"https://api.ludo.ai/api/docs/search?query=how%20do%20I%20keep%20a%20sprite%20animation's%20colors%20consistent\", {\n headers: {\n \"Authorization\": \"ApiKey YOUR_API_KEY\"\n }\n});\n\nconst data = await response.json();\nconsole.log(data);"
- lang: Python
label: Python
source: "import requests\n\nresponse = requests.get(\n \"https://api.ludo.ai/api/docs/search?query=how%20do%20I%20keep%20a%20sprite%20animation's%20colors%20consistent\",\n headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
components:
schemas:
DocumentationSection:
type: object
properties:
title:
type: string
content:
type: string
CurrentModelsByAction:
type: object
description: Per credit action, the current model codenames in preference order. Pick from these for new work.
properties:
ANIMATE_SPRITE:
type: array
items:
type: string
TRANSFER_SPRITE_MOTION:
type: array
items:
type: string
EDIT_SPRITESHEET:
type: array
items:
type: string
NEW_VIEW_SPRITESHEET:
type: array
items:
type: string
GENERATE_VIDEO:
type: array
items:
type: string
REFERENCES_TO_VIDEO:
type: array
items:
type: string
VIDEO_EDIT:
type: array
items:
type: string
DocumentationEntry:
type: object
properties:
id:
type: string
description: Stable document id, e.g. sprite-generator - pass it back as the `doc` parameter
label:
type: string
description: Human-readable document name, e.g. Sprite Generator
sections:
type: array
items:
$ref: '#/components/schemas/DocumentationSection'
LegacyModel:
type: object
properties:
codename:
type: string
name:
type: string
legacy_since:
type: string
description: Date (YYYY-MM-DD) the model became legacy.
features:
type: array
description: Credit actions the model still accepts; empty once fully retired.
items:
type: string
DocumentationSearchResponse:
type: object
properties:
results:
type: array
description: Matching documentation sections, best first. Empty when nothing matches closely.
items:
$ref: '#/components/schemas/DocumentationSearchResult'
message:
type: string
description: 'Present only when `results` is empty: what to try next.'
ModelLineup:
type: object
description: Which models to use. Present on the table of contents only (no `doc` parameter).
properties:
current:
$ref: '#/components/schemas/CurrentModelsByAction'
legacy:
type: array
description: 'Legacy models: still accepted for existing integrations but scheduled for removal. Do not use them for new work.'
items:
$ref: '#/components/schemas/LegacyModel'
ErrorResponse:
type: object
properties:
message:
type: string
metadata:
type: string
error_payload:
type: string
intent:
type: object
description: Stripe intent details sent with 3D Secure (406) errors
properties:
id:
type: string
type:
type: string
enum:
- payment
- setup
example: payment
client_secret:
type: string
DocumentationResponse:
type: object
properties:
models:
$ref: '#/components/schemas/ModelLineup'
docs:
type: array
items:
$ref: '#/components/schemas/DocumentationEntry'
unmatched_sections:
type: array
description: Requested section titles that matched no section of `doc`. Present only when some, but not all, requested titles matched.
items:
type: string
available_sections:
type: array
description: Every section title of `doc`, for correcting the titles in `unmatched_sections`. Present only alongside `unmatched_sections`.
items:
type: string
DocumentationSearchResult:
type: object
properties:
doc:
type: string
description: Document id, e.g. sprite-generator - pass it to getDocs as `doc`
label:
type: string
description: Human-readable document name, e.g. Sprite Generator
section:
type: string
description: Section title - pass it to getDocs in `sections`
relevance:
type: number
format: float
description: Match score 0-1; only results at or above 0.6 are returned
content:
type: string
description: Full markdown body of the section, as getDocs would return it. Request and response schemas for each tool are in the tool definitions, not in these sections.
securitySchemes:
ApiKey:
type: apiKey
name: Authorization
in: header
description: 'For accessing the API a valid API Key token must be passed in all the queries in
the ''Authorization'' header.
The following syntax must be used in the ''Authorization'' header: ApiKey xxxxxx.yyyyyyy.zzzzzz
'