Installation
Install the Astro 7+ package with your preferred package manager.Agent skill
Install the Astro integration skill for coding agents that support Agent Skills:Configuration
Components use the production Pictum API by default. Add the integration when every component should use another deployment:options={{ baseUrl }} to one component to override this setting. Helpers imported from @pictum/astro are direct framework-independent helpers and do not read the Astro integration configuration; pass baseUrl to those calls explicitly.
Icons
Render an icon withIcon, or use icon() in the frontmatter script when you need its URL or SVG markup.
Icon fetches and caches canonical SVG markup during rendering, then emits inline SVG.
Avatars
Render a generated avatar or portrait withAvatar, or use avatar() to pass the selected image URL to another service. Generated avatars also provide canonical SVG markup.
QR codes
Render scannable text or URLs withQrCode, or use qrCode() when frontmatter code needs the image URL or canonical SVG.
Placeholders
Render square or custom-dimension images withPlaceholder, or use placeholder() when frontmatter code needs the selected image URL or SVG markup.
.url makes no request; .svg() fetches canonical SVG markup and is unavailable for portrait avatars.