Generate Image

Generate image (pixflux)

Creates a pixel art image based on the provided parameters. Called "Create image (new)" in the plugin.

Supported image size:

  • Minimum area 32x32 and maximum area 400x400

Supported features:

  • Init image
  • Forced palette
  • Transparent background

Using the Python client:

import pixellab

client = pixellab.Client(secret="YOUR_API_TOKEN")

response = client.generate_image_pixflux(
    description="cute dragon",
    image_size=dict(width=128, height=128),
)
response.image.pil_image()
post/generate-image-pixflux

Request body

descriptionstring required

Text description of the image to generate

negative_descriptionstring

(Deprecated)

text_guidance_scalenumber

How closely to follow the text description

outline'single color black outline' | 'single color outline' | 'selective outline' | 'lineless'
shading'flat shading' | 'basic shading' | 'medium shading' | 'detailed shading' | 'highly detailed shading'
detail'low detail' | 'medium detail' | 'highly detailed'
view'side' | 'low top-down' | 'high top-down'
direction'north' | 'north-east' | 'east' | 'south-east' | 'south' | 'south-west' | 'west' | 'north-west'
isometricboolean

Generate in isometric view (weakly guiding)

no_backgroundboolean

Generate with transparent background, (blank background over 200x200 area)

init_image_strengthinteger

Strength of the initial image influence

seedinteger nullable

Seed decides the starting noise

Example request

{
  "description": "cute dragon",
  "image_size": {
    "height": 128,
    "width": 128
  },
  "no_background": true
}

Response

Successfully generated image

Changes

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