Package ai.runapi.recraft.resources
Class UpscaleImageResource
java.lang.Object
ai.runapi.recraft.resources.UpscaleImageResource
Upscale Image operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpscaleImageResource(ai.runapi.core.http.HttpTransport transport, ai.runapi.core.ClientOptions options) Creates a resource bound to the supplied transport and client options. -
Method Summary
Modifier and TypeMethodDescriptionai.runapi.core.polling.TaskCreateResponsecreate(UpscaleImageParams params) Creates a upscale image task.ai.runapi.core.polling.TaskCreateResponsecreate(UpscaleImageParams params, ai.runapi.core.RequestOptions options) Creates a upscale image task with per-request options.Retrieves a upscale image task by ID.Retrieves a upscale image task by ID with per-request options.run(UpscaleImageParams params) Creates a upscale image task and polls until it completes.run(UpscaleImageParams params, ai.runapi.core.RequestOptions options) Creates a upscale image task with per-request options and polls until it completes.
-
Field Details
-
ENDPOINT
API endpoint path for upscale image operations.- See Also:
-
-
Constructor Details
-
UpscaleImageResource
public UpscaleImageResource(ai.runapi.core.http.HttpTransport transport, ai.runapi.core.ClientOptions options) Creates a resource bound to the supplied transport and client options.
-
-
Method Details
-
create
Creates a upscale image task. -
create
public ai.runapi.core.polling.TaskCreateResponse create(UpscaleImageParams params, ai.runapi.core.RequestOptions options) Creates a upscale image task with per-request options. -
get
Retrieves a upscale image task by ID. -
get
Retrieves a upscale image task by ID with per-request options. -
run
Creates a upscale image task and polls until it completes. -
run
public CompletedUpscaleImageResponse run(UpscaleImageParams params, ai.runapi.core.RequestOptions options) Creates a upscale image task with per-request options and polls until it completes.
-