---
title: "Gauge Image API — Speedometer-style gauges | Imejis"
description: "Render half-circle, speedometer-style gauges for scores and capacity, with the value set on every API call. Generate gauge images free with Imejis."
url: "https://www.imejis.io/components/progress/gauge"
---

# Gauge Image API — Speedometer-style gauges | Imejis

A half-circle gauge — speedometer-style capacity and score visuals.

## Use cases

- Performance score visuals in reports
- Server load and capacity snapshots
- NPS or health score graphics

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` (min 0) | `60` | Current progress value. |
| `max` | `number` (min 1) | `100` | Value that represents 100%. |
| `variant` | `'linear' \| 'circular' \| 'gauge'` | `"linear"` | Visual style: bar, ring or gauge. |
| `orientation` | `'horizontal' \| 'vertical'` | `"horizontal"` | Direction of the linear bar. |
| `fillColor` | `color` | `"#4F46E5"` | Color of the filled portion. |
| `trackColor` | `color` | `"#E5E7EB"` | Color of the unfilled track. |
| `rounded` | `boolean` | `true` | Round the ends of the bar/ring. |
| `thickness` | `number` (min 0) | `0` | Bar/ring thickness in pixels (0 = auto). |
| `showValue` | `boolean` | `true` | Show the numeric label alongside the indicator. |
| `valueFormat` | `'percent' \| 'value' \| 'fraction'` | `"percent"` | Format of the numeric label (72%, 72, or 72/100). |
| `valueColor` | `color` | `"#374151"` | Color of the numeric label. |
| `opacity` | `number` | `1` | Overall component opacity from 0 (transparent) to 1 (opaque). |
| `borderWidth` | `number` | `0` | Border thickness in pixels around the component. |
| `borderColor` | `color` | `"transparent"` | Border color (any CSS color). |
| `borderStyle` | `'solid' \| 'dashed' \| 'dotted' \| 'double' \| 'none'` | `"solid"` | Border line style. |
| `borderRadius` | `number` | `0` | Corner radius in pixels. |
| `boxShadow` | `string` | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |

## Design JSON (this variant)

```json
{
  "title": "Progress sample",
  "description": "A dynamic progress bar",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-progress",
      "key": "completion",
      "type": "progress",
      "position": {
        "x": 270,
        "y": 130
      },
      "rotation": 0,
      "size": {
        "width": 260,
        "height": 160
      },
      "dynamic": true,
      "properties": {
        "value": 72,
        "max": 100,
        "variant": "gauge",
        "orientation": "horizontal",
        "fillColor": "#4F46E5",
        "trackColor": "#E5E7EB",
        "rounded": true,
        "showValue": true,
        "valueFormat": "percent",
        "valueColor": "#374151",
        "opacity": 1,
        "thickness": 18
      }
    }
  ]
}
```

## Examples

### Server load dial

CPU load at 68% on a speedometer-style gauge for an ops status image.

API overrides that reproduce this example:

```json
{
  "completion.variant": "gauge",
  "completion.showValue": true,
  "completion.thickness": 18,
  "completion.value": 68,
  "completion.fillColor": "#F59E0B",
  "completion.valueColor": "#B45309"
}
```

### NPS score gauge

An NPS of 62 shown as a raw value (not a percent) on a green dial.

API overrides that reproduce this example:

```json
{
  "completion.variant": "gauge",
  "completion.showValue": true,
  "completion.thickness": 18,
  "completion.value": 62,
  "completion.fillColor": "#10B981",
  "completion.valueFormat": "value",
  "completion.valueColor": "#065F46"
}
```

## API overrides

Drive the bar with '<key>.value' (or just '<key>'); max, fill/track colors and valueFormat are overridable per render.

Flat override payload (`key.property` addressing) with the sample design's current values — send only the keys you want to change:

```json
{
  "completion.value": 72,
  "completion.max": 100,
  "completion.variant": "linear",
  "completion.orientation": "horizontal",
  "completion.fillColor": "#4F46E5",
  "completion.trackColor": "#E5E7EB",
  "completion.rounded": true,
  "completion.showValue": true,
  "completion.valueFormat": "percent",
  "completion.valueColor": "#374151",
  "completion.opacity": 1
}
```

```bash
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "completion.value": 72,
    "completion.max": 100,
    "completion.variant": "linear",
    "completion.orientation": "horizontal",
    "completion.fillColor": "#4F46E5",
    "completion.trackColor": "#E5E7EB",
    "completion.rounded": true,
    "completion.showValue": true,
    "completion.valueFormat": "percent",
    "completion.valueColor": "#374151",
    "completion.opacity": 1
}'
```

`{{YOUR_DESIGN_ID}}` and `{{YOUR_API_KEY}}` are placeholders: first create
the design in your account (paste the sample design JSON above into the
editor at https://app.imejis.io, or create it programmatically via the
imejis MCP server's `create_design` + `update_design` tools), then render
it with the design's id and one of your API keys.

Agents: the MCP server at https://api.imejis.io/api/mcp exposes this same
catalog as structured data via the `list_component_types` tool (property
kinds, allowed values, bounds, ready-to-use sample designs).

## Related

- [Progress component](https://www.imejis.io/components/progress.md) — full reference and FAQs
- [Circular](https://www.imejis.io/components/progress/circular.md) — A progress ring with the value in the center.
- [Vertical bar](https://www.imejis.io/components/progress/vertical-bar.md) — A linear bar filling bottom-to-top.
