PixMiller PixMiller
Home / API / Portrait Stylizer API
Developer API Preview

Portrait Stylization API Preview · v1

Pass a portrait and a style preset; get back a restyled image — anime, oil painting, 3D and more. One request to add AI portrait styles to your app.

Endpoint
POST api.pixmiller.com/v1/portrait-style
curl -X POST \
  api.pixmiller.com/v1/portrait-style \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "[email protected]"
Portrait Stylizer API
PixMiller REST API · v1
planned: 2 credits per image

Send a portrait and a style; the AI restyles it into anime, oil painting, 3D and more, returning a stylized image.

This endpoint is in preview — the route and parameters are being finalised and may change before launch. Conventions (X-Api-Key auth, JSON response) match the live background removal API.
POST https://api.pixmiller.com/v1/portrait-style
1

Authentication & request

Send your secret key in the X-Api-Key: YOUR_API_KEY request header. Create and manage keys on your account page.
Parameter Type Required Description
image_file file required Portrait photo — clear face recommended
style string required Style preset id (full list via GET /v1/styles)
prompt string optional Custom style description, overrides the style preset
2

Code samples

Pick a language and copy — runs as-is.
1curl -X POST "https://api.pixmiller.com/v1/portrait-style" \2  -H "X-Api-Key: YOUR_API_KEY" \3  -F "[email protected]" \4  -F "style=anime"
3

Response

201 Created · JSON
1{2  "url": "https://cdn.pixmiller.com/result/8Kd2pQ.png"3}
url Temporary URL of the processed image (the underlying image is auto-deleted after 3 days).
4

Errors

Errors return the matching status code and a JSON body shaped like {"errors":{"code":"…","message":"…"}}.

400 validation error Missing or invalid image_file, file too large, or conflicting image sources.
401 authentication_failed The X-Api-Key header is missing or invalid.
402 not_enough_credit size=full was requested but the account has no HD credits left.
422 invalid_image The image could not be processed — too small, unsupported, or failed to decode.
429 throttled Rate limit exceeded. Slow down and retry after the Retry-After header.

Why build on the Portrait Stylizer API

20+ Style presets
~8s Per image
100+/min Batch throughput
PNG/JPG Output
Many art styles
Keeps likeness
Batch pipeline
Minutes to integrate

Where developers use the Portrait Stylizer API

Social & avatars

Let users restyle selfies into shareable avatars and profile art.

Creator tools

Embed one-tap portrait styles into your photo or design product.

Campaigns

Batch-generate a consistent stylized look across a set of portraits.

1 Create an API key Create a key on the API keys page. New accounts get a free HD credit for testing.
2 Make a request Copy any sample above, swap in your key and image, and run your first call.
3 Go to production Tune concurrency and retries, then ship — billed per image, volume pricing available.

Developer FAQ

How do I pick a style?

Pass a style preset id (see GET /v1/styles), or override it with a free-text prompt.

Is the face preserved?

The AI restyles the image while keeping the subject recognisable; results vary by style.

Other tools' APIs

Build with the PixMiller API Get early access