Skip to content

Latest commit

 

History

History
172 lines (110 loc) · 13.1 KB

README.md

File metadata and controls

172 lines (110 loc) · 13.1 KB

Texture

(texture)

Available Operations

create_texture_generation

This endpoint will generate a texture generation.

Example Usage

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

Parameters

Parameter Type Required Description
request operations.CreateTextureGenerationRequestBody ✔️ The request object to use for the request.

Response

operations.CreateTextureGenerationResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

delete_texture_generation_by_id

This endpoint deletes the specific texture generation.

Example Usage

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

Parameters

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

Response

operations.DeleteTextureGenerationByIDResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

get_texture_generation_by_id

This endpoint gets the specific texture generation.

Example Usage

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

Parameters

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

Response

operations.GetTextureGenerationByIDResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

get_texture_generations_by_model_id

This endpoint gets the specific texture generations by the 3d model id.

Example Usage

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

Parameters

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

Response

operations.GetTextureGenerationsByModelIDResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /