Ludo.ai Generations API

List recent cross-asset API generations tied to an account.

GitHub OpenAPI

Operations 1

GET /assets/generations #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ludo-ai:ludo-ai-generations-api"
All apis
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.

Get an API 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 Specification

ludo-ai-generations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 0.9.10
  title: Ludo.ai Generations 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: Generations
paths:
  /assets/generations:
    get:
      description: 'List your generation history - everything you have generated, through the API or in the Ludo web studio - most recent first. This is a free read-only lookup (no credits, no generation); it does not create anything. Pick a media `type` (image, spritesheet, video, audio, 3d, tile or tileset) and optionally narrow by free-text `search` (matched against tags, prompts and the other text on the asset), `source`, a `date_from`/`date_to` range (unix seconds), or the `request_id` you passed when you generated. Results are paginated with `page_size` (default 20, max 100) and 1-based `page_number`, and come back as an object: `items` (this page), plus `page`, `page_size` and `has_more`. Page until `has_more` is false rather than until you get a short page. `has_more` is computed by reading one row beyond the page, so it costs no extra query; there is deliberately no total count.


        `source` selects the surface an item came from: `api` returns only your API/MCP generations, `web` only your web-studio ones, `all` (the default) both. API-originated items expire 7 days after creation - their files live under a lifecycle-pruned storage prefix - so `source=api` never returns anything older than 7 days, while web items are kept indefinitely and are not time-bounded. API-originated results expire after 7 days - download anything you want to retain. (Assets can be kept permanently from the Ludo web app.) Each item carries an `id`, its generation-history id, which identifies the item across these listings. Every item also carries `type`, echoing the media type you asked for; on audio items the kind of audio (sfx, music, speech) is reported as `audio_type` so it does not collide with it.


        This lists work that has already FINISHED. To follow a generation that is still queued or running, poll getApiJob with the job id you were given instead. Requires an API key (user scope).'
      x-mcp-description: List your generation history across the API and the web app - filter by type, source (api|web|all), text search, and date range. Returns {items, page, page_size, has_more}; keep paging while has_more is true. API-originated results expire after 7 days - download anything you want to retain. For an in-flight job's status use getApiJob instead.
      tags:
      - Generations
      operationId: listGenerations
      security:
      - ApiKey: []
      parameters:
      - name: type
        in: query
        description: Which kind of generation to list
        required: true
        schema:
          type: string
          enum:
          - image
          - spritesheet
          - video
          - audio
          - 3d
          - tile
          - tileset
      - name: search
        in: query
        description: Free-text search. Every whitespace-separated term must match (case-insensitive substring) the item's tags or one of its text fields (prompt, hints, style, label, ...), so "dwarf axe" narrows to items matching both.
        required: false
        schema:
          type: string
      - name: source
        in: query
        description: 'Which surface the items were generated from: api (your API/MCP generations, last 7 days only), web (your Ludo web studio generations, no time limit), or all (default, both)'
        required: false
        schema:
          type: string
          enum:
          - api
          - web
          - all
          default: all
      - name: date_from
        in: query
        description: Only return items generated at or after this time (unix seconds)
        required: false
        schema:
          type: integer
      - name: date_to
        in: query
        description: Only return items generated at or before this time (unix seconds)
        required: false
        schema:
          type: integer
      - name: page_size
        in: query
        description: Items per page (1-100)
        required: false
        schema:
          type: integer
          default: 20
      - name: page_number
        in: query
        description: 1-based page number
        required: false
        schema:
          type: integer
          default: 1
      - name: request_id
        in: query
        description: Only return items tagged with this request_id when you generated them
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerationList'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
      - lang: Shell
        label: cURL
        source: "curl -X GET \"https://api.ludo.ai/api/assets/generations?type=image\" \\\n  -H \"Authorization: ApiKey YOUR_API_KEY\""
      - lang: JavaScript
        label: JavaScript
        source: "const response = await fetch(\"https://api.ludo.ai/api/assets/generations?type=image\", {\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/assets/generations?type=image\",\n    headers={\"Authorization\": \"ApiKey YOUR_API_KEY\"}\n)\n\nprint(response.json())"
components:
  schemas:
    GenerationListItem:
      type: object
      properties:
        id:
          type: string
          description: Generation-history id of this item, identifying it across these listings. API-originated results expire after 7 days - download anything you want to retain. (Assets can be kept permanently from the Ludo web app.)
        type:
          type: string
          description: The media type of this item, echoing the requested `type`.
          enum:
          - image
          - spritesheet
          - video
          - audio
          - 3d
          - tile
          - tileset
          example: image
        request_id:
          type: string
        created_at:
          type: integer
          description: When the item was generated (unix seconds).
        url:
          type: string
          description: 'image / video / audio / tile: URL to the generated file.'
          example: <url>
        image_type:
          type: string
          description: 'tile only: the tile''s type (texture, texture-iso, sprite-tiling-horizontal, sprite-tiling-iso, scatter-pattern...).'
        grid:
          type: string
          description: 'tile / tileset: the map grid it was made for (square, diamond or diamond-true).'
        atlas_url:
          type: string
          description: 'tileset only: the atlas of the set''s 16 tiles. Pass it to editTileset.'
          example: <url>
        preview_url:
          type: string
          description: 'tileset only: a small sample map drawn with the set, when one was made.'
          example: <url>
        kind:
          type: string
          description: 'tileset only: terrain or lines.'
        tile_width:
          type: integer
          description: tileset only.
        tile_height:
          type: integer
          description: tileset only.
        transparent:
          type: boolean
          description: tileset only.
        tiles:
          type: array
          description: 'tileset only: the 16 tiles, each with its row and column on the atlas and its corner terrains or line sides.'
          items:
            $ref: '#/components/schemas/TilesetTile'
        duration:
          type: number
          format: float
          description: 'video / audio / spritesheet: duration in seconds.'
        has_audio:
          type: boolean
          description: video only.
        audio_type:
          type: string
          description: 'audio only: the kind of audio (sfx, music, speech). Named `audio_type` here, not `type`, because `type` reports the media type on every item.'
        spritesheet_url:
          type: string
          description: spritesheet only.
          example: <url>
        video_url:
          type: string
          description: 'spritesheet only: preview video.'
          example: <url>
        audio_url:
          type: string
          description: 'spritesheet only: URL of the sheet''s sound effect (MP3 or WAV; the extension says which), when it has one.'
          example: <url>
        num_frames:
          type: integer
          description: spritesheet only.
        num_cols:
          type: integer
          description: 'spritesheet only: columns in the frame grid. Frames run left-to-right, top-to-bottom.'
        num_rows:
          type: integer
          description: 'spritesheet only: rows in the frame grid. The last row may be only partly filled.'
        out_of_frame:
          type: boolean
          description: 'spritesheet only: true when Ludo detected the sprite running past the frame''s edges, so parts of it are cut off. A hint; editSpritesheet edit_mode "outpaint" extends the frame. A larger margin can''t help when the input image itself is cut at that edge.'
        bad_loop:
          type: boolean
          description: 'spritesheet only: true when Ludo detected that the animation doesn''t loop cleanly. A hint; editSpritesheet edit_mode "fix_loop" regenerates the seam to repair it, and is of no use on a loop that is already clean, so use it only when this is true.'
        frame_width:
          type: integer
          description: 'spritesheet only: width in pixels of one cell of the sheet. Every frame is the same size. Absent on older spritesheets.'
        frame_height:
          type: integer
          description: 'spritesheet only: height in pixels of one cell of the sheet. Absent on older spritesheets.'
        pixel_block:
          type: integer
          description: 'spritesheet only: pixel art only, absent otherwise. How many sheet pixels make up one art pixel, so the art is frame_width / pixel_block pixels wide. Snap or scale by this to keep the pixels crisp. On a true-size export the block grid can be shifted from the frame''s top-left corner.'
        loop_score:
          type: number
          format: float
          description: 'spritesheet only: 0 to 1, how similar the last frame played is to the first. bad_loop is exactly loop_score < 0.7. Absent on older spritesheets.'
        loop_detected:
          type: boolean
          description: 'spritesheet only: true when a loop was requested and the sheet holds one full cycle: it was found in the video, or the final keyframe was the same image as the first. false means the whole clip was packed, ending wherever the video ended. Absent on older spritesheets.'
        out_of_frame_edges:
          type: array
          items:
            type: string
            enum:
            - top
            - bottom
            - left
            - right
            example: top
          description: 'spritesheet only: the borders the sprite is cut off on, which tells you where to add margin. Empty when nothing is cut off; out_of_frame is true exactly when it is non-empty. Absent on older spritesheets.'
        model_url:
          type: string
          description: '3d only: URL to the generated model file.'
          example: <url>
        snapshots:
          type: array
          items:
            type: string
          description: '3d only: preview snapshot URLs.'
        model:
          type: string
          description: 'image: the id of the model that generated or edited the image. Absent on older images. 3d: the image-to-3D model that made the model, prop, hero or low-poly (create3DModel `model`), kept through rigging; absent for uploaded models and for models made before Nov 10 2026.'
        prompt:
          type: string
          description: 'image: the prompt as the model received it. With augment_prompt on, this is the rewritten prompt, not the one you sent. 3d: the prompt the source image was generated from (text-to-3D); absent for a model made from your own image.'
        source_image_url:
          type: string
          description: '3d only: URL of the image the model was built from (the generated concept image, or the image you sent). A text-to-3D concept image saved without a model yet has this and `prompt`, and no `model_url`.'
          example: <url>
    GenerationList:
      type: object
      properties:
        items:
          type: array
          description: This page of results, newest first.
          items:
            $ref: '#/components/schemas/GenerationListItem'
        page:
          type: integer
          description: The 1-based page number these items came from.
        page_size:
          type: integer
          description: The page size actually applied (your page_size, clamped to 1-100).
        has_more:
          type: boolean
          description: Whether at least one more page exists after this one. Page until this is false rather than until you get a short page.
    TilesetTile:
      type: object
      description: One of a tileset's 16 tiles.
      properties:
        row:
          type: integer
          description: The tile's row on the atlas, from 0 at the top.
        column:
          type: integer
          description: The tile's column on the atlas, from 0 at the left.
        corners:
          $ref: '#/components/schemas/TilesetTileCorners'
        edges:
          $ref: '#/components/schemas/TilesetTileEdges'
    TilesetTileEdges:
      type: object
      description: 'A lines set: whether the line leaves the tile by each of its four sides. A tile carries the four side names of its grid.'
      properties:
        top:
          type: boolean
        right:
          type: boolean
        bottom:
          type: boolean
        left:
          type: boolean
        top_left:
          type: boolean
        top_right:
          type: boolean
        bottom_right:
          type: boolean
        bottom_left:
          type: boolean
    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
    TilesetTileCorners:
      type: object
      description: 'A terrain set: which terrain (a or b) is at each of the tile''s four corners. A tile carries the four corner names of its grid.'
      properties:
        top:
          type: string
        right:
          type: string
        bottom:
          type: string
        left:
          type: string
        top_left:
          type: string
        top_right:
          type: string
        bottom_right:
          type: string
        bottom_left:
          type: string
  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

        '