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).
1. Get the source
Section titled “1. Get the source”node packages/spst/src/cli.ts get <ID> --file source -o model.parts.jsonModels whose hasSource is false have no source.
2. Edit and bake
Section titled “2. Edit and bake”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.jsonnode packages/spst/src/cli.ts render model.parts.json --angle 45 --scale 2 -o model.pngnode packages/spst/src/cli.ts bake model.parts.json -o model.ssrender draws a picture so you can check the shape by eye. bake bundles the rebuild source into model.ss.
3. Upload
Section titled “3. Upload”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-jaand--title-en(titleJaandtitleEninpublish_modelof 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’snamebecomes the Japanese name when it has hiragana, katakana or kanji, and the English name otherwise. The file’snamestays astitle. - Tags: separate them with commas in the command (
--tags car,vehicle). Inpublish_modelof MCP, pass an array of strings; over HTTP, pass a JSON array string (["car","vehicle"]) in thetagsfield. Up to 20 tags, 40 characters each. - Original model: pass the original
idto--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.
4. Confirm the upload
Section titled “4. Confirm the upload”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
pageUrlfor the model page, or getapiUrlfor the details. It appears in search right after uploading. - On failure, exit code 1 and
{"ok":false,"code":…,"message":…}are returned. Examples ofcode: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.
Uploading over HTTP
Section titled “Uploading over HTTP”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).
Edit after uploading
Section titled “Edit after uploading”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
nullastitleJaortitleEnremoves that name. An edit that leaves neither name is rejected with 400 (title_required). - You cannot change
title(the file’sname), the author, the license, the file or the original model.
Licenses
Section titled “Licenses”- Write
CC0-1.0orCC-BY-4.0inlicenseand the author name inauthorof the parts JSON before baking. - When you build on a CC BY model, add
derivedFrom(--derived-fromin the command).