Package ai.runapi.recraft.resources
Class RemoveBackgroundResource
java.lang.Object
ai.runapi.recraft.resources.RemoveBackgroundResource
Remove Background operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoveBackgroundResource(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(RemoveBackgroundParams params) Creates a remove background task.ai.runapi.core.polling.TaskCreateResponsecreate(RemoveBackgroundParams params, ai.runapi.core.RequestOptions options) Creates a remove background task with per-request options.Retrieves a remove background task by ID.Retrieves a remove background task by ID with per-request options.run(RemoveBackgroundParams params) Creates a remove background task and polls until it completes.run(RemoveBackgroundParams params, ai.runapi.core.RequestOptions options) Creates a remove background task with per-request options and polls until it completes.
-
Field Details
-
ENDPOINT
API endpoint path for remove background operations.- See Also:
-
-
Constructor Details
-
RemoveBackgroundResource
public RemoveBackgroundResource(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 remove background task. -
create
public ai.runapi.core.polling.TaskCreateResponse create(RemoveBackgroundParams params, ai.runapi.core.RequestOptions options) Creates a remove background task with per-request options. -
get
Retrieves a remove background task by ID. -
get
Retrieves a remove background task by ID with per-request options. -
run
Creates a remove background task and polls until it completes. -
run
public CompletedRemoveBackgroundResponse run(RemoveBackgroundParams params, ai.runapi.core.RequestOptions options) Creates a remove background task with per-request options and polls until it completes.
-