Skip to content

Commit

Permalink
Refactor FalAI PHP client to support custom workflows and ComfyUI
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloeatworld committed Jun 14, 2024
1 parent 41d88b3 commit c0c11a4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,21 @@ $data->requestId; // bf1bb655-9027-4d01-ac38-f85e0cb007dc
```


### Using Workflows
### Using Workflows and ComfyUI

In addition to generating images using predefined models, you can also use custom workflows with the 'workflow' method. Here's an example:
In addition to generating images using predefined models, you can also use custom workflows and ComfyUI with the 'workflow' method.
Here's an example:

```php
use MarceloEatWorld\FalAI\FalAI;
use MarceloEatWorld\FalAI\Data\GenerationData;

// Replace 'workflows/youraccount/fantasy-character-generator' with your actual workflow ID
$workflowId = 'workflows/youraccount/fantasy-character-generator';

// Replace 'comfy/youraccount/fantasy-character-generator' with your actual ComfyUI ID
$workflowId = 'comfy/youraccount/fantasy-character-generator';

$input = [
'input' => [
'character_description' => 'A brave elven warrior with long, flowing hair and a glowing magical sword.',
Expand Down

0 comments on commit c0c11a4

Please sign in to comment.