Generate image (pixflux)
Changed onCreates 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()
Request
- Base URLhttps://api.pixellab.ai/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"description": "cute dragon",
"image_size": {
"height": 128,
"width": 128
},
"no_background": true
}Response
Successfully generated image
Changes
- breaking
the response property
/became optional for the status - breaking
response property
usage/usdlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
added the new
generationsenum value to the/response property for the response status - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
added the optional property
/to the response with the status - info
the
response property const valuebase64was added for the status - info
removed the
base64enum value from the/response property for the response status
- breaking