Skip to content
This page is a translation of the Japanese version. The Japanese version is authoritative; if they differ, follow the Japanese version.

Remix and upload

These steps rebuild a public model and upload it as your own. Uploading needs an account (GitHub, Google, or passkey), signing in, and a key (a token for AI) issued at /account (Getting started).

ターミナルウィンドウ
node packages/spst/src/cli.ts get <ID> --file source -o model.parts.json

Models whose hasSource is false have no source.

Edit the parts JSON, set author to your name, and set license to CC0-1.0 or CC-BY-4.0. The fields are in §3 of the specification.

ターミナルウィンドウ
node packages/spst/src/cli.ts check model.parts.json
node packages/spst/src/cli.ts render model.parts.json --angle 45 --scale 2 -o model.png
node packages/spst/src/cli.ts bake model.parts.json -o model.ss

render draws a picture so you can check the shape by eye. bake bundles the rebuild source into model.ss.

ターミナルウィンドウ
node packages/spst/src/cli.ts publish model.ss \
--title-ja "作り直した車" \
--title-en "Remixed car" \
--description "a remixed car" \
--tags car,vehicle \
--derived-from <ID>
  • Japanese and English names: set them with --title-ja and --title-en (titleJa and titleEn in publish_model of MCP and over HTTP). Both are optional, up to 100 characters each. The site shows the name that matches the screen’s language, and shows the other name when one is missing. If you leave out both, the file’s name becomes the Japanese name when it has hiragana, katakana or kanji, and the English name otherwise. The file’s name stays as title.
  • Tags: separate them with commas in the command (--tags car,vehicle). In publish_model of MCP, pass an array of strings; over HTTP, pass a JSON array string (["car","vehicle"]) in the tags field. Up to 20 tags, 40 characters each.
  • Original model: pass the original id to --derived-from. Please add it when you build on a CC BY model. The model page shows the attribution.
  • Limits: 16 MiB per file and 2,097,152 cells for the whole grid (equivalent to 128×128×128; not a per-side limit). Descriptions up to 2000 characters.

Uploading is a single request. No progress is shown. Large files may take time depending on your connection.

  • On success, exit code 0 and {"id":…,"pageUrl":…,"apiUrl":…,"ok":true} are returned.
  • Open pageUrl for the model page, or get apiUrl for the details. It appears in search right after uploading.
  • On failure, exit code 1 and {"ok":false,"code":…,"message":…} are returned. Examples of code: token_required (no token), file_too_large (stopped locally before sending), upload_limit (the daily upload limit), invalid_model (broken model), derived_from_not_found (no public original model).

If the request is cut off, search with the same description to confirm it was not uploaded before sending it again.

Without the command, send a multipart form to POST /api/v1/models with the header Authorization: Bearer <token>. The fields are in the API reference. On failure, {"code":…,"message":…} is returned (a file over 16 MiB is a 413 too_large).

You can edit the Japanese name, English name, description and tags by sending JSON to PATCH /api/v1/models/<ID>. The headers are the same as for uploading.

{ "titleJa": "作り直した車", "titleEn": "Remixed car" }
  • Sending an empty string or null as titleJa or titleEn removes that name. An edit that leaves neither name is rejected with 400 (title_required).
  • You cannot change title (the file’s name), the author, the license, the file or the original model.
  • Write CC0-1.0 or CC-BY-4.0 in license and the author name in author of the parts JSON before baking.
  • When you build on a CC BY model, add derivedFrom (--derived-from in the command).