Package ai.fal.client

Interface AsyncFalClient

All Known Implementing Classes:
AsyncFalClientImpl

public interface AsyncFalClient
  • Method Details

    • run

      <O> CompletableFuture<ai.fal.client.Output<O>> run(String endpointId, ai.fal.client.RunOptions<O> options)
    • subscribe

      <O> CompletableFuture<ai.fal.client.Output<O>> subscribe(String endpointId, ai.fal.client.SubscribeOptions<O> options)
    • queue

    • withConfig

      static AsyncFalClient withConfig(@Nonnull ai.fal.client.ClientConfig config)
      Create a new client instance with the provided configuration.
      Parameters:
      config - The client configuration.
      Returns:
      The new client instance.
    • withEnvCredentials

      static AsyncFalClient withEnvCredentials()
      Create a new client instance with the credentials resolved from the `FAL_KEY` environment variable.
      Returns:
      The new client instance.
    • withProxyUrl

      static AsyncFalClient withProxyUrl(@Nonnull String proxyUrl)
      Create a new client instance with the provided proxy URL. With this configuration all requests will be proxied through the provided URL and the fal target url will be in a request header called `X-Fal-Target-Url`.
      Parameters:
      proxyUrl - The proxy URL.
      Returns:
      The new client instance.