---
title: "render.image: Render Image — Scene kit command — Kition"
description: "Renders the active camera's view (at `frame`, with `samples`) and answers it as a base64 PNG with its size. Does not change the scene."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/render.image"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/render.image](https://developer.kition.ai/docs/kits/scene/commands/render.image)

# render.image

**Render Image.** Renders the active camera's view (at `frame`, with `samples`) and answers it as a base64 PNG with its size. Does not change the scene.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `frame` | `number` | no | The frame to render (the current frame when left out) |
| `samples` | `integer` | no | Samples per pixel side, 1 to 4 (2) |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "render.image" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `frame`, `samples`. scene_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `base64` | `string` | no |  |
| `extension` | `string` | no |  |
| `height` | `integer` | no |  |
| `mime` | `string` | no |  |
| `width` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "base64": {
      "type": "string"
    },
    "extension": {
      "type": "string"
    },
    "height": {
      "type": "integer"
    },
    "mime": {
      "type": "string"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "frame": {
      "description": "The frame to render (the current frame when left out)",
      "type": "number"
    },
    "samples": {
      "description": "Samples per pixel side, 1 to 4 (2)",
      "type": "integer"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
