improved

Txt2Img API Model Upgrade

We’ve transitioned from Stable Diffusion v1.5 to the Pix-Art-Sigma model.

PixArt-Σ is a cutting-edge Diffusion Transformer model (DiT) that directly generates images in stunning 4K resolution. This upgrade brings a remarkable leap in quality, offering images with higher fidelity and better alignment with text prompts compared to its predecessor, PixArt-α.

What Can You Expect?

Massive improvements in image quality! Check out the comparisons below to see the dramatic enhancements.

New is Way Better

PromptOld SDv1.5New Pix-Art-Sigma
Surreal portrait of Anna Sawai, detailed, colorfulImageImage
Ghibli-style house, courtyard, Mediterranean plantsImageImage
Temptress of the Crystal, aurora borealis, etherealImageImage
Mountain village, sunset, golden hour, acrylic paintingImageImage

See How Steps Affect the Image Generation Process

StepsOld SDv1.5Pix-Art-Sigma
15ImageImage
20ImageImage
30ImageImage
40ImageImage
50ImageImage

Try the New Txt2Img API

Try out our new Txt2Img API to see the improvements firsthand. The integration is straightforward:

import requests

url = "https://api.monsterapi.ai/v1/generate/txt2img"

payload = {
      "samples": 1,
      "seed": 42,
      "steps": 30,
      "prompt": "Dog portrait, watercolor style inspired by an existing photograph, emulating an octane render quality, 8K resolution, aiming for photorealism akin to trending ArtStation pieces, bathed in soft, volumetric, cinematic lighting with chiaroscuro effect, reminiscent of award-winning photography, with the feel of a masterpiece oil painting with influences of Raphael, Caravaggio, Greg Rutkowski, Beeple."
  }

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

response = requests.post(url, json=payload, headers=headers)

print(response.text) 

Additional Resources -

  1. Txt2Img Documentation

Publish Date: 17-05-2024