Rotate
Rotate character or object
Rotates 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()
post/rotate
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
No recorded changes to this endpoint across all 1 revision of this API.