(realtime_canvas)
- create_lcm_generation - Create LCM Generation
- perform_alchemy_upscale_lcm - Perform Alchemy Upscale on a LCM image
- perform_inpainting_lcm - Perform inpainting on a LCM image
- perform_instant_refine - Perform instant refine on a LCM image
This endpoint will generate a LCM image generation.
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.realtime_canvas.create_lcm_generation(request=operations.CreateLCMGenerationRequestBody(
image_data_url='<value>',
prompt='<value>',
))
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.CreateLCMGenerationRequestBody | ✔️ | The request object to use for the request. |
operations.CreateLCMGenerationResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint will perform Alchemy Upscale on a LCM image
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.realtime_canvas.perform_alchemy_upscale_lcm(request=operations.PerformAlchemyUpscaleLCMRequestBody(
image_data_url='<value>',
prompt='<value>',
))
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.PerformAlchemyUpscaleLCMRequestBody | ✔️ | The request object to use for the request. |
operations.PerformAlchemyUpscaleLCMResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint will perform a inpainting on a LCM image
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.realtime_canvas.perform_inpainting_lcm(request=operations.PerformInpaintingLCMRequestBody(
image_data_url='<value>',
mask_data_url='<value>',
prompt='<value>',
))
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.PerformInpaintingLCMRequestBody | ✔️ | The request object to use for the request. |
operations.PerformInpaintingLCMResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint will perform instant refine on a LCM image
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.realtime_canvas.perform_instant_refine(request=operations.PerformInstantRefineRequestBody(
image_data_url='<value>',
prompt='<value>',
))
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.PerformInstantRefineRequestBody | ✔️ | The request object to use for the request. |
operations.PerformInstantRefineResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |