Skip to content

Documentation

API Wiki

Complete reference for all Minecraft Item API endpoints.

Base URL

https://api.minecraftitems.xyz

Every path below is relative to this URL.

Items

Render an item or block image

GET/api/item/:itemName

Parameters

itemNamepath
Item ID (e.g., diamond_sword)
sizepath
Size multiplier (e.g., size=4); 3D models stop at 2048 px (size=4)
rotationpath
Rotation: left or right
bgpath
Background color (e.g., bg=white)
rpquery
Resource pack ID
cmdquery
Custom model data
glintquery
Enchantment glint (true/false)
apiKeyquery
With rp: the API key that uploaded the pack
Example request
/api/item/diamond_sword/size=4/left
Response200 · PNG · 512×512
Diamond sword rendered at 4x size, rotated left

ReturnsPNG image

Create a shareable item link

POST/api/share

Request bodyapplication/json

apiKeyrequired
Your API key
itemNamerequired
Item ID
scale
Size multiplier (default: 1)
rotation
Rotation in degrees
backgroundColor
Hex color or 'transparent'
resourcePackId
Resource pack ID
customModelData
CMD value
glint
Enchantment glint

ReturnsJSON with shareable URL

Rotating GIFs

Generate a rotating item GIF (returns GIF directly)

POST/api/item/gif/direct

The item turns like a dropped item in game: its ground display transform, spun around the vertical axis and lit by the world's lights. Animated textures (.png.mcmeta) play at game speed, one tick per 50 ms of GIF.

Request bodyapplication/json

itemNamerequired
Item ID
frames
Number of frames (8-72, default: 36)
speed
Frame delay in ms (20-200, default: 50)
scale
Output size multiplier (1-8, default: 2)
itemScale
Item size (0.1-5.0, default: 1.0)
zoom
30 fits the whole turn in the frame, higher zooms out (5-100)
tilt
Camera pitch, negative looks down (-90 to 90, default: -20)
renderScale
Resolution (128-1024, default: 512)
backgroundColor
'transparent' or hex color
backgroundUrl
Public image URL, cover-fitted behind the item
glint
Enchantment glint (default: false)
resourcePackId
Resource pack ID
customModelData
CMD value
Example request body
{
  "itemName": "diamond_sword",
  "scale": 3
}
Response200 · GIF · 192×192
Diamond sword turning like a dropped item

ReturnsGIF image

Player renders

Render a player wearing armor and holding items (returns PNG)

POST/api/player/render

Drawn the way the game draws players: worn armor textures, helmet-slot items on the head, held items in the hands. See the player model format for how each slot is drawn.

Request bodyapplication/json

skinUrl
Public skin URL. Or skinBase64 (PNG as base64 or a data URL) or playerName (Java account); Steve otherwise
slim
Force slim (true) or classic (false) arms; otherwise the account's model, else a guess from the skin
helmet/chestplate/leggings/boots
Item ID, or { item, cmd, equipment, color }
mainhand/offhand
Item held in the right/left hand: item ID or { item, cmd }
resourcePackId
Resource pack ID
view
front, front_left, left, back_left, back, back_right, right or front_right
yaw
Degrees the player is turned; overrides view (default: 30)
tilt
Camera pitch, negative looks down (default: -15)
zoom
30 fits the player in the frame (5-100)
size
Output size in pixels (64-1024, default: 512)
backgroundColor
'transparent' or hex color
backgroundUrl
Public image URL drawn behind the player
panorama
'minecraft' for the title screen panorama; or panoramaUrls / panoramaUrl, see backgrounds
Example request body
{
  "helmet": "diamond_helmet",
  "chestplate": "diamond_chestplate",
  "leggings": "diamond_leggings",
  "boots": "diamond_boots",
  "mainhand": "diamond_sword",
  "offhand": "shield",
  "view": "front_left"
}
Response200 · PNG · 512×512
Steve in diamond armor holding a diamond sword and a shield

ReturnsPNG image (non-fatal problems listed in the `X-Render-Warnings` header)

Render a player as an animation: turning, filmed or posed (returns GIF or WebP)

POST/api/player/gif

camera: 'orbit' is a filmed shot: a 16:9 perspective camera low by the player's knees circles once, looking up at them, with a panorama turning behind like the title screen. Animated textures on worn and held items play. Use format: 'webp' for orbits: full colour and far smaller than a GIF.

Request bodyapplication/json

...
Same options as /api/player/render
camera
spin (the player turns, default), orbit (the filmed shot) or fixed (one angle)
format
gif (default) or webp
frames
Number of frames (8-120; default 36, an orbit 72)
speed
Frame delay in ms (20-200; default 50, an orbit 80)
width/height
Output size in pixels (64-1280); an orbit defaults to 640x360, others to size (default 256)
cameraHeight
Orbit camera height in blocks (0-4, default: 0.5); zoom scales its distance
yaw
Starting angle (default: 0, facing the camera)
Example request body
{
  "helmet": "diamond_helmet",
  "chestplate": "diamond_chestplate",
  "leggings": "diamond_leggings",
  "boots": "diamond_boots",
  "mainhand": "netherite_sword",
  "offhand": "shield",
  "camera": "orbit",
  "view": "front_left",
  "panorama": "minecraft",
  "format": "webp"
}
Response200 · WebP · 640×360
A low camera circling a player in diamond armor over the title screen panorama

ReturnsGIF or animated WebP image

GUI rendering

Render a chest/container GUI

POST/api/gui

Parameters

rowsquery
Number of rows (1-6)
scalequery
Scale multiplier (1-10)
rpquery
Resource pack ID

Request bodyapplication/json

title
GUI title text
itemsrequired
Object mapping slot index to item
Example request body
{
  "title": "My Chest",
  "items": {
    "0": "diamond_sword",
    "1": "golden_apple"
  }
}

ReturnsPNG image

Create a shareable GUI link

POST/api/gui/share

Request bodyapplication/json

apiKeyrequired
Your API key
title
GUI title
itemsrequired
Slot items object
rows
Number of rows (default: 6)
scale
Scale (default: 2)

ReturnsJSON with shareable URL

Player inventory

Render a player inventory screen

POST/api/gui/player

Parameters

scalequery
Scale multiplier (1-10)
rpquery
Resource pack ID

Request bodyapplication/json

playerName
Player name for skin
helmet
Helmet item
chestplate
Chestplate item
leggings
Leggings item
boots
Boots item
offhand
Offhand item
inventory
Inventory slots object
hotbar
Hotbar slots object

ReturnsPNG image

Player list

Render a server player list

POST/api/playerlist

Request bodyapplication/json

playersrequired
Array of player names or objects
maxrequired
Max players shown in the header (e.g., 100)
iprequired
Server IP to display
scale
Scale (default: 2)
Example request body
{
  "players": [
    "Steve",
    { "name": "Alex", "text": "§6Alex §7[VIP]", "ping": 50 }
  ],
  "max": 100,
  "ip": "play.server.com"
}

ReturnsPNG image

Tooltips

Render an item tooltip

POST/api/tooltip

Request bodyapplication/json

itemNamerequired
Item ID
displayName
Custom display name (supports color codes)
rarity
common, uncommon, rare, epic, legendary
lore
Array of lore lines
enchantments
Array of enchantments (e.g., 'Sharpness:5')
unbreakable
Unbreakable flag
scale
Scale (1-10, default: 2)
Example request body
{
  "itemName": "diamond_sword",
  "displayName": "§6Legendary Blade",
  "lore": ["§7A powerful sword"],
  "enchantments": ["Sharpness:5"]
}

ReturnsPNG image

Item + tooltip

Render item with tooltip side-by-side

POST/api/itemtooltip

Request bodyapplication/json

itemNamerequired
Item ID
displayName
Custom display name
rarity
Rarity level
lore
Array of lore lines
enchantments
Array of enchantments
scale
Scale (default: 2)
glintOverride
Force glint on/off
resourcePackId
Resource pack ID
customModelData
CMD value

ReturnsPNG image

Setup & resource packs

Create a new API key

POST/api/setup

Request bodyapplication/json

usernamerequired
Your username

ReturnsJSON with API key (save immediately!)

Upload a resource pack

POST/api/setup/resourcepack

A pack renders only for the API key that uploaded it: pass that apiKey with rp or resourcePackId on every endpoint. Share links made with the key work for anyone. The download URL must be public; the zip can be up to 250 MB.

Parameters

apiKeyqueryrequired
Your API key

Request bodyapplication/json

packNamerequired
Name for your pack
downloadUrlrequired
URL to download the .zip file

ReturnsJSON with pack ID

Stats

Item format reference

Items in GUIs and inventories can be specified as a simple string or a detailed object.

Simple item

string
Slot entry
"0": "diamond_sword"

Complex item

object
Slot entry
"0": {
  "item": "paper",
  "cmd": 123,
  "enchantments": [
    {"name": "sharpness", "level": 5}
  ],
  "glint": true
}
itemrequired
Item ID
cmd
Custom model data
enchantments
Array of enchantment objects
glint
Force enchantment glint on/off

GUI items format

Full example of a chest GUI request body.

Request body
{
  "title": "§6Chest Title",
  "items": {
    "0": "diamond_sword",
    "1": "emerald",
    "10": {
      "item": "paper",
      "cmd": 123,
      "enchantments": [
        {"name": "sharpness", "level": 5}
      ],
      "glint": true
    }
  }
}
title
Optional, supports color codes (§)
items
Object mapping slot index to item

Slot 0 = top-left.

For 6 rows: slots 0-53.

For 3 rows: slots 0-26.

Dashed slots exist only in 6-row chests.

Player inventory format

Full example of a player inventory request body.

Request body
{
  "playerName": "Notch",
  "helmet": "diamond_helmet",
  "chestplate": "diamond_chestplate",
  "leggings": "diamond_leggings",
  "boots": "diamond_boots",
  "offhand": "shield",
  "inventory": {
    "0": "diamond",
    "1": { "item": "paper", "cmd": 123 }
  },
  "hotbar": {
    "0": "diamond_sword",
    "4": "golden_apple"
  }
}
playerName
Player name for skin/head display
helmet/chestplate/leggings/boots
Armor slots
offhand
Offhand/shield slot
inventory
Main inventory slots 0-26 (3 rows of 9)
hotbar
Hotbar slots 0-8

Player model format

Full example of a player render request: a resource pack armor set, dyed leather, held items and a custom panorama.

Request body
{
  "skinUrl": "https://example.com/skin.png",
  "helmet": { "item": "paper", "cmd": 123 },
  "chestplate": { "item": "netherite_chestplate", "cmd": 7, "equipment": "my_armor_set" },
  "leggings": { "item": "leather_leggings", "color": "#3355ff" },
  "boots": "diamond_boots",
  "mainhand": { "item": "netherite_sword", "cmd": 7 },
  "offhand": "shield",
  "resourcePackId": "YOUR_PACK_ID",
  "camera": "orbit",
  "panoramaUrls": [
    "https://example.com/front.png", "https://example.com/right.png",
    "https://example.com/back.png", "https://example.com/left.png",
    "https://example.com/up.png", "https://example.com/down.png"
  ]
}
skinUrl/skinBase64/playerName
Where the skin comes from, in that order; Steve otherwise. Legacy 64x32 skins are converted
helmet/chestplate/leggings/boots
With equipment: that equipment asset's worn textures (assets/<ns>/equipment/<id>.json). Otherwise a vanilla armor item wears its material. Otherwise, in the helmet slot only, the item model sits on the head (a helmet with a cmd counts as this)
color
Dyes dyeable layers such as leather; undyed leather keeps its brown
mainhand/offhand
Right and left hand. The arm holding something swings forward like in game
view/yaw
Which side the camera sees; yaw in degrees overrides view
camera
Animations only: spin, orbit (a filmed 16:9 shot, see /api/player/gif) or fixed
shadow
The round shadow under the feet; on by default, off for a GIF with no background (a GIF can't draw its soft edge)
backgroundUrl
A flat image behind the player
panorama
'minecraft' for the vanilla title screen panorama
panoramaUrls
Six cube faces in title-screen order: front, right, back, left, up, down
panoramaUrl
One equirectangular 360 image
fov
Field of view (30-120); default 85, or 70 for an orbit, where the player shares it

Color codes reference

Use these codes in display names, lore, titles, and player list text.

  • §0Black
  • §1Dark Blue
  • §2Dark Green
  • §3Dark Aqua
  • §4Dark Red
  • §5Purple
  • §6Gold
  • §7Gray
  • §8Dark Gray
  • §9Blue
  • §aGreen
  • §bAqua
  • §cRed
  • §dPink
  • §eYellow
  • §fWhite
  • §l Bold
  • §o Italic
  • §n Underline
  • §m Strikethrough
  • §r Reset

Try it out

Test all these endpoints interactively in the Playground.

Open Playground