(texture)
- create_texture_generation - Create Texture Generation
- delete_texture_generation_by_id - Delete Texture Generation by ID
- get_texture_generation_by_id - Get Texture Generation by ID
- get_texture_generations_by_model_id - Get texture generations by 3D Model ID
This endpoint will generate a texture generation.
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.texture.create_texture_generation(request=operations.CreateTextureGenerationRequestBody())
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.CreateTextureGenerationRequestBody | ✔️ | The request object to use for the request. |
operations.CreateTextureGenerationResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint deletes the specific texture generation.
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.texture.delete_texture_generation_by_id(id='<value>', request_body=operations.DeleteTextureGenerationByIDRequestBody())
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
id |
str | ✔️ | "id" is required (enter it either in parameters or request body) |
request_body |
Optional[operations.DeleteTextureGenerationByIDRequestBody] | ➖ | Query parameters can also be provided in the request body as a JSON object |
operations.DeleteTextureGenerationByIDResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint gets the specific texture generation.
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.texture.get_texture_generation_by_id(id='<value>', request_body=operations.GetTextureGenerationByIDRequestBody(), limit=10, offset=0)
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
id |
str | ✔️ | "id" is required (enter it either in parameters or request body) |
request_body |
Optional[operations.GetTextureGenerationByIDRequestBody] | ➖ | Query parameters can also be provided in the request body as a JSON object |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
operations.GetTextureGenerationByIDResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
This endpoint gets the specific texture generations by the 3d model id.
import leonardoaisdk
from leonardoaisdk.models import operations
s = leonardoaisdk.LeonardoAiSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.texture.get_texture_generations_by_model_id(model_id='<value>', request_body=operations.GetTextureGenerationsByModelIDRequestBody(), limit=10, offset=0)
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
model_id |
str | ✔️ | "modelId" is required (enter it either in parameters or request body) |
request_body |
Optional[operations.GetTextureGenerationsByModelIDRequestBody] | ➖ | Query parameters can also be provided in the request body as a JSON object |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
operations.GetTextureGenerationsByModelIDResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |