07-05-2024 Photomaker API Optimization

We've significantly improved our Photomaker API, achieving a remarkable 45% increase in speed compared to the previous version and cutting serving costs by nearly 50%. These enhancements greatly enhance the efficiency and affordability of our services, providing users with faster responses and lower expenses.

To achieve this, we've introduced a new parameter called "optimize," which accepts a Boolean value. Setting it to True enables the model to operate in a highly optimized mode, significantly boosting processing speed.

Performance Improvements Overview

Our optimizations have been extensively tested across various scenarios and step counts. The outcomes demonstrate considerable performance improvements, with speed enhancements ranging from 26.06% to 44.77% across different samples and step counts.

Detailed Speed Improvements by Steps and Samples

Samples30 Steps (% Faster)40 Steps (% Faster)50 Steps (% Faster)

2x High-Speed, 50% Lower-Cost, Quality Uncompromised

Input ImageOld Unoptimized API (Cost - 8 Credits, 30 Steps, 3 Samples)New Optimized API (Cost - 4 Credits, 30 Steps, 3 Samples)
Input Image 1Old API 1New API 1
Input Image 2Old API 2New API 2
Input Image 3Old API 3New API 3

Round Trip Times: Before and After Optimization

Samples30 steps (Optimized)30 steps (Unoptimized)40 steps (Optimized)40 steps (Unoptimized)50 steps (Optimized)50 steps (Unoptimized)

Try the New Optimized Photomaker API

Try out our newly optimized API to see the improvements firsthand. The integration is straightforward:

import requests

url = ""

payload = {
      "samples": 1,
      "seed": 42,
      "optimize": True,
      "steps": 30,
      "prompt": "old man img as a Wizard with blue diamonds blue background , golden ratio, fake detail, trending pixiv fanbox, acrylic palette knife, style of makoto shinkai studio ghibli genshin impact james gilleard greg rutkowski chiho aoshima",
      'init_image_url' :''

headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "authorization": "Bearer YOUR_MONSTER_API_KEY"

response =, json=payload, headers=headers)


Additional Resources -

  1. Photomaker Documentation