Package ai.runapi.flux2.resources
Class TextToImageResource
java.lang.Object
ai.runapi.flux2.resources.TextToImageResource
Text To Image operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextToImageResource(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(TextToImageParams params) Creates a text to image task.ai.runapi.core.polling.TaskCreateResponsecreate(TextToImageParams params, ai.runapi.core.RequestOptions options) Creates a text to image task with per-request options.Retrieves a text to image task by ID.Retrieves a text to image task by ID with per-request options.run(TextToImageParams params) Creates a text to image task and polls until it completes.run(TextToImageParams params, ai.runapi.core.RequestOptions options) Creates a text to image task with per-request options and polls until it completes.
-
Field Details
-
ENDPOINT
API endpoint path for text to image operations.- See Also:
-
-
Constructor Details
-
TextToImageResource
public TextToImageResource(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 text to image task. -
create
public ai.runapi.core.polling.TaskCreateResponse create(TextToImageParams params, ai.runapi.core.RequestOptions options) Creates a text to image task with per-request options. -
get
Retrieves a text to image task by ID. -
get
Retrieves a text to image task by ID with per-request options. -
run
Creates a text to image task and polls until it completes. -
run
public CompletedTextToImageResponse run(TextToImageParams params, ai.runapi.core.RequestOptions options) Creates a text to image task with per-request options and polls until it completes.
-