# Get the preview image of an avatar

`GET https://api.cream-ai.de/api/v1/avatars/{id}/preview`

The preview image of a character of the company (PNG, JPEG or WebP). Characters of other companies return `404 not_found`.

Scopes: `catalog:read`

## Parameters

- `id` (path, required): Id of the avatar.

## Returns

- 200: The image.

## Errors

- 401: Missing, malformed, revoked or expired API key (unauthorized).
- 403: Not allowed (forbidden_scope, ip_not_allowed, company_inactive, user_email_not_allowed, ai_music_not_confirmed, api_not_enabled).
- 404: Not found (not_found).
- 429: Too many requests (rate_limited).
- 500: Internal error (internal). Quote the request id when you contact support.
- 503: Temporarily unavailable (service_unavailable). Retry later (after Retry-After seconds, if sent).

## Example request

```sh
curl "https://api.cream-ai.de/api/v1/avatars/k7m2xq9v4t8n1b5r3c6d0wza/preview" \
  -H "Authorization: Bearer $MINT_API_KEY"
```

## Example response (200)

```http
HTTP/1.1 200 OK
Content-Type: image/png
X-Request-Id: req_5b2e8f1a4c7d0e3b6a9f2c5d8e1b4a7c

<binary image data>
```
