---
title: "Circle Avatar Image API — Round profile photos | Imejis"
description: "Crop any photo into a ring-bordered circular avatar and swap the URL on every API call — perfect for profile-driven cards. Generate avatar images free."
url: "https://www.imejis.io/components/image/circle-avatar"
---

# Circle Avatar Image API — Round profile photos | Imejis

Fully-rounded crop with a ring border — profile photos and avatars.

## Use cases

- Personalized OG images with the author avatar
- Community welcome cards for every new member
- Speaker cards for event promotion

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `image` | `string` | — | Image URL (stored on the component's top-level image field; overridable via config). |
| `imageSize` | `'cover' \| 'contain' \| 'fill' \| 'none' \| 'scale-down'` | `"cover"` | How the image fits its box (CSS object-fit). |
| `imagePosition` | `string` | `"center"` | Focal point of the image within its box (CSS object-position). |
| `backgroundColor` | `color` | `"transparent"` | Background color visible behind/around the image. |
| `padding` | `string` | `"0"` | CSS padding between the box edge and the image. |
| `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": "Image sample",
  "description": "A rounded dynamic photo",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-image",
      "key": "photo",
      "type": "image",
      "position": {
        "x": 250,
        "y": 60
      },
      "rotation": 0,
      "size": {
        "width": 300,
        "height": 300
      },
      "dynamic": true,
      "image": "https://picsum.photos/600/600",
      "properties": {
        "imageSize": "cover",
        "borderRadius": 150,
        "opacity": 1,
        "borderWidth": 4,
        "borderColor": "#4F46E5",
        "borderStyle": "solid"
      }
    }
  ]
}
```

## Examples

### Speaker announcement avatar

A conference speaker photo in a green-ringed circle for the lineup card.

API overrides that reproduce this example:

```json
{
  "photo.imageSize": "cover",
  "photo.borderRadius": 120,
  "photo.borderWidth": 6,
  "photo.borderColor": "#10B981",
  "photo.borderStyle": "solid"
}
```

### Author avatar on a dark OG card

A white-ringed author photo popping off a dark Open Graph background.

API overrides that reproduce this example:

```json
{
  "photo.imageSize": "cover",
  "photo.borderRadius": 150,
  "photo.borderWidth": 4,
  "photo.borderColor": "#F8FAFC",
  "photo.borderStyle": "solid"
}
```

## API overrides

Point '<key>.image' (or just '<key>') at any image URL per render; opacity, borders and padding can be overridden too.

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

```json
{
  "photo.image": "https://picsum.photos/600/600",
  "photo.imageSize": "cover",
  "photo.borderRadius": 16,
  "photo.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 '{
    "photo.image": "https://picsum.photos/600/600",
    "photo.imageSize": "cover",
    "photo.borderRadius": 16,
    "photo.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

- [Image component](https://www.imejis.io/components/image.md) — full reference and FAQs
- [Contain](https://www.imejis.io/components/image/contain.md) — The full image letterboxed inside its box on a neutral background.
- [Polaroid](https://www.imejis.io/components/image/polaroid.md) — Padded frame with a soft shadow for a printed-photo feel.
