Rotate character or object
Changed onRotates a pixel art image based on the provided parameters. Called "Rotate" in the plugin.
Supported image sizes:
- 16x16
- 32x32
- 64x64
- 128x128
Supported features:
- Init image
- Forced palette
Using the Python client:
import pixellab
client = pixellab.Client(secret="YOUR_API_TOKEN")
response = client.rotate(
from_view="side",
to_view="side",
from_direction="south",
to_direction="east",
image_size=dict(width=16, height=16),
from_image=image_of_subject_facing_south,
)
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",
"from_direction": "south",
"from_view": "side",
"image_guidance_scale": 7.5,
"image_size": {
"height": 128,
"width": 128
},
"to_direction": "east",
"to_view": "side"
}Response
Successfully generated image
Changes
- breaking
added the new required request property
/ - breaking
the
request property type changed from no type toobject - 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
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 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
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