# Reuse a canvas as a template (https://docs.fuser.studio/docs/api/guides/reuse-a-canvas)

Build the canvas once in Fuser, then drive it from code: change its text or
image inputs and rerun only what changed.

    ### Read the canvas [#read-the-canvas]

    [`canvas_get`](https://docs.fuser.studio/docs/api/canvas-get.md) returns its nodes with their ids
    and inputs, and its `revision`.

    ### Change the inputs [#change-the-inputs]

    ```json
    {
      "canvasId": "…",
      "idempotencyKey": "copy-update-42",
      "expectedRevision": 12,
      "diff": {
        "setInputs": [
          {
            "nodeId": "a1B2c3",
            "inputId": "prompt",
            "value": "Spring sale, 30% off"
          }
        ]
      }
    }
    ```

    Sent to [`canvas_edit`](https://docs.fuser.studio/docs/api/canvas-edit.md). With `expectedRevision`,
    the edit is refused if someone changed the canvas since you read it.

    ### Run the changed nodes [#run-the-changed-nodes]

    [`run_start`](https://docs.fuser.studio/docs/api/run-start.md) with `nodeIds` runs just those nodes and what
    depends on them.