Classes & Interfaces
FalClient
queue and storage APIs.
Properties
Properties
| Name | Type | Description |
|---|---|---|
queue | QueueClient | The queue client to interact with the queue API. |
realtime | RealtimeClient | The realtime client to interact with the realtime API and receive updates in real-time. |
storage | StorageClient | The storage client to interact with the storage API. |
streaming | StreamingClient | The streaming client to interact with the streaming API. |
stream | StreamingClient["stream"] | Calls a fal app that supports streaming and provides a streaming-capable object as a result, that can be used to get partial results through either AsyncIterator or through an event listener. |
Methods
Methods
run
endpointId.| Parameter | Type | Description |
|---|---|---|
endpointId | Id | The endpoint id, e.g. fal-ai/fast-sdxl. |
options | RunOptions<InputType<Id>> | The request options, including the input payload. |
Promise<Result<OutputType<Id>>>subscribe
| Parameter | Type | Description |
|---|---|---|
endpointId | Id | - The ID of the API endpoint. |
options | RunOptions<InputType<Id>> & QueueSubscribeOptions | - Options to configure how the request is run and how updates are received. |
Promise<Result<OutputType<Id>>>Functions
createFalClient
FalClient.
| Parameter | Type | Description |
|---|---|---|
userConfig | Config | Optional configuration to override the default settings. |
FalClient