---
title: "Ten-point Rating Image API — Scores out of 10 | Imejis"
description: "Render review scores out of ten as a wide icon row with an exact fractional fill and an \"8.6/10\" label, set on every API call. Try Imejis free today."
url: "https://www.imejis.io/components/rating/ten-point"
---

# Ten-point Rating Image API — Scores out of 10 | Imejis

Ten icons with a fractional "8.6/10" label — review scores out of ten.

## Use cases

- Game and album review score images
- Critic-style editorial ratings
- Ten-point survey and feedback visuals

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `number` (min 0) | `3` | Current rating value (supports fractions). |
| `max` | `number` (min 1) | `5` | Total number of icons. |
| `iconShape` | `'star' \| 'heart' \| 'circle' \| 'custom'` | `"star"` | Icon used for each rating unit. |
| `customPath` | `string` | — | SVG path for the icon when iconShape is 'custom'. |
| `customEmoji` | `string` | — | Emoji used as the icon when iconShape is 'custom'. |
| `activeColor` | `color` | `"#FBBF24"` | Color of filled (active) icons. |
| `inactiveColor` | `color` | `"#E5E7EB"` | Color of unfilled (inactive) icons. |
| `emptyStyle` | `'filled' \| 'outline'` | `"filled"` | Whether empty icons render solid in the inactive color or as outlines. |
| `partial` | `'exact' \| 'half' \| 'round'` | `"exact"` | How fractional values fill the last icon. |
| `showValue` | `boolean` | `false` | Show the numeric value next to the icons. |
| `valueFormat` | `'decimal' \| 'fraction' \| 'countOfTotal'` | `"decimal"` | Format of the numeric label (4.5, 4.5/5, or "4 of 5"). |
| `valueColor` | `color` | `"#374151"` | Color of the numeric label. |
| `perRow` | `number` (min 0) | `0` | Icons per row before wrapping (0 = single row). |
| `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": "Rating sample",
  "description": "A dynamic star rating",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-rating",
      "key": "score",
      "type": "rating",
      "position": {
        "x": 60,
        "y": 183
      },
      "rotation": 0,
      "size": {
        "width": 680,
        "height": 54
      },
      "dynamic": true,
      "properties": {
        "value": 8.6,
        "max": 10,
        "iconShape": "star",
        "activeColor": "#FBBF24",
        "inactiveColor": "#E5E7EB",
        "emptyStyle": "filled",
        "partial": "exact",
        "showValue": true,
        "valueFormat": "fraction",
        "opacity": 1,
        "valueColor": "#374151"
      }
    }
  ]
}
```

## Examples

### Album review score

An 8.6/10 music review with the ninth star partially filled to the exact decimal.

API overrides that reproduce this example:

```json
{
  "score.max": 10,
  "score.value": 8.6,
  "score.partial": "exact",
  "score.showValue": true,
  "score.valueFormat": "fraction",
  "score.valueColor": "#374151",
  "score.activeColor": "#8B5CF6"
}
```

### Game review on a dark card

A 7.9/10 score in gold on a dark canvas for a review OG image.

API overrides that reproduce this example:

```json
{
  "score.max": 10,
  "score.value": 7.9,
  "score.partial": "exact",
  "score.showValue": true,
  "score.valueFormat": "fraction",
  "score.valueColor": "#F9FAFB",
  "score.inactiveColor": "#4B5563"
}
```

## API overrides

Set '<key>.value' (or just '<key>') to the score for each render; max, colors and border props are overridable too.

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

```json
{
  "score.value": 4,
  "score.max": 5,
  "score.iconShape": "star",
  "score.activeColor": "#FBBF24",
  "score.inactiveColor": "#E5E7EB",
  "score.emptyStyle": "filled",
  "score.partial": "exact",
  "score.showValue": false,
  "score.valueFormat": "decimal",
  "score.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 '{
    "score.value": 4,
    "score.max": 5,
    "score.iconShape": "star",
    "score.activeColor": "#FBBF24",
    "score.inactiveColor": "#E5E7EB",
    "score.emptyStyle": "filled",
    "score.partial": "exact",
    "score.showValue": false,
    "score.valueFormat": "decimal",
    "score.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

- [Rating component](https://www.imejis.io/components/rating.md) — full reference and FAQs
- [Hearts](https://www.imejis.io/components/rating/hearts.md) — Heart icons — likes, favorites and health bars.
- [Half fill + label](https://www.imejis.io/components/rating/half-fill-label.md) — Fractional score rounded to halves with a "3.5/5" label alongside.
- [Outline empty](https://www.imejis.io/components/rating/outline-empty.md) — Unfilled icons render as outlines instead of solid gray.
- [Emoji](https://www.imejis.io/components/rating/emoji.md) — Any emoji as the rating unit via the custom icon shape.
