Website Assets
Point POST /api/v1/website-assets at any URL and get back a set of pixel-art animations themed on that site's branding - the same engine behind the Brand Pixelizer tool, available programmatically.
Endpoint2 CREDITS
Reads the target site's colors, fonts, and copy, proposes 4 brand-themed sprite ideas, and generates a 4-frame looping animation for each - 2 credits total for the whole batch of 4. Unlike the free, unauthenticated browser tool, this endpoint requires an API key, charges credits, and saves every result to your account - they show up in My Assets like any other generation.
This request runs synchronously - it returns once all 4 animations have finished generating, which typically takes 30-90 seconds.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | YES | The website to theme the animations on, e.g. "stripe.com" |
Example Request
Response
| Field | Type | Description |
|---|---|---|
| assets | array | The 4 generated animations, each saved as an asset in your account |
| assets[].imageUrl | string | A 2x2 grid sprite sheet (4 animation frames) as a base64 data URL |
| creditsCharged | number | Always 2 for this endpoint |
| creditsRemaining | number | Your balance after this generation |
Errors
Credits are charged before generation starts and automatically refunded if the whole batch fails (e.g. every image generation attempt errors out) - you're never charged for a request that returns an error.
| Status | Meaning |
|---|---|
| 401 | Missing or invalid API key |
| 400 | Missing or invalid url |
| 402 | Not enough credits - this endpoint needs 2 |
| 502 | Generation failed (credits refunded) |