Generate image (bitforge)
Changed onGenerates a pixel art image based on the provided parameters. Called "Generate image (style)" in the plugin.
Supported image size:
- Maximum area 200x200
Supported features:
- Style image
- Inpainting
- Init image
- Forced palette
- Transparent background
Using the Python client:
import pixellab
client = pixellab.Client(secret="YOUR_API_TOKEN")
response = client.generate_image_bitforge(
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,
"style_guidance_scale": 3,
"style_strength": 20,
"text_guidance_scale": 3
}Response
Successfully generated image
Changes
- breaking
the
request property type changed fromnumbertointeger - 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
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 the new optional request property
- info
added the new optional request property
- 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
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
the
request property default value changed from3to8 - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - 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