Package ai.fal.client
Class FalClientImpl
java.lang.Object
ai.fal.client.FalClientImpl
- All Implemented Interfaces:
FalClient
-
Method Summary
Modifier and TypeMethodDescriptionqueue()
Get the queue client for interacting with the FAL queue.<O> Output
<O> run
(String endpointId, RunOptions<O> options) Run the specified endpoint with the provided options.<O> Output
<O> subscribe
(String endpointId, SubscribeOptions<O> options) Subscribe to the specified endpoint with the provided options.
-
Method Details
-
run
Description copied from interface:FalClient
Run the specified endpoint with the provided options. This method is only recommended for short-running operations. For long-running operations, consider using theFalClient.subscribe(String, SubscribeOptions)
method to subscribe to the endpoint's results via the queue orFalClient.queue()
client for specific queue operations. . -
subscribe
Description copied from interface:FalClient
Subscribe to the specified endpoint with the provided options. This method is recommended for long-running operations. The subscription will return the result once the operation is completed. -
queue
Description copied from interface:FalClient
Get the queue client for interacting with the FAL queue.
-