Loading...
Loading...
Upload images, audio, or 3D models as hosted game assets
npx skill4agent add farworld-labs/remix-skills remix-upload-assetREMIX_API_KEY.remix-settings.jsongameId.remix-settings.jsongameIdPOST https://api.remix.gg/v1/games/{gameId}/assets
Authorization: Bearer $REMIX_API_KEY
Content-Type: multipart/form-data
Form fields:
file (required) — the binary file to upload
assetName (optional) — custom display name; defaults to the filename.jpg.jpeg.png.webp.mp3.wav.hdr.glb.gltf{
"success": true,
"data": {
"gameId": "...",
"asset": {
"url": "https://..."
}
}
}data.asset.url<img src="https://returned-asset-url.png" width="64" height="64" />const img = new Image();
img.src = "https://returned-asset-url.png";
img.onload = () => ctx.drawImage(img, x, y, w, h);const audio = new Audio("https://returned-asset-url.mp3");
audio.play();GET https://api.remix.gg/v1/games/{gameId}/assets
Authorization: Bearer $REMIX_API_KEYplayer-idle.pngjump-sfx.mp3onloadcanplaythrough.webp.mp3