---
title: "Generates map tiles (Roles: user)"
method: POST
path: "/generate/map-tiles"
tags: ["Gamestorming"]
---

# Generates map tiles (Roles: user)

`POST /generate/map-tiles`

## Request body

- GenerateMapTilesPayload
  - `request_id` string
  - `prompt` string
  - `layer` string
  - `tile_coordinates` array[]
    - number[]
  - `map` GeneratedMap
    - `tags` string[]
    - `id` string
    - `art_style` string
    - `description` string
    - `editor_state` EditorState
      - `grid_snapping` boolean
      - `viewport_x` number, float
      - `viewport_y` number, float
      - `viewport_zoom` number, float
      - `show_grid` boolean
      - `grid_color` string
      - `grid_opacity` number, float
    - `grid_size` number
    - `layers` MapLayer[]
      - `base_image` MapBaseImage
        - `height` number, float
        - `opacity` number, float
        - `width` number, float
        - `x` number, float
        - `y` number, float
        - `image` GameImage
          - `tags` string[]
          - `id` string
          - `image_id` string
          - `url` string
          - `type` string
          - `final_score` number, float
          - `nsfw_prob` number, float
          - `similarity` number, float
          - `width` integer
          - `height` integer
          - `game_id` string
          - `hosted_filename` string
          - `icon` boolean
          - `targetSize` integer
          - `seed` integer
          - `embedded` boolean
          - `analysed` boolean
          - `image` string
          - `image_type` string
          - `prompt` string
          - `motion_prompt` string
          - `request_id` string
          - `hints` string[]
          - `selected_genres` string[]
          - `selected_colors` string[]
          - `selected_style` string
          - `selected_perspective` string
          - `is_safe` boolean
          - `platform` string
          - `loading` boolean
          - `original_hints` string[]
          - `genres` string[]
          - `edit_mask` string
          - `edit_mode` string
          - `camera_rotation` integer
          - `camera_elevation` integer
          - `edit_mask_pil_image` PILImage
            - `format` string
            - `format_description` string
          - `pil_image` PILImage
            - `format` string
            - `format_description` string
          - `nsfw` number, float
          - `pose` SpritePose
            - `animation_prompt` string — Animation description for the sprite pose
            - `margin_ratio` number, float — Margin ratio for the sprite animation
            - `margin_ratio_mode` string
            - `name` string — Name of the sprite pose
            - `prompt` string — Prompt description for the sprite pose
      - `id` string
      - `meta` object
      - `name` string
      - `order` number
      - `visible` boolean
      - `sprites` MapSprite[]
        - `height` number, float
        - `id` string
        - `image` GameImage
          - `tags` string[]
          - `id` string
          - `image_id` string
          - `url` string
          - `type` string
          - `final_score` number, float
          - `nsfw_prob` number, float
          - `similarity` number, float
          - `width` integer
          - `height` integer
          - `game_id` string
          - `hosted_filename` string
          - `icon` boolean
          - `targetSize` integer
          - `seed` integer
          - `embedded` boolean
          - `analysed` boolean
          - `image` string
          - `image_type` string
          - `prompt` string
          - `motion_prompt` string
          - `request_id` string
          - `hints` string[]
          - `selected_genres` string[]
          - `selected_colors` string[]
          - `selected_style` string
          - `selected_perspective` string
          - `is_safe` boolean
          - `platform` string
          - `loading` boolean
          - `original_hints` string[]
          - `genres` string[]
          - `edit_mask` string
          - `edit_mode` string
          - `camera_rotation` integer
          - `camera_elevation` integer
          - `edit_mask_pil_image` PILImage
            - `format` string
            - `format_description` string
          - `pil_image` PILImage
            - `format` string
            - `format_description` string
          - `nsfw` number, float
          - `pose` SpritePose
            - `animation_prompt` string — Animation description for the sprite pose
            - `margin_ratio` number, float — Margin ratio for the sprite animation
            - `margin_ratio_mode` string
            - `name` string — Name of the sprite pose
            - `prompt` string — Prompt description for the sprite pose
        - `layer` number
        - `meta` object
        - `opacity` number, float
        - `width` number, float
        - `x` number, float
        - `y` number, float
    - `name` string
    - `perspective` string
    - `sprites` MapSprite[]
      - `height` number, float
      - `id` string
      - `image` GameImage
        - `tags` string[]
        - `id` string
        - `image_id` string
        - `url` string
        - `type` string
        - `final_score` number, float
        - `nsfw_prob` number, float
        - `similarity` number, float
        - `width` integer
        - `height` integer
        - `game_id` string
        - `hosted_filename` string
        - `icon` boolean
        - `targetSize` integer
        - `seed` integer
        - `embedded` boolean
        - `analysed` boolean
        - `image` string
        - `image_type` string
        - `prompt` string
        - `motion_prompt` string
        - `request_id` string
        - `hints` string[]
        - `selected_genres` string[]
        - `selected_colors` string[]
        - `selected_style` string
        - `selected_perspective` string
        - `is_safe` boolean
        - `platform` string
        - `loading` boolean
        - `original_hints` string[]
        - `genres` string[]
        - `edit_mask` string
        - `edit_mode` string
        - `camera_rotation` integer
        - `camera_elevation` integer
        - `edit_mask_pil_image` PILImage
          - `format` string
          - `format_description` string
        - `pil_image` PILImage
          - `format` string
          - `format_description` string
        - `nsfw` number, float
        - `pose` SpritePose
          - `animation_prompt` string — Animation description for the sprite pose
          - `margin_ratio` number, float — Margin ratio for the sprite animation
          - `margin_ratio_mode` string
          - `name` string — Name of the sprite pose
          - `prompt` string — Prompt description for the sprite pose
      - `layer` number
      - `meta` object
      - `opacity` number, float
      - `width` number, float
      - `x` number, float
      - `y` number, float

## Response `200`

Success

- GeneratedMap
  - `tags` string[]
  - `id` string
  - `art_style` string
  - `description` string
  - `editor_state` EditorState
    - `grid_snapping` boolean
    - `viewport_x` number, float
    - `viewport_y` number, float
    - `viewport_zoom` number, float
    - `show_grid` boolean
    - `grid_color` string
    - `grid_opacity` number, float
  - `grid_size` number
  - `layers` MapLayer[]
    - `base_image` MapBaseImage
      - `height` number, float
      - `opacity` number, float
      - `width` number, float
      - `x` number, float
      - `y` number, float
      - `image` GameImage
        - `tags` string[]
        - `id` string
        - `image_id` string
        - `url` string
        - `type` string
        - `final_score` number, float
        - `nsfw_prob` number, float
        - `similarity` number, float
        - `width` integer
        - `height` integer
        - `game_id` string
        - `hosted_filename` string
        - `icon` boolean
        - `targetSize` integer
        - `seed` integer
        - `embedded` boolean
        - `analysed` boolean
        - `image` string
        - `image_type` string
        - `prompt` string
        - `motion_prompt` string
        - `request_id` string
        - `hints` string[]
        - `selected_genres` string[]
        - `selected_colors` string[]
        - `selected_style` string
        - `selected_perspective` string
        - `is_safe` boolean
        - `platform` string
        - `loading` boolean
        - `original_hints` string[]
        - `genres` string[]
        - `edit_mask` string
        - `edit_mode` string
        - `camera_rotation` integer
        - `camera_elevation` integer
        - `edit_mask_pil_image` PILImage
          - `format` string
          - `format_description` string
        - `pil_image` PILImage
          - `format` string
          - `format_description` string
        - `nsfw` number, float
        - `pose` SpritePose
          - `animation_prompt` string — Animation description for the sprite pose
          - `margin_ratio` number, float — Margin ratio for the sprite animation
          - `margin_ratio_mode` string
          - `name` string — Name of the sprite pose
          - `prompt` string — Prompt description for the sprite pose
    - `id` string
    - `meta` object
    - `name` string
    - `order` number
    - `visible` boolean
    - `sprites` MapSprite[]
      - `height` number, float
      - `id` string
      - `image` GameImage
        - `tags` string[]
        - `id` string
        - `image_id` string
        - `url` string
        - `type` string
        - `final_score` number, float
        - `nsfw_prob` number, float
        - `similarity` number, float
        - `width` integer
        - `height` integer
        - `game_id` string
        - `hosted_filename` string
        - `icon` boolean
        - `targetSize` integer
        - `seed` integer
        - `embedded` boolean
        - `analysed` boolean
        - `image` string
        - `image_type` string
        - `prompt` string
        - `motion_prompt` string
        - `request_id` string
        - `hints` string[]
        - `selected_genres` string[]
        - `selected_colors` string[]
        - `selected_style` string
        - `selected_perspective` string
        - `is_safe` boolean
        - `platform` string
        - `loading` boolean
        - `original_hints` string[]
        - `genres` string[]
        - `edit_mask` string
        - `edit_mode` string
        - `camera_rotation` integer
        - `camera_elevation` integer
        - `edit_mask_pil_image` PILImage
          - `format` string
          - `format_description` string
        - `pil_image` PILImage
          - `format` string
          - `format_description` string
        - `nsfw` number, float
        - `pose` SpritePose
          - `animation_prompt` string — Animation description for the sprite pose
          - `margin_ratio` number, float — Margin ratio for the sprite animation
          - `margin_ratio_mode` string
          - `name` string — Name of the sprite pose
          - `prompt` string — Prompt description for the sprite pose
      - `layer` number
      - `meta` object
      - `opacity` number, float
      - `width` number, float
      - `x` number, float
      - `y` number, float
  - `name` string
  - `perspective` string
  - `sprites` MapSprite[]
    - `height` number, float
    - `id` string
    - `image` GameImage
      - `tags` string[]
      - `id` string
      - `image_id` string
      - `url` string
      - `type` string
      - `final_score` number, float
      - `nsfw_prob` number, float
      - `similarity` number, float
      - `width` integer
      - `height` integer
      - `game_id` string
      - `hosted_filename` string
      - `icon` boolean
      - `targetSize` integer
      - `seed` integer
      - `embedded` boolean
      - `analysed` boolean
      - `image` string
      - `image_type` string
      - `prompt` string
      - `motion_prompt` string
      - `request_id` string
      - `hints` string[]
      - `selected_genres` string[]
      - `selected_colors` string[]
      - `selected_style` string
      - `selected_perspective` string
      - `is_safe` boolean
      - `platform` string
      - `loading` boolean
      - `original_hints` string[]
      - `genres` string[]
      - `edit_mask` string
      - `edit_mode` string
      - `camera_rotation` integer
      - `camera_elevation` integer
      - `edit_mask_pil_image` PILImage
        - `format` string
        - `format_description` string
      - `pil_image` PILImage
        - `format` string
        - `format_description` string
      - `nsfw` number, float
      - `pose` SpritePose
        - `animation_prompt` string — Animation description for the sprite pose
        - `margin_ratio` number, float — Margin ratio for the sprite animation
        - `margin_ratio_mode` string
        - `name` string — Name of the sprite pose
        - `prompt` string — Prompt description for the sprite pose
    - `layer` number
    - `meta` object
    - `opacity` number, float
    - `width` number, float
    - `x` number, float
    - `y` number, float

## Other responses

- `400` — Error

---

[API](https://skmtc.net/ludo/apis/ludo-ai-api.md) · [All operations](https://skmtc.net/ludo/apis/ludo-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ludo/ludo-ai-api/revisions/3af866d68651/schema)
