Grasco

CDN Integration

Serve profile pictures directly from the Grasco CDN

Every generated headshot is available on the Grasco CDN in multiple sizes and image modes. You can use the CDN URLs directly in you site, OG images, native apps, or anywhere you need an image — no SDK or UI component required.

URL Format

{baseUrl}/profile-picture/cdn/{extCustomerId}_{size}_{imageMode}.webp

For example:

https://api.propicture.app/profile-picture/cdn/user-123_480_original.webp

Parameters

ParameterDescription
extCustomerIdThe external customer ID used when creating the session
sizeCDN resolution in pixels — see available sizes below
imageModeoriginal or transparent

Image Modes

ModeDescription
originalOriginal uploaded image with background
transparentImage with background removed

Available Sizes

Five resolutions are available:

SizeResolution
8080px
120120px
240240px
480480px
960960px

Choose the size closest to your display dimensions. For retina displays, request 2x the display size.

Examples

<!-- Avatar in an email (120px) -->
<img src="https://api.propicture.app/profile-picture/cdn/user-123_120_original.webp" />

<!-- OG image (960px) -->
<img src="https://api.propicture.app/profile-picture/cdn/user-123_960_original.webp" />

<!-- Transparent background for compositing -->
<img src="https://api.propicture.app/profile-picture/cdn/user-123_480_transparent.webp" />

Custom CDN Endpoint (Enterprise)

The default CDN base URL (https://api.propicture.app) works out of the box for all users. Enterprise customers with a dedicated endpoint can use their custom URL:

https://cdn.your-company.com/profile-picture/cdn/user-123_480_original.webp

On this page