Studio

Remix

Restyle an image to match a reference image.

Provide an input image and a reference image; the output keeps the input's content rendered in the reference's style. Optional profile IDs preserve recognized identities, and an optional prompt steers the remix. Output resolution is fixed at 2K. Returns base64 images or signed download URLs.

post/v2/phota/remix

Request

  • Base URL
    https://api.photalabs.com
  • Auth
    API key in header X-API-Key

Request body

asyncboolean

Submit asynchronously. Returns 202 with a job_id to poll at GET /v1/jobs/{job_id} instead of holding the connection until the image is ready.

callback_urlstring nullable

Optional https URL we POST the signed result to on completion. Best-effort (polling remains authoritative). Requires async=true.

client_request_idstring nullable

Idempotency key. A retried submit with the same value returns the original job instead of creating (and charging for) a new one.

response_mode'bytes' | 'urls'

Response delivery mode. 'bytes': return base64-encoded image data (default). 'urls': return signed download URLs (24-hour expiry) instead of image bytes.

input_imagestring required

Input image as a raw base64 string or publicly accessible URL. Supported formats: JPEG, PNG, WebP, and HEIC/HEIF. Images larger than 4K (4096px) are automatically resized.

reference_imagestring required

Reference image as a raw base64 string or publicly accessible URL. The output keeps the input image's content rendered in this image's style.

profile_idsstring[]

Profile IDs for identity preservation in the output. When a listed profile is recognized in the input image, the person's likeness is preserved through the restyle. Optional.

promptstring nullable

Optional text instructions to steer the remix (e.g. what to keep or emphasize).

num_output_imagesinteger

Number of output images to generate (1-4).

output_format'png' | 'jpg'

Output image format (png, jpg). Default: png (will change to jpg on 2026-05-08).

Example request

{
  "input_image": "https://example.com/photo.jpg",
  "num_output_images": 2,
  "output_format": "jpg",
  "prompt": "Keep the original background",
  "reference_image": "https://example.com/reference.jpg",
  "response_mode": "urls"
}

Response

Successful Response

imagesstring[]

Output image(s) as raw base64-encoded strings. Format matches the requested output_format. Populated when response_mode='bytes', empty otherwise.

download_urlsstring[]

Signed download URLs for each output image (24-hour expiry). Populated when response_mode='urls', empty otherwise.

Changes

No recorded changes to this operation across all 1 revision of this API.