@howells/motif-sdk 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/image.d.ts +8 -0
- package/dist/image.js +1078 -183
- package/dist/index.cjs +1460 -447
- package/dist/index.d.cts +2288 -410
- package/dist/index.d.ts +2288 -410
- package/dist/index.js +1460 -447
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -387,6 +387,19 @@ interface JobStatus {
|
|
|
387
387
|
queuePosition?: number;
|
|
388
388
|
status: "queued" | "processing" | "completed" | "failed";
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* A tool run accepted by the fal queue.
|
|
392
|
+
*
|
|
393
|
+
* Returned by `FalClient.submitTool`, and the handle passed back to
|
|
394
|
+
* `checkToolStatus` / `getToolResult`. The job itself carries no cost: the
|
|
395
|
+
* rate lives on the registry entry as `FalToolConfig.price`, and for a queued
|
|
396
|
+
* endpoint it is usually per-megapixel or metered, so the final cost is only
|
|
397
|
+
* known once the result is in.
|
|
398
|
+
*/
|
|
399
|
+
interface QueuedToolJob {
|
|
400
|
+
endpoint: string;
|
|
401
|
+
requestId: string;
|
|
402
|
+
}
|
|
390
403
|
/** ─── Configuration ──────────────────────────────────────────── */
|
|
391
404
|
interface FalClientConfig {
|
|
392
405
|
apiKey: string;
|
|
@@ -463,9 +476,9 @@ declare const VIDEO_TEXT_TO_VIDEO_TOP_15: LeaderboardSnapshot;
|
|
|
463
476
|
declare const VIDEO_IMAGE_TO_VIDEO_TOP_15: LeaderboardSnapshot;
|
|
464
477
|
|
|
465
478
|
declare const MODELS: Record<string, ModelConfig>;
|
|
466
|
-
declare const GENERATION_MODELS: readonly ["gpt2", "gpt", "banana2", "banana", "gemini", "gemini3", "seedream4", "seedream45", "seedream5", "seedream5-lite", "flux2-max", "flux2-pro", "flux2-flex", "flux2-dev", "flux2-turbo", "flux", "flux-fast", "recraft", "recraft4", "ideogram", "ideogram4", "grok-image", "qwen"];
|
|
479
|
+
declare const GENERATION_MODELS: readonly ["gpt2", "gpt", "banana2", "banana", "gemini", "gemini3", "seedream4", "seedream45", "seedream5", "seedream5-lite", "flux2-max", "flux2-pro", "flux2-flex", "flux2-dev", "flux2-turbo", "flux", "flux-fast", "recraft", "recraft4", "ideogram", "ideogram4", "grok-image", "qwen", "qwen3"];
|
|
467
480
|
/** Models whose fal endpoints support image editing (vary/edit flows). */
|
|
468
|
-
declare const EDIT_CAPABLE_MODELS: ("gpt2" | "gpt" | "banana2" | "banana" | "gemini" | "gemini3" | "seedream4" | "seedream45" | "seedream5" | "seedream5-lite" | "flux2-max" | "flux2-pro" | "flux2-flex" | "flux2-dev" | "flux2-turbo" | "flux" | "flux-fast" | "recraft" | "recraft4" | "ideogram" | "ideogram4" | "grok-image" | "qwen")[];
|
|
481
|
+
declare const EDIT_CAPABLE_MODELS: ("gpt2" | "gpt" | "banana2" | "banana" | "gemini" | "gemini3" | "seedream4" | "seedream45" | "seedream5" | "seedream5-lite" | "flux2-max" | "flux2-pro" | "flux2-flex" | "flux2-dev" | "flux2-turbo" | "flux" | "flux-fast" | "recraft" | "recraft4" | "ideogram" | "ideogram4" | "grok-image" | "qwen" | "qwen3")[];
|
|
469
482
|
declare const UTILITY_MODELS: readonly ["clarity", "crystal", "rmbg", "bria"];
|
|
470
483
|
declare const VIDEO_MODELS: readonly ["kling"];
|
|
471
484
|
type GenerationModelName = (typeof GENERATION_MODELS)[number];
|
|
@@ -474,6 +487,23 @@ declare const RECRAFT_STYLES: readonly ["realistic_image", "realistic_image/b_an
|
|
|
474
487
|
/** Ideogram v3 top-level style categories. Pass as the `style` field in GenerateOptions. */
|
|
475
488
|
declare const IDEOGRAM_STYLES: readonly ["AUTO", "GENERAL", "REALISTIC", "DESIGN"];
|
|
476
489
|
|
|
490
|
+
/**
|
|
491
|
+
* `MotifError` and its coercion helper.
|
|
492
|
+
*
|
|
493
|
+
* Extracted from `server.ts` so `server-tools.ts` can construct errors without
|
|
494
|
+
* importing back into `server.ts` — that import was a dependency cycle. Both
|
|
495
|
+
* `server.ts` and `server-tools.ts` import from here, and `server.ts`
|
|
496
|
+
* re-exports `MotifError` so the package's public surface is unchanged.
|
|
497
|
+
*/
|
|
498
|
+
declare class MotifError extends Error {
|
|
499
|
+
readonly status: number;
|
|
500
|
+
readonly code?: string;
|
|
501
|
+
/** fal's request-correlation id (from the `x-fal-request-id` header or the
|
|
502
|
+
* error body). Ties a failure back to fal's dashboard/support. */
|
|
503
|
+
readonly requestId?: string;
|
|
504
|
+
constructor(message: string, status: number, code?: string, requestId?: string);
|
|
505
|
+
}
|
|
506
|
+
|
|
477
507
|
/**
|
|
478
508
|
* FalClient — the fal-native client.
|
|
479
509
|
*
|
|
@@ -540,6 +570,24 @@ declare class FalClient {
|
|
|
540
570
|
/** ─── Utilities ───────────────────────────────────────────── */
|
|
541
571
|
/** Run a registered fal utility/tool endpoint. */
|
|
542
572
|
runTool(options: ToolRunOptions): Promise<Result<ToolResponse, MotifError>>;
|
|
573
|
+
/** ─── Queue-Based Tools ───────────────────────────────────── */
|
|
574
|
+
/**
|
|
575
|
+
* Submit a tool run to the fal queue. Returns as soon as fal accepts it.
|
|
576
|
+
*
|
|
577
|
+
* The queued counterpart to `runTool`, for endpoints that outrun the
|
|
578
|
+
* synchronous request timeout. Callers choose the path — neither one falls
|
|
579
|
+
* back to the other.
|
|
580
|
+
*/
|
|
581
|
+
submitTool(options: ToolRunOptions): Promise<Result<QueuedToolJob, MotifError>>;
|
|
582
|
+
/** Poll one queued tool run. */
|
|
583
|
+
checkToolStatus(job: QueuedToolJob): Promise<Result<JobStatus, MotifError>>;
|
|
584
|
+
/** Fetch the finished payload for a queued tool run. */
|
|
585
|
+
getToolResult(job: QueuedToolJob): Promise<Result<ToolResponse, MotifError>>;
|
|
586
|
+
/**
|
|
587
|
+
* Submit, poll to completion, and return the result. The convenience path
|
|
588
|
+
* for tools whose registry entry sets `queued`.
|
|
589
|
+
*/
|
|
590
|
+
runToolQueued(options: ToolRunOptions, onProgress?: (status: string, queuePosition?: number) => void): Promise<Result<ToolResponse, MotifError>>;
|
|
543
591
|
/**
|
|
544
592
|
* Delete fal's stored IO payloads for a completed request.
|
|
545
593
|
*
|
|
@@ -558,69 +606,56 @@ declare class FalClient {
|
|
|
558
606
|
/** Model registry. */
|
|
559
607
|
get models(): Record<string, ModelConfig>;
|
|
560
608
|
/** Generation model keys. */
|
|
561
|
-
get generationModels(): readonly ["gpt2", "gpt", "banana2", "banana", "gemini", "gemini3", "seedream4", "seedream45", "seedream5", "seedream5-lite", "flux2-max", "flux2-pro", "flux2-flex", "flux2-dev", "flux2-turbo", "flux", "flux-fast", "recraft", "recraft4", "ideogram", "ideogram4", "grok-image", "qwen"];
|
|
609
|
+
get generationModels(): readonly ["gpt2", "gpt", "banana2", "banana", "gemini", "gemini3", "seedream4", "seedream45", "seedream5", "seedream5-lite", "flux2-max", "flux2-pro", "flux2-flex", "flux2-dev", "flux2-turbo", "flux", "flux-fast", "recraft", "recraft4", "ideogram", "ideogram4", "grok-image", "qwen", "qwen3"];
|
|
562
610
|
/** Utility model keys. */
|
|
563
611
|
get utilityModels(): readonly ["clarity", "crystal", "rmbg", "bria"];
|
|
564
612
|
/** Registered fal utility/tool endpoints. */
|
|
565
613
|
get tools(): {
|
|
566
|
-
readonly
|
|
567
|
-
readonly category: "
|
|
568
|
-
readonly
|
|
569
|
-
|
|
570
|
-
readonly operating_resolution: "1024x1024";
|
|
571
|
-
readonly output_format: "png";
|
|
572
|
-
readonly refine_foreground: true;
|
|
573
|
-
};
|
|
574
|
-
readonly description: "High-resolution dichotomous image segmentation and background removal.";
|
|
575
|
-
readonly endpoint: "fal-ai/birefnet/v2";
|
|
614
|
+
readonly "depth-anything": {
|
|
615
|
+
readonly category: "preprocess";
|
|
616
|
+
readonly description: "Generate Depth Anything v2 depth maps from input images.";
|
|
617
|
+
readonly endpoint: "fal-ai/image-preprocessors/depth-anything/v2";
|
|
576
618
|
readonly inputField: "image_url";
|
|
577
619
|
readonly inputKind: "image";
|
|
578
|
-
readonly name: "
|
|
579
|
-
readonly outputKeys: ["image"
|
|
620
|
+
readonly name: "Depth Anything v2 Preprocessor";
|
|
621
|
+
readonly outputKeys: ["image"];
|
|
622
|
+
readonly price: {
|
|
623
|
+
readonly kind: "metered";
|
|
624
|
+
};
|
|
580
625
|
readonly pricing: "$0/compute-second listed by fal";
|
|
581
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/
|
|
582
|
-
readonly task: "
|
|
626
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/depth-anything/v2";
|
|
627
|
+
readonly task: "depth preprocessing";
|
|
583
628
|
};
|
|
584
|
-
readonly
|
|
585
|
-
readonly category: "
|
|
586
|
-
readonly description: "
|
|
587
|
-
readonly endpoint: "fal-ai/
|
|
629
|
+
readonly dwpose: {
|
|
630
|
+
readonly category: "preprocess";
|
|
631
|
+
readonly description: "Extract body, hand, and face pose skeletons from an image.";
|
|
632
|
+
readonly endpoint: "fal-ai/dwpose";
|
|
588
633
|
readonly inputField: "image_url";
|
|
589
634
|
readonly inputKind: "image";
|
|
590
|
-
readonly name: "
|
|
635
|
+
readonly name: "DWPose Estimation";
|
|
591
636
|
readonly outputKeys: ["image"];
|
|
592
|
-
readonly
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
};
|
|
596
|
-
readonly "bria-video-rmbg": {
|
|
597
|
-
readonly category: "background";
|
|
598
|
-
readonly defaultOptions: {
|
|
599
|
-
readonly background_color: "Black";
|
|
600
|
-
readonly output_container_and_codec: "webm_vp9";
|
|
601
|
-
readonly preserve_audio: true;
|
|
637
|
+
readonly price: {
|
|
638
|
+
readonly kind: "second";
|
|
639
|
+
readonly usd: 0.0006;
|
|
602
640
|
};
|
|
603
|
-
readonly
|
|
604
|
-
readonly
|
|
605
|
-
readonly
|
|
606
|
-
readonly inputKind: "video";
|
|
607
|
-
readonly name: "Bria Video Background Removal";
|
|
608
|
-
readonly outputKeys: ["video"];
|
|
609
|
-
readonly pricing: "$0.14/sec";
|
|
610
|
-
readonly sourceUrl: "https://fal.ai/models/bria/video/background-removal";
|
|
611
|
-
readonly task: "video background removal";
|
|
641
|
+
readonly pricing: "$0.0006/compute-second";
|
|
642
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/dwpose";
|
|
643
|
+
readonly task: "pose preprocessing";
|
|
612
644
|
};
|
|
613
|
-
readonly
|
|
645
|
+
readonly hed: {
|
|
614
646
|
readonly category: "preprocess";
|
|
615
|
-
readonly description: "Generate
|
|
616
|
-
readonly endpoint: "fal-ai/image-preprocessors/
|
|
647
|
+
readonly description: "Generate HED soft edge maps for ControlNet-style workflows.";
|
|
648
|
+
readonly endpoint: "fal-ai/image-preprocessors/hed";
|
|
617
649
|
readonly inputField: "image_url";
|
|
618
650
|
readonly inputKind: "image";
|
|
619
|
-
readonly name: "
|
|
651
|
+
readonly name: "HED Edge Preprocessor";
|
|
620
652
|
readonly outputKeys: ["image"];
|
|
653
|
+
readonly price: {
|
|
654
|
+
readonly kind: "metered";
|
|
655
|
+
};
|
|
621
656
|
readonly pricing: "$0/compute-second listed by fal";
|
|
622
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/
|
|
623
|
-
readonly task: "
|
|
657
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/hed";
|
|
658
|
+
readonly task: "edge preprocessing";
|
|
624
659
|
};
|
|
625
660
|
readonly lineart: {
|
|
626
661
|
readonly category: "preprocess";
|
|
@@ -633,6 +668,9 @@ declare class FalClient {
|
|
|
633
668
|
readonly inputKind: "image";
|
|
634
669
|
readonly name: "Line Art Preprocessor";
|
|
635
670
|
readonly outputKeys: ["image"];
|
|
671
|
+
readonly price: {
|
|
672
|
+
readonly kind: "metered";
|
|
673
|
+
};
|
|
636
674
|
readonly pricing: "$0/compute-second listed by fal";
|
|
637
675
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/lineart";
|
|
638
676
|
readonly task: "image preprocessing";
|
|
@@ -649,6 +687,9 @@ declare class FalClient {
|
|
|
649
687
|
readonly inputKind: "image";
|
|
650
688
|
readonly name: "Marigold Depth Estimation";
|
|
651
689
|
readonly outputKeys: ["image"];
|
|
690
|
+
readonly price: {
|
|
691
|
+
readonly kind: "metered";
|
|
692
|
+
};
|
|
652
693
|
readonly pricing: "$0/compute-second listed by fal";
|
|
653
694
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/marigold-depth";
|
|
654
695
|
readonly task: "depth map";
|
|
@@ -665,6 +706,9 @@ declare class FalClient {
|
|
|
665
706
|
readonly inputKind: "image";
|
|
666
707
|
readonly name: "MiDaS Depth Estimation";
|
|
667
708
|
readonly outputKeys: ["image"];
|
|
709
|
+
readonly price: {
|
|
710
|
+
readonly kind: "metered";
|
|
711
|
+
};
|
|
668
712
|
readonly pricing: "$0/compute-second listed by fal";
|
|
669
713
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/depth";
|
|
670
714
|
readonly task: "depth map";
|
|
@@ -677,36 +721,42 @@ declare class FalClient {
|
|
|
677
721
|
readonly inputKind: "image";
|
|
678
722
|
readonly name: "MiDaS Preprocessor";
|
|
679
723
|
readonly outputKeys: ["depth_map", "normal_map"];
|
|
724
|
+
readonly price: {
|
|
725
|
+
readonly kind: "metered";
|
|
726
|
+
};
|
|
680
727
|
readonly pricing: "$0/compute-second listed by fal";
|
|
681
728
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/midas";
|
|
682
729
|
readonly task: "depth and normal preprocessing";
|
|
683
730
|
};
|
|
684
|
-
readonly
|
|
685
|
-
readonly category: "
|
|
686
|
-
readonly description: "
|
|
687
|
-
readonly endpoint: "fal-ai/
|
|
688
|
-
readonly inputField: "
|
|
689
|
-
readonly inputKind: "
|
|
690
|
-
readonly name: "
|
|
691
|
-
readonly outputKeys: ["
|
|
692
|
-
readonly
|
|
693
|
-
|
|
694
|
-
readonly task: "vision moderation";
|
|
695
|
-
};
|
|
696
|
-
readonly rembg: {
|
|
697
|
-
readonly category: "background";
|
|
698
|
-
readonly defaultOptions: {
|
|
699
|
-
readonly crop_to_bbox: false;
|
|
731
|
+
readonly mlsd: {
|
|
732
|
+
readonly category: "preprocess";
|
|
733
|
+
readonly description: "Detect straight line segments for architectural and interior control maps.";
|
|
734
|
+
readonly endpoint: "fal-ai/image-preprocessors/mlsd";
|
|
735
|
+
readonly inputField: "image_url";
|
|
736
|
+
readonly inputKind: "image";
|
|
737
|
+
readonly name: "M-LSD Line Preprocessor";
|
|
738
|
+
readonly outputKeys: ["image"];
|
|
739
|
+
readonly price: {
|
|
740
|
+
readonly kind: "metered";
|
|
700
741
|
};
|
|
701
|
-
readonly
|
|
702
|
-
readonly
|
|
742
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
743
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/mlsd";
|
|
744
|
+
readonly task: "line segment preprocessing";
|
|
745
|
+
};
|
|
746
|
+
readonly pidi: {
|
|
747
|
+
readonly category: "preprocess";
|
|
748
|
+
readonly description: "Generate PiDiNet soft edge maps from an input image.";
|
|
749
|
+
readonly endpoint: "fal-ai/image-preprocessors/pidi";
|
|
703
750
|
readonly inputField: "image_url";
|
|
704
751
|
readonly inputKind: "image";
|
|
705
|
-
readonly name: "
|
|
752
|
+
readonly name: "PiDiNet Edge Preprocessor";
|
|
706
753
|
readonly outputKeys: ["image"];
|
|
754
|
+
readonly price: {
|
|
755
|
+
readonly kind: "metered";
|
|
756
|
+
};
|
|
707
757
|
readonly pricing: "$0/compute-second listed by fal";
|
|
708
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/
|
|
709
|
-
readonly task: "
|
|
758
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/pidi";
|
|
759
|
+
readonly task: "edge preprocessing";
|
|
710
760
|
};
|
|
711
761
|
readonly "sam-preprocessor": {
|
|
712
762
|
readonly category: "preprocess";
|
|
@@ -716,6 +766,9 @@ declare class FalClient {
|
|
|
716
766
|
readonly inputKind: "image";
|
|
717
767
|
readonly name: "SAM Preprocessor";
|
|
718
768
|
readonly outputKeys: ["image"];
|
|
769
|
+
readonly price: {
|
|
770
|
+
readonly kind: "metered";
|
|
771
|
+
};
|
|
719
772
|
readonly pricing: "$0/compute-second listed by fal";
|
|
720
773
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/sam";
|
|
721
774
|
readonly task: "segmentation preprocessing";
|
|
@@ -735,7 +788,11 @@ declare class FalClient {
|
|
|
735
788
|
readonly inputKind: "image";
|
|
736
789
|
readonly name: "SAM 2 Auto Segment";
|
|
737
790
|
readonly outputKeys: ["combined_mask", "individual_masks"];
|
|
791
|
+
readonly price: {
|
|
792
|
+
readonly kind: "metered";
|
|
793
|
+
};
|
|
738
794
|
readonly pricing: "$0/compute-second listed by fal";
|
|
795
|
+
readonly queued: true;
|
|
739
796
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam2/auto-segment";
|
|
740
797
|
readonly task: "automatic image segmentation";
|
|
741
798
|
};
|
|
@@ -752,7 +809,11 @@ declare class FalClient {
|
|
|
752
809
|
readonly inputKind: "image";
|
|
753
810
|
readonly name: "SAM 3.1 Image";
|
|
754
811
|
readonly outputKeys: ["image", "masks", "metadata", "scores", "boxes"];
|
|
755
|
-
readonly
|
|
812
|
+
readonly price: {
|
|
813
|
+
readonly kind: "call";
|
|
814
|
+
readonly usd: 0.01;
|
|
815
|
+
};
|
|
816
|
+
readonly pricing: "$0.01/request";
|
|
756
817
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3-1/image";
|
|
757
818
|
readonly task: "promptable image segmentation";
|
|
758
819
|
};
|
|
@@ -768,54 +829,14 @@ declare class FalClient {
|
|
|
768
829
|
readonly inputKind: "video";
|
|
769
830
|
readonly name: "SAM 3.1 Video";
|
|
770
831
|
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
771
|
-
readonly
|
|
832
|
+
readonly price: {
|
|
833
|
+
readonly kind: "metered";
|
|
834
|
+
};
|
|
835
|
+
readonly pricing: "$0.01/16 frames of video input";
|
|
836
|
+
readonly queued: true;
|
|
772
837
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3-1/video";
|
|
773
838
|
readonly task: "multi-object video segmentation";
|
|
774
839
|
};
|
|
775
|
-
readonly "sam3-3d-align": {
|
|
776
|
-
readonly category: "3d";
|
|
777
|
-
readonly description: "Align SAM 3D objects and bodies into a shared scene.";
|
|
778
|
-
readonly endpoint: "fal-ai/sam-3/3d-align";
|
|
779
|
-
readonly inputField: "image_url";
|
|
780
|
-
readonly inputKind: "image";
|
|
781
|
-
readonly name: "SAM 3D Align";
|
|
782
|
-
readonly outputKeys: ["scene_glb", "metadata", "artifacts_zip"];
|
|
783
|
-
readonly pricing: "fal pricing varies by scene";
|
|
784
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-align";
|
|
785
|
-
readonly task: "3D scene alignment";
|
|
786
|
-
};
|
|
787
|
-
readonly "sam3-3d-body": {
|
|
788
|
-
readonly category: "3d";
|
|
789
|
-
readonly defaultOptions: {
|
|
790
|
-
readonly export_meshes: true;
|
|
791
|
-
readonly include_3d_keypoints: true;
|
|
792
|
-
readonly include_mhr_params: true;
|
|
793
|
-
};
|
|
794
|
-
readonly description: "Reconstruct human body meshes and keypoints from a single image.";
|
|
795
|
-
readonly endpoint: "fal-ai/sam-3/3d-body";
|
|
796
|
-
readonly inputField: "image_url";
|
|
797
|
-
readonly inputKind: "image";
|
|
798
|
-
readonly name: "SAM 3D Body";
|
|
799
|
-
readonly outputKeys: ["model_glb", "visualization", "meshes", "metadata"];
|
|
800
|
-
readonly pricing: "$0.015/inference";
|
|
801
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-body";
|
|
802
|
-
readonly task: "single-image 3D body reconstruction";
|
|
803
|
-
};
|
|
804
|
-
readonly "sam3-3d-objects": {
|
|
805
|
-
readonly category: "3d";
|
|
806
|
-
readonly defaultOptions: {
|
|
807
|
-
readonly prompt: "car";
|
|
808
|
-
};
|
|
809
|
-
readonly description: "Reconstruct one or more 3D objects from an image and prompts.";
|
|
810
|
-
readonly endpoint: "fal-ai/sam-3/3d-objects";
|
|
811
|
-
readonly inputField: "image_url";
|
|
812
|
-
readonly inputKind: "image";
|
|
813
|
-
readonly name: "SAM 3D Objects";
|
|
814
|
-
readonly outputKeys: ["gaussian_splat", "model_glb", "metadata", "individual_splats", "individual_glbs", "artifacts_zip"];
|
|
815
|
-
readonly pricing: "$0.02/generation";
|
|
816
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-objects";
|
|
817
|
-
readonly task: "single-image 3D object reconstruction";
|
|
818
|
-
};
|
|
819
840
|
readonly "sam3-image": {
|
|
820
841
|
readonly category: "segmentation";
|
|
821
842
|
readonly defaultOptions: {
|
|
@@ -829,6 +850,10 @@ declare class FalClient {
|
|
|
829
850
|
readonly inputKind: "image";
|
|
830
851
|
readonly name: "SAM 3 Image";
|
|
831
852
|
readonly outputKeys: ["image", "masks", "metadata", "scores", "boxes"];
|
|
853
|
+
readonly price: {
|
|
854
|
+
readonly kind: "call";
|
|
855
|
+
readonly usd: 0.005;
|
|
856
|
+
};
|
|
832
857
|
readonly pricing: "$0.005/request";
|
|
833
858
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/image";
|
|
834
859
|
readonly task: "promptable image segmentation";
|
|
@@ -844,7 +869,11 @@ declare class FalClient {
|
|
|
844
869
|
readonly inputField: "image_url";
|
|
845
870
|
readonly inputKind: "image";
|
|
846
871
|
readonly name: "SAM 3 Image RLE";
|
|
847
|
-
readonly outputKeys: ["
|
|
872
|
+
readonly outputKeys: ["rle", "scores", "boxes", "metadata"];
|
|
873
|
+
readonly price: {
|
|
874
|
+
readonly kind: "call";
|
|
875
|
+
readonly usd: 0.005;
|
|
876
|
+
};
|
|
848
877
|
readonly pricing: "$0.005/request";
|
|
849
878
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/image-rle";
|
|
850
879
|
readonly task: "promptable image segmentation to RLE";
|
|
@@ -863,7 +892,11 @@ declare class FalClient {
|
|
|
863
892
|
readonly inputKind: "video";
|
|
864
893
|
readonly name: "SAM 3 Video";
|
|
865
894
|
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
866
|
-
readonly
|
|
895
|
+
readonly price: {
|
|
896
|
+
readonly kind: "metered";
|
|
897
|
+
};
|
|
898
|
+
readonly pricing: "$0.005/16 frames of video input";
|
|
899
|
+
readonly queued: true;
|
|
867
900
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video";
|
|
868
901
|
readonly task: "promptable video segmentation";
|
|
869
902
|
};
|
|
@@ -879,104 +912,1654 @@ declare class FalClient {
|
|
|
879
912
|
readonly inputField: "video_url";
|
|
880
913
|
readonly inputKind: "video";
|
|
881
914
|
readonly name: "SAM 3 Video RLE";
|
|
882
|
-
readonly outputKeys: ["
|
|
883
|
-
readonly
|
|
915
|
+
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
916
|
+
readonly price: {
|
|
917
|
+
readonly kind: "metered";
|
|
918
|
+
};
|
|
919
|
+
readonly pricing: "$0.005/16 frames of video";
|
|
920
|
+
readonly queued: true;
|
|
884
921
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video-rle";
|
|
885
922
|
readonly task: "promptable video segmentation to RLE";
|
|
886
923
|
};
|
|
887
|
-
readonly
|
|
888
|
-
readonly category: "
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
924
|
+
readonly scribble: {
|
|
925
|
+
readonly category: "preprocess";
|
|
926
|
+
readonly description: "Turn an image into a scribble-style control map.";
|
|
927
|
+
readonly endpoint: "fal-ai/image-preprocessors/scribble";
|
|
928
|
+
readonly inputField: "image_url";
|
|
929
|
+
readonly inputKind: "image";
|
|
930
|
+
readonly name: "Scribble Preprocessor";
|
|
931
|
+
readonly outputKeys: ["image"];
|
|
932
|
+
readonly price: {
|
|
933
|
+
readonly kind: "metered";
|
|
893
934
|
};
|
|
894
|
-
readonly
|
|
895
|
-
readonly
|
|
935
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
936
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/scribble";
|
|
937
|
+
readonly task: "scribble preprocessing";
|
|
938
|
+
};
|
|
939
|
+
readonly teed: {
|
|
940
|
+
readonly category: "preprocess";
|
|
941
|
+
readonly description: "Generate TEED edge maps from an input image.";
|
|
942
|
+
readonly endpoint: "fal-ai/image-preprocessors/teed";
|
|
896
943
|
readonly inputField: "image_url";
|
|
897
944
|
readonly inputKind: "image";
|
|
898
|
-
readonly name: "
|
|
945
|
+
readonly name: "TEED Edge Preprocessor";
|
|
899
946
|
readonly outputKeys: ["image"];
|
|
900
|
-
readonly
|
|
901
|
-
|
|
902
|
-
|
|
947
|
+
readonly price: {
|
|
948
|
+
readonly kind: "metered";
|
|
949
|
+
};
|
|
950
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
951
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/teed";
|
|
952
|
+
readonly task: "edge preprocessing";
|
|
903
953
|
};
|
|
904
|
-
readonly "
|
|
905
|
-
readonly category: "
|
|
906
|
-
readonly
|
|
907
|
-
|
|
908
|
-
|
|
954
|
+
readonly "zoe-depth": {
|
|
955
|
+
readonly category: "preprocess";
|
|
956
|
+
readonly description: "Generate ZoeDepth metric depth maps from an input image.";
|
|
957
|
+
readonly endpoint: "fal-ai/image-preprocessors/zoe";
|
|
958
|
+
readonly inputField: "image_url";
|
|
959
|
+
readonly inputKind: "image";
|
|
960
|
+
readonly name: "ZoeDepth Preprocessor";
|
|
961
|
+
readonly outputKeys: ["image"];
|
|
962
|
+
readonly price: {
|
|
963
|
+
readonly kind: "metered";
|
|
909
964
|
};
|
|
910
|
-
readonly
|
|
911
|
-
readonly
|
|
912
|
-
readonly
|
|
913
|
-
readonly inputKind: "video";
|
|
914
|
-
readonly name: "Topaz Video Upscale";
|
|
915
|
-
readonly outputKeys: ["video"];
|
|
916
|
-
readonly pricing: "$0.01-$0.08/sec by output resolution";
|
|
917
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/topaz/upscale/video";
|
|
918
|
-
readonly task: "video enhancement";
|
|
965
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
966
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/zoe";
|
|
967
|
+
readonly task: "depth preprocessing";
|
|
919
968
|
};
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
* error body). Ties a failure back to fal's dashboard/support. */
|
|
936
|
-
readonly requestId?: string;
|
|
937
|
-
constructor(message: string, status: number, code?: string, requestId?: string);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
type FalToolInputKind = "image" | "images" | "video";
|
|
941
|
-
interface FalToolConfig {
|
|
942
|
-
category: "3d" | "background" | "depth" | "moderation" | "preprocess" | "segmentation" | "upscale";
|
|
943
|
-
defaultOptions?: Record<string, unknown>;
|
|
944
|
-
description: string;
|
|
945
|
-
endpoint: string;
|
|
946
|
-
inputField: "image_url" | "image_urls" | "video_url";
|
|
947
|
-
inputKind: FalToolInputKind;
|
|
948
|
-
name: string;
|
|
949
|
-
outputKeys: string[];
|
|
950
|
-
pricing: string;
|
|
951
|
-
sourceUrl: string;
|
|
952
|
-
task: string;
|
|
953
|
-
}
|
|
954
|
-
interface FalToolRunOptions {
|
|
955
|
-
input?: string;
|
|
956
|
-
inputs?: string[];
|
|
957
|
-
options?: Record<string, unknown>;
|
|
958
|
-
tool: string;
|
|
959
|
-
}
|
|
960
|
-
interface FalToolRequest {
|
|
961
|
-
body: Record<string, unknown>;
|
|
962
|
-
endpoint: string;
|
|
963
|
-
tool: FalToolConfig;
|
|
964
|
-
}
|
|
965
|
-
declare const FAL_TOOLS: {
|
|
966
|
-
readonly birefnet: {
|
|
967
|
-
readonly category: "background";
|
|
968
|
-
readonly defaultOptions: {
|
|
969
|
-
readonly model: "General Use (Light)";
|
|
970
|
-
readonly operating_resolution: "1024x1024";
|
|
971
|
-
readonly output_format: "png";
|
|
972
|
-
readonly refine_foreground: true;
|
|
969
|
+
readonly "bria-eraser": {
|
|
970
|
+
readonly category: "erase";
|
|
971
|
+
readonly description: "Commercial-safe removal of a masked region, inpainted from surrounding context.";
|
|
972
|
+
readonly endpoint: "fal-ai/bria/eraser";
|
|
973
|
+
readonly inputField: "image_url";
|
|
974
|
+
readonly inputKind: "image";
|
|
975
|
+
readonly name: "Bria Eraser";
|
|
976
|
+
readonly outputKeys: ["image"];
|
|
977
|
+
readonly price: {
|
|
978
|
+
readonly kind: "call";
|
|
979
|
+
readonly usd: 0.04;
|
|
980
|
+
};
|
|
981
|
+
readonly pricing: "$0.04/generation";
|
|
982
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/eraser";
|
|
983
|
+
readonly task: "masked object erasure";
|
|
973
984
|
};
|
|
974
|
-
readonly
|
|
975
|
-
|
|
976
|
-
|
|
985
|
+
readonly "bria-expand": {
|
|
986
|
+
readonly category: "reframe";
|
|
987
|
+
readonly description: "Expand an image onto a larger canvas, generating the new border area.";
|
|
988
|
+
readonly endpoint: "fal-ai/bria/expand";
|
|
989
|
+
readonly inputField: "image_url";
|
|
990
|
+
readonly inputKind: "image";
|
|
991
|
+
readonly name: "Bria Image Expansion";
|
|
992
|
+
readonly outputKeys: ["image"];
|
|
993
|
+
readonly price: {
|
|
994
|
+
readonly kind: "call";
|
|
995
|
+
readonly usd: 0.04;
|
|
996
|
+
};
|
|
997
|
+
readonly pricing: "$0.04/generation";
|
|
998
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/expand";
|
|
999
|
+
readonly task: "image outpainting";
|
|
1000
|
+
};
|
|
1001
|
+
readonly "bria-genfill": {
|
|
1002
|
+
readonly category: "erase";
|
|
1003
|
+
readonly description: "Generative fill of a masked region from a prompt, commercial-safe.";
|
|
1004
|
+
readonly endpoint: "fal-ai/bria/genfill";
|
|
1005
|
+
readonly inputField: "image_url";
|
|
1006
|
+
readonly inputKind: "image";
|
|
1007
|
+
readonly name: "Bria GenFill";
|
|
1008
|
+
readonly outputKeys: ["images"];
|
|
1009
|
+
readonly price: {
|
|
1010
|
+
readonly kind: "call";
|
|
1011
|
+
readonly usd: 0.04;
|
|
1012
|
+
};
|
|
1013
|
+
readonly pricing: "$0.04/generation";
|
|
1014
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/genfill";
|
|
1015
|
+
readonly task: "masked generative fill";
|
|
1016
|
+
};
|
|
1017
|
+
readonly "finegrain-eraser": {
|
|
1018
|
+
readonly category: "erase";
|
|
1019
|
+
readonly description: "Remove a prompted object and its shadows and reflections, filling the gap.";
|
|
1020
|
+
readonly endpoint: "fal-ai/finegrain-eraser";
|
|
1021
|
+
readonly inputField: "image_url";
|
|
1022
|
+
readonly inputKind: "image";
|
|
1023
|
+
readonly name: "Finegrain Object Eraser";
|
|
1024
|
+
readonly outputKeys: ["image"];
|
|
1025
|
+
readonly price: {
|
|
1026
|
+
readonly kind: "call";
|
|
1027
|
+
readonly usd: 0.27;
|
|
1028
|
+
};
|
|
1029
|
+
readonly pricing: "$0.27/image at the default standard mode; $0.18 express, $0.36 premium";
|
|
1030
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/finegrain-eraser";
|
|
1031
|
+
readonly task: "prompted object erasure";
|
|
1032
|
+
};
|
|
1033
|
+
readonly "flux-outpaint": {
|
|
1034
|
+
readonly category: "reframe";
|
|
1035
|
+
readonly description: "Outpaint an image by a per-edge pixel expansion with FLUX.2 pro.";
|
|
1036
|
+
readonly endpoint: "fal-ai/flux-2-pro/outpaint";
|
|
1037
|
+
readonly inputField: "image_url";
|
|
1038
|
+
readonly inputKind: "image";
|
|
1039
|
+
readonly name: "FLUX.2 Pro Outpaint";
|
|
1040
|
+
readonly outputKeys: ["images"];
|
|
1041
|
+
readonly price: {
|
|
1042
|
+
readonly kind: "metered";
|
|
1043
|
+
};
|
|
1044
|
+
readonly pricing: "$0.03 for the first output megapixel, then $0.015 per extra megapixel of input and output, rounded up";
|
|
1045
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/flux-2-pro/outpaint";
|
|
1046
|
+
readonly task: "image outpainting";
|
|
1047
|
+
};
|
|
1048
|
+
readonly "iclight-v2": {
|
|
1049
|
+
readonly category: "relight";
|
|
1050
|
+
readonly description: "Relight a subject from a prompt, harmonising it with a new light direction.";
|
|
1051
|
+
readonly endpoint: "fal-ai/iclight-v2";
|
|
1052
|
+
readonly inputField: "image_url";
|
|
1053
|
+
readonly inputKind: "image";
|
|
1054
|
+
readonly name: "IC-Light v2";
|
|
1055
|
+
readonly outputKeys: ["images"];
|
|
1056
|
+
readonly price: {
|
|
1057
|
+
readonly kind: "megapixel";
|
|
1058
|
+
readonly usd: 0.1;
|
|
1059
|
+
};
|
|
1060
|
+
readonly pricing: "$0.10/megapixel";
|
|
1061
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/iclight-v2";
|
|
1062
|
+
readonly task: "prompted relighting";
|
|
1063
|
+
};
|
|
1064
|
+
readonly "ideogram-reframe": {
|
|
1065
|
+
readonly category: "reframe";
|
|
1066
|
+
readonly description: "Reframe an image to a new aspect ratio, generating the fill.";
|
|
1067
|
+
readonly endpoint: "fal-ai/ideogram/v3/reframe";
|
|
1068
|
+
readonly inputField: "image_url";
|
|
1069
|
+
readonly inputKind: "image";
|
|
1070
|
+
readonly name: "Ideogram v3 Reframe";
|
|
1071
|
+
readonly outputKeys: ["images"];
|
|
1072
|
+
readonly price: {
|
|
1073
|
+
readonly kind: "call";
|
|
1074
|
+
readonly usd: 0.06;
|
|
1075
|
+
};
|
|
1076
|
+
readonly pricing: "$0.06/image at the default BALANCED speed; $0.03 turbo, $0.09 quality";
|
|
1077
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ideogram/v3/reframe";
|
|
1078
|
+
readonly task: "aspect ratio reframing";
|
|
1079
|
+
};
|
|
1080
|
+
readonly "lighting-restoration": {
|
|
1081
|
+
readonly category: "relight";
|
|
1082
|
+
readonly description: "Restore natural, even lighting across one or more input images.";
|
|
1083
|
+
readonly endpoint: "fal-ai/qwen-image-edit-plus-lora-gallery/lighting-restoration";
|
|
1084
|
+
readonly inputField: "image_urls";
|
|
1085
|
+
readonly inputKind: "images";
|
|
1086
|
+
readonly name: "Qwen Lighting Restoration";
|
|
1087
|
+
readonly outputKeys: ["images"];
|
|
1088
|
+
readonly price: {
|
|
1089
|
+
readonly kind: "megapixel";
|
|
1090
|
+
readonly usd: 0.035;
|
|
1091
|
+
};
|
|
1092
|
+
readonly pricing: "$0.035/megapixel";
|
|
1093
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-edit-plus-lora-gallery/lighting-restoration";
|
|
1094
|
+
readonly task: "lighting restoration";
|
|
1095
|
+
};
|
|
1096
|
+
readonly "object-removal": {
|
|
1097
|
+
readonly category: "erase";
|
|
1098
|
+
readonly description: "Remove a prompted object from an image and fill the gap.";
|
|
1099
|
+
readonly endpoint: "fal-ai/object-removal";
|
|
1100
|
+
readonly inputField: "image_url";
|
|
1101
|
+
readonly inputKind: "image";
|
|
1102
|
+
readonly name: "Object Removal";
|
|
1103
|
+
readonly outputKeys: ["images"];
|
|
1104
|
+
readonly price: {
|
|
1105
|
+
readonly kind: "call";
|
|
1106
|
+
readonly usd: 0.024;
|
|
1107
|
+
};
|
|
1108
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
1109
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal";
|
|
1110
|
+
readonly task: "prompted object removal";
|
|
1111
|
+
};
|
|
1112
|
+
readonly "object-removal-bbox": {
|
|
1113
|
+
readonly category: "erase";
|
|
1114
|
+
readonly description: "Remove whatever falls inside supplied bounding boxes.";
|
|
1115
|
+
readonly endpoint: "fal-ai/object-removal/bbox";
|
|
1116
|
+
readonly inputField: "image_url";
|
|
1117
|
+
readonly inputKind: "image";
|
|
1118
|
+
readonly name: "Object Removal by Box";
|
|
1119
|
+
readonly outputKeys: ["images"];
|
|
1120
|
+
readonly price: {
|
|
1121
|
+
readonly kind: "call";
|
|
1122
|
+
readonly usd: 0.024;
|
|
1123
|
+
};
|
|
1124
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
1125
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal/bbox";
|
|
1126
|
+
readonly task: "bounding box object removal";
|
|
1127
|
+
};
|
|
1128
|
+
readonly "object-removal-mask": {
|
|
1129
|
+
readonly category: "erase";
|
|
1130
|
+
readonly description: "Remove the masked region of an image and fill the gap.";
|
|
1131
|
+
readonly endpoint: "fal-ai/object-removal/mask";
|
|
1132
|
+
readonly inputField: "image_url";
|
|
1133
|
+
readonly inputKind: "image";
|
|
1134
|
+
readonly name: "Object Removal by Mask";
|
|
1135
|
+
readonly outputKeys: ["images"];
|
|
1136
|
+
readonly price: {
|
|
1137
|
+
readonly kind: "call";
|
|
1138
|
+
readonly usd: 0.024;
|
|
1139
|
+
};
|
|
1140
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
1141
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal/mask";
|
|
1142
|
+
readonly task: "masked object removal";
|
|
1143
|
+
};
|
|
1144
|
+
readonly "remove-lighting": {
|
|
1145
|
+
readonly category: "relight";
|
|
1146
|
+
readonly description: "Strip baked-in lighting and shadows to leave a flat, neutral surface.";
|
|
1147
|
+
readonly endpoint: "fal-ai/qwen-image-edit-plus-lora-gallery/remove-lighting";
|
|
1148
|
+
readonly inputField: "image_urls";
|
|
1149
|
+
readonly inputKind: "images";
|
|
1150
|
+
readonly name: "Qwen Remove Lighting";
|
|
1151
|
+
readonly outputKeys: ["images"];
|
|
1152
|
+
readonly price: {
|
|
1153
|
+
readonly kind: "megapixel";
|
|
1154
|
+
readonly usd: 0.035;
|
|
1155
|
+
};
|
|
1156
|
+
readonly pricing: "$0.035/megapixel";
|
|
1157
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-edit-plus-lora-gallery/remove-lighting";
|
|
1158
|
+
readonly task: "lighting removal";
|
|
1159
|
+
};
|
|
1160
|
+
readonly "smart-resize": {
|
|
1161
|
+
readonly category: "reframe";
|
|
1162
|
+
readonly description: "Resize one image to several target sizes, recomposing rather than cropping.";
|
|
1163
|
+
readonly endpoint: "fal-ai/smart-resize";
|
|
1164
|
+
readonly inputField: "image_url";
|
|
1165
|
+
readonly inputKind: "image";
|
|
1166
|
+
readonly name: "Smart Resize";
|
|
1167
|
+
readonly outputKeys: ["images", "results"];
|
|
1168
|
+
readonly price: {
|
|
1169
|
+
readonly kind: "metered";
|
|
1170
|
+
};
|
|
1171
|
+
readonly pricing: "$0.15 per output image, doubled at 4K, plus a $0.05 vision analysis fee per request";
|
|
1172
|
+
readonly queued: true;
|
|
1173
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/smart-resize";
|
|
1174
|
+
readonly task: "multi-size recomposition";
|
|
1175
|
+
};
|
|
1176
|
+
readonly "text-removal": {
|
|
1177
|
+
readonly category: "erase";
|
|
1178
|
+
readonly defaultOptions: {
|
|
1179
|
+
readonly output_format: "png";
|
|
1180
|
+
};
|
|
1181
|
+
readonly description: "Remove all rendered text from an image, rebuilding what sat behind it.";
|
|
1182
|
+
readonly endpoint: "fal-ai/image-editing/text-removal";
|
|
1183
|
+
readonly inputField: "image_url";
|
|
1184
|
+
readonly inputKind: "image";
|
|
1185
|
+
readonly name: "Text Removal";
|
|
1186
|
+
readonly outputKeys: ["images"];
|
|
1187
|
+
readonly price: {
|
|
1188
|
+
readonly kind: "call";
|
|
1189
|
+
readonly usd: 0.04;
|
|
1190
|
+
};
|
|
1191
|
+
readonly pricing: "$0.04/image";
|
|
1192
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-editing/text-removal";
|
|
1193
|
+
readonly task: "text removal";
|
|
1194
|
+
};
|
|
1195
|
+
readonly "ben-v2": {
|
|
1196
|
+
readonly category: "background";
|
|
1197
|
+
readonly description: "Fast, high-quality background removal for images.";
|
|
1198
|
+
readonly endpoint: "fal-ai/ben/v2/image";
|
|
1199
|
+
readonly inputField: "image_url";
|
|
1200
|
+
readonly inputKind: "image";
|
|
1201
|
+
readonly name: "BEN v2 Background Removal";
|
|
1202
|
+
readonly outputKeys: ["image"];
|
|
1203
|
+
readonly price: {
|
|
1204
|
+
readonly kind: "megapixel";
|
|
1205
|
+
readonly usd: 0.025;
|
|
1206
|
+
};
|
|
1207
|
+
readonly pricing: "$0.025/megapixel";
|
|
1208
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ben/v2/image";
|
|
1209
|
+
readonly task: "image background removal";
|
|
1210
|
+
};
|
|
1211
|
+
readonly birefnet: {
|
|
1212
|
+
readonly category: "background";
|
|
1213
|
+
readonly defaultOptions: {
|
|
1214
|
+
readonly model: "General Use (Light)";
|
|
1215
|
+
readonly operating_resolution: "1024x1024";
|
|
1216
|
+
readonly output_format: "png";
|
|
1217
|
+
readonly refine_foreground: true;
|
|
1218
|
+
};
|
|
1219
|
+
readonly description: "High-resolution dichotomous image segmentation and background removal.";
|
|
1220
|
+
readonly endpoint: "fal-ai/birefnet/v2";
|
|
1221
|
+
readonly inputField: "image_url";
|
|
1222
|
+
readonly inputKind: "image";
|
|
1223
|
+
readonly name: "BirefNet Background Removal";
|
|
1224
|
+
readonly outputKeys: ["image", "mask_image"];
|
|
1225
|
+
readonly price: {
|
|
1226
|
+
readonly kind: "metered";
|
|
1227
|
+
};
|
|
1228
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
1229
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/birefnet/v2";
|
|
1230
|
+
readonly task: "image background removal";
|
|
1231
|
+
};
|
|
1232
|
+
readonly "bria-rmbg": {
|
|
1233
|
+
readonly category: "background";
|
|
1234
|
+
readonly description: "Commercial-safe background removal for images.";
|
|
1235
|
+
readonly endpoint: "fal-ai/bria/background/remove";
|
|
1236
|
+
readonly inputField: "image_url";
|
|
1237
|
+
readonly inputKind: "image";
|
|
1238
|
+
readonly name: "Bria RMBG 2.0";
|
|
1239
|
+
readonly outputKeys: ["image"];
|
|
1240
|
+
readonly price: {
|
|
1241
|
+
readonly kind: "call";
|
|
1242
|
+
readonly usd: 0.018;
|
|
1243
|
+
};
|
|
1244
|
+
readonly pricing: "$0.018/generation";
|
|
1245
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/background/remove";
|
|
1246
|
+
readonly task: "image background removal";
|
|
1247
|
+
};
|
|
1248
|
+
readonly "bria-video-rmbg": {
|
|
1249
|
+
readonly category: "background";
|
|
1250
|
+
readonly defaultOptions: {
|
|
1251
|
+
readonly background_color: "Black";
|
|
1252
|
+
readonly output_container_and_codec: "webm_vp9";
|
|
1253
|
+
readonly preserve_audio: true;
|
|
1254
|
+
};
|
|
1255
|
+
readonly description: "Remove video backgrounds with configurable output container.";
|
|
1256
|
+
readonly endpoint: "bria/video/background-removal";
|
|
1257
|
+
readonly inputField: "video_url";
|
|
1258
|
+
readonly inputKind: "video";
|
|
1259
|
+
readonly name: "Bria Video Background Removal";
|
|
1260
|
+
readonly outputKeys: ["video"];
|
|
1261
|
+
readonly price: {
|
|
1262
|
+
readonly kind: "second";
|
|
1263
|
+
readonly usd: 0.00425;
|
|
1264
|
+
};
|
|
1265
|
+
readonly pricing: "$0.00425/sec";
|
|
1266
|
+
readonly queued: true;
|
|
1267
|
+
readonly sourceUrl: "https://fal.ai/models/bria/video/background-removal";
|
|
1268
|
+
readonly task: "video background removal";
|
|
1269
|
+
};
|
|
1270
|
+
readonly ddcolor: {
|
|
1271
|
+
readonly category: "restoration";
|
|
1272
|
+
readonly description: "Colourise black-and-white photographs.";
|
|
1273
|
+
readonly endpoint: "fal-ai/ddcolor";
|
|
1274
|
+
readonly inputField: "image_url";
|
|
1275
|
+
readonly inputKind: "image";
|
|
1276
|
+
readonly name: "DDColor Colourisation";
|
|
1277
|
+
readonly outputKeys: ["image"];
|
|
1278
|
+
readonly price: {
|
|
1279
|
+
readonly kind: "megapixel";
|
|
1280
|
+
readonly usd: 0.001;
|
|
1281
|
+
};
|
|
1282
|
+
readonly pricing: "$0.001/megapixel";
|
|
1283
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ddcolor";
|
|
1284
|
+
readonly task: "photo colourisation";
|
|
1285
|
+
};
|
|
1286
|
+
readonly rembg: {
|
|
1287
|
+
readonly category: "background";
|
|
1288
|
+
readonly defaultOptions: {
|
|
1289
|
+
readonly crop_to_bbox: false;
|
|
1290
|
+
};
|
|
1291
|
+
readonly description: "Generic image background removal utility.";
|
|
1292
|
+
readonly endpoint: "fal-ai/imageutils/rembg";
|
|
1293
|
+
readonly inputField: "image_url";
|
|
1294
|
+
readonly inputKind: "image";
|
|
1295
|
+
readonly name: "Remove Background";
|
|
1296
|
+
readonly outputKeys: ["image"];
|
|
1297
|
+
readonly price: {
|
|
1298
|
+
readonly kind: "metered";
|
|
1299
|
+
};
|
|
1300
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
1301
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/rembg";
|
|
1302
|
+
readonly task: "image background removal";
|
|
1303
|
+
};
|
|
1304
|
+
readonly "seedvr-upscale": {
|
|
1305
|
+
readonly category: "restoration";
|
|
1306
|
+
readonly defaultOptions: {
|
|
1307
|
+
readonly output_format: "png";
|
|
1308
|
+
};
|
|
1309
|
+
readonly description: "Diffusion image restoration and upscaling with SeedVR.";
|
|
1310
|
+
readonly endpoint: "fal-ai/seedvr/upscale/image";
|
|
1311
|
+
readonly inputField: "image_url";
|
|
1312
|
+
readonly inputKind: "image";
|
|
1313
|
+
readonly name: "SeedVR Image Upscale";
|
|
1314
|
+
readonly outputKeys: ["image"];
|
|
1315
|
+
readonly price: {
|
|
1316
|
+
readonly kind: "megapixel";
|
|
1317
|
+
readonly usd: 0.001;
|
|
1318
|
+
};
|
|
1319
|
+
readonly pricing: "$0.001/megapixel";
|
|
1320
|
+
readonly queued: true;
|
|
1321
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/seedvr/upscale/image";
|
|
1322
|
+
readonly task: "image restoration and upscaling";
|
|
1323
|
+
};
|
|
1324
|
+
readonly "topaz-adjust": {
|
|
1325
|
+
readonly category: "restoration";
|
|
1326
|
+
readonly defaultOptions: {
|
|
1327
|
+
readonly output_format: "png";
|
|
1328
|
+
};
|
|
1329
|
+
readonly description: "Topaz exposure, white balance, and colour adjustment.";
|
|
1330
|
+
readonly endpoint: "topaz/adjust/image";
|
|
1331
|
+
readonly inputField: "image_url";
|
|
1332
|
+
readonly inputKind: "image";
|
|
1333
|
+
readonly name: "Topaz Adjust";
|
|
1334
|
+
readonly outputKeys: ["image"];
|
|
1335
|
+
readonly price: {
|
|
1336
|
+
readonly kind: "megapixel";
|
|
1337
|
+
readonly usd: number;
|
|
1338
|
+
};
|
|
1339
|
+
readonly pricing: "$0.08 per 24 output megapixels";
|
|
1340
|
+
readonly queued: true;
|
|
1341
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/adjust/image";
|
|
1342
|
+
readonly task: "tonal adjustment";
|
|
1343
|
+
};
|
|
1344
|
+
readonly "topaz-creative": {
|
|
1345
|
+
readonly category: "restoration";
|
|
1346
|
+
readonly defaultOptions: {
|
|
1347
|
+
readonly output_format: "png";
|
|
1348
|
+
};
|
|
1349
|
+
readonly description: "Topaz Bloom upscaling, which reimagines detail rather than preserving it.";
|
|
1350
|
+
readonly endpoint: "topaz/upscale/image/creative";
|
|
1351
|
+
readonly inputField: "image_url";
|
|
1352
|
+
readonly inputKind: "image";
|
|
1353
|
+
readonly name: "Topaz Creative Upscale";
|
|
1354
|
+
readonly outputKeys: ["image"];
|
|
1355
|
+
readonly price: {
|
|
1356
|
+
readonly kind: "megapixel";
|
|
1357
|
+
readonly usd: number;
|
|
1358
|
+
};
|
|
1359
|
+
readonly pricing: "$0.96 per 24 output megapixels";
|
|
1360
|
+
readonly queued: true;
|
|
1361
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/creative";
|
|
1362
|
+
readonly task: "creative image upscaling";
|
|
1363
|
+
};
|
|
1364
|
+
readonly "topaz-denoise": {
|
|
1365
|
+
readonly category: "restoration";
|
|
1366
|
+
readonly defaultOptions: {
|
|
1367
|
+
readonly output_format: "png";
|
|
1368
|
+
};
|
|
1369
|
+
readonly description: "Topaz noise reduction at source resolution.";
|
|
1370
|
+
readonly endpoint: "topaz/denoise/image";
|
|
1371
|
+
readonly inputField: "image_url";
|
|
1372
|
+
readonly inputKind: "image";
|
|
1373
|
+
readonly name: "Topaz Denoise";
|
|
1374
|
+
readonly outputKeys: ["image"];
|
|
1375
|
+
readonly price: {
|
|
1376
|
+
readonly kind: "megapixel";
|
|
1377
|
+
readonly usd: number;
|
|
1378
|
+
};
|
|
1379
|
+
readonly pricing: "$0.08 per 24 output megapixels at the default Normal model; $0.16 with Denoise Max";
|
|
1380
|
+
readonly queued: true;
|
|
1381
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/denoise/image";
|
|
1382
|
+
readonly task: "image denoising";
|
|
1383
|
+
};
|
|
1384
|
+
readonly "topaz-generative": {
|
|
1385
|
+
readonly category: "restoration";
|
|
1386
|
+
readonly defaultOptions: {
|
|
1387
|
+
readonly output_format: "png";
|
|
1388
|
+
};
|
|
1389
|
+
readonly description: "Topaz Wonder upscaling, which synthesises plausible detail as it enlarges.";
|
|
1390
|
+
readonly endpoint: "topaz/upscale/image/generative";
|
|
1391
|
+
readonly inputField: "image_url";
|
|
1392
|
+
readonly inputKind: "image";
|
|
1393
|
+
readonly name: "Topaz Generative Upscale";
|
|
1394
|
+
readonly outputKeys: ["image"];
|
|
1395
|
+
readonly price: {
|
|
1396
|
+
readonly kind: "megapixel";
|
|
1397
|
+
readonly usd: number;
|
|
1398
|
+
};
|
|
1399
|
+
readonly pricing: "$0.24 per 24 output megapixels at the default Wonder 3; $0.48 with Wonder, Wonder 2, Standard MAX, Redefine or Recover 3";
|
|
1400
|
+
readonly queued: true;
|
|
1401
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/generative";
|
|
1402
|
+
readonly task: "generative image upscaling";
|
|
1403
|
+
};
|
|
1404
|
+
readonly "topaz-image": {
|
|
1405
|
+
readonly category: "upscale";
|
|
1406
|
+
readonly defaultOptions: {
|
|
1407
|
+
readonly model: "Standard V2";
|
|
1408
|
+
readonly output_format: "jpeg";
|
|
1409
|
+
readonly upscale_factor: 2;
|
|
1410
|
+
};
|
|
1411
|
+
readonly description: "Professional Topaz image enhancement and upscaling.";
|
|
1412
|
+
readonly endpoint: "fal-ai/topaz/upscale/image";
|
|
1413
|
+
readonly inputField: "image_url";
|
|
1414
|
+
readonly inputKind: "image";
|
|
1415
|
+
readonly name: "Topaz Image Upscale";
|
|
1416
|
+
readonly outputKeys: ["image"];
|
|
1417
|
+
readonly price: {
|
|
1418
|
+
readonly kind: "megapixel";
|
|
1419
|
+
readonly usd: number;
|
|
1420
|
+
};
|
|
1421
|
+
readonly pricing: "$0.08 for output up to 24MP; $0.16 to 48MP, $0.32 to 96MP, up to $1.36 at 512MP";
|
|
1422
|
+
readonly queued: true;
|
|
1423
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/topaz/upscale/image";
|
|
1424
|
+
readonly task: "image enhancement";
|
|
1425
|
+
};
|
|
1426
|
+
readonly "topaz-precision": {
|
|
1427
|
+
readonly category: "restoration";
|
|
1428
|
+
readonly defaultOptions: {
|
|
1429
|
+
readonly output_format: "png";
|
|
1430
|
+
};
|
|
1431
|
+
readonly description: "Topaz upscaling that preserves the original detail rather than inventing it.";
|
|
1432
|
+
readonly endpoint: "topaz/upscale/image/precision";
|
|
1433
|
+
readonly inputField: "image_url";
|
|
1434
|
+
readonly inputKind: "image";
|
|
1435
|
+
readonly name: "Topaz Precision Upscale";
|
|
1436
|
+
readonly outputKeys: ["image"];
|
|
1437
|
+
readonly price: {
|
|
1438
|
+
readonly kind: "megapixel";
|
|
1439
|
+
readonly usd: number;
|
|
1440
|
+
};
|
|
1441
|
+
readonly pricing: "$0.08 per 24 output megapixels, any precision model";
|
|
1442
|
+
readonly queued: true;
|
|
1443
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/precision";
|
|
1444
|
+
readonly task: "faithful image upscaling";
|
|
1445
|
+
};
|
|
1446
|
+
readonly "topaz-restore": {
|
|
1447
|
+
readonly category: "restoration";
|
|
1448
|
+
readonly defaultOptions: {
|
|
1449
|
+
readonly output_format: "png";
|
|
1450
|
+
};
|
|
1451
|
+
readonly description: "Topaz restoration of damaged or degraded photographs at source resolution.";
|
|
1452
|
+
readonly endpoint: "topaz/restore/image";
|
|
1453
|
+
readonly inputField: "image_url";
|
|
1454
|
+
readonly inputKind: "image";
|
|
1455
|
+
readonly name: "Topaz Restore";
|
|
1456
|
+
readonly outputKeys: ["image"];
|
|
1457
|
+
readonly price: {
|
|
1458
|
+
readonly kind: "megapixel";
|
|
1459
|
+
readonly usd: number;
|
|
1460
|
+
};
|
|
1461
|
+
readonly pricing: "$0.48 per 24 output megapixels at the default Recover 3; $0.08 with Dust-Scratch V2";
|
|
1462
|
+
readonly queued: true;
|
|
1463
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/restore/image";
|
|
1464
|
+
readonly task: "photo restoration";
|
|
1465
|
+
};
|
|
1466
|
+
readonly "topaz-sharpen": {
|
|
1467
|
+
readonly category: "restoration";
|
|
1468
|
+
readonly defaultOptions: {
|
|
1469
|
+
readonly output_format: "png";
|
|
1470
|
+
};
|
|
1471
|
+
readonly description: "Topaz deblurring and sharpening at source resolution.";
|
|
1472
|
+
readonly endpoint: "topaz/sharpen/image";
|
|
1473
|
+
readonly inputField: "image_url";
|
|
1474
|
+
readonly inputKind: "image";
|
|
1475
|
+
readonly name: "Topaz Sharpen";
|
|
1476
|
+
readonly outputKeys: ["image"];
|
|
1477
|
+
readonly price: {
|
|
1478
|
+
readonly kind: "megapixel";
|
|
1479
|
+
readonly usd: number;
|
|
1480
|
+
};
|
|
1481
|
+
readonly pricing: "$0.08 per 24 output megapixels at the default Standard model; $0.16 with Super Focus";
|
|
1482
|
+
readonly queued: true;
|
|
1483
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/sharpen/image";
|
|
1484
|
+
readonly task: "image sharpening";
|
|
1485
|
+
};
|
|
1486
|
+
readonly "topaz-transparent": {
|
|
1487
|
+
readonly category: "restoration";
|
|
1488
|
+
readonly description: "Topaz upscaling that preserves the alpha channel end to end.";
|
|
1489
|
+
readonly endpoint: "topaz/upscale/image/transparent";
|
|
1490
|
+
readonly inputField: "image_url";
|
|
1491
|
+
readonly inputKind: "image";
|
|
1492
|
+
readonly name: "Topaz Transparent Upscale";
|
|
1493
|
+
readonly outputKeys: ["image"];
|
|
1494
|
+
readonly price: {
|
|
1495
|
+
readonly kind: "megapixel";
|
|
1496
|
+
readonly usd: number;
|
|
1497
|
+
};
|
|
1498
|
+
readonly pricing: "$0.08 per 24 output megapixels";
|
|
1499
|
+
readonly queued: true;
|
|
1500
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/transparent";
|
|
1501
|
+
readonly task: "transparent image upscaling";
|
|
1502
|
+
};
|
|
1503
|
+
readonly "topaz-video": {
|
|
1504
|
+
readonly category: "upscale";
|
|
1505
|
+
readonly defaultOptions: {
|
|
1506
|
+
readonly model: "Proteus";
|
|
1507
|
+
readonly upscale_factor: 2;
|
|
1508
|
+
};
|
|
1509
|
+
readonly description: "Professional Topaz video enhancement and upscaling.";
|
|
1510
|
+
readonly endpoint: "fal-ai/topaz/upscale/video";
|
|
1511
|
+
readonly inputField: "video_url";
|
|
1512
|
+
readonly inputKind: "video";
|
|
1513
|
+
readonly name: "Topaz Video Upscale";
|
|
1514
|
+
readonly outputKeys: ["video"];
|
|
1515
|
+
readonly price: {
|
|
1516
|
+
readonly kind: "second";
|
|
1517
|
+
readonly usd: 0.01;
|
|
1518
|
+
};
|
|
1519
|
+
readonly pricing: "$0.01/sec up to 720p; $0.02 to 1080p, $0.08 above, doubled at 60fps, halved with Gaia 2";
|
|
1520
|
+
readonly queued: true;
|
|
1521
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/topaz/upscale/video";
|
|
1522
|
+
readonly task: "video enhancement";
|
|
1523
|
+
};
|
|
1524
|
+
readonly "hunyuan3d-v3": {
|
|
1525
|
+
readonly category: "3d";
|
|
1526
|
+
readonly description: "Reconstruct a textured 3D mesh from a single image, with optional multi-view inputs.";
|
|
1527
|
+
readonly endpoint: "fal-ai/hunyuan3d-v3/image-to-3d";
|
|
1528
|
+
readonly inputField: "input_image_url";
|
|
1529
|
+
readonly inputKind: "image";
|
|
1530
|
+
readonly name: "Hunyuan3D v3 Image to 3D";
|
|
1531
|
+
readonly outputKeys: ["model_glb", "model_urls", "thumbnail"];
|
|
1532
|
+
readonly price: {
|
|
1533
|
+
readonly kind: "call";
|
|
1534
|
+
readonly usd: 0.375;
|
|
1535
|
+
};
|
|
1536
|
+
readonly pricing: "$0.375/generation at the default Normal type; $0.45 low poly, $0.225 geometry only, and $0.15 each for PBR, multi-view, or a custom face count";
|
|
1537
|
+
readonly queued: true;
|
|
1538
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/hunyuan3d-v3/image-to-3d";
|
|
1539
|
+
readonly task: "single-image 3D reconstruction";
|
|
1540
|
+
};
|
|
1541
|
+
readonly "ideogram-layerize-text": {
|
|
1542
|
+
readonly category: "layers";
|
|
1543
|
+
readonly description: "Split an image into background image layers plus editable HTML text containers.";
|
|
1544
|
+
readonly endpoint: "fal-ai/ideogram/v3/layerize-text";
|
|
1545
|
+
readonly inputField: "image_url";
|
|
1546
|
+
readonly inputKind: "image";
|
|
1547
|
+
readonly name: "Ideogram v3 Text Layerize";
|
|
1548
|
+
readonly outputKeys: ["image_layers", "image", "text_html", "text_containers"];
|
|
1549
|
+
readonly price: {
|
|
1550
|
+
readonly kind: "call";
|
|
1551
|
+
readonly usd: 0.09;
|
|
1552
|
+
};
|
|
1553
|
+
readonly pricing: "$0.09/image";
|
|
1554
|
+
readonly queued: true;
|
|
1555
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ideogram/v3/layerize-text";
|
|
1556
|
+
readonly task: "text and image layer extraction";
|
|
1557
|
+
};
|
|
1558
|
+
readonly "ideogram-tiling": {
|
|
1559
|
+
readonly category: "material";
|
|
1560
|
+
readonly description: "Generate a seamlessly tiling texture, optionally conditioned on a source image.";
|
|
1561
|
+
readonly endpoint: "ideogram/v4/tiling";
|
|
1562
|
+
readonly inputField: "image_url";
|
|
1563
|
+
readonly inputKind: "image";
|
|
1564
|
+
readonly name: "Ideogram v4 Tiling";
|
|
1565
|
+
readonly outputKeys: ["images"];
|
|
1566
|
+
readonly price: {
|
|
1567
|
+
readonly kind: "megapixel";
|
|
1568
|
+
readonly usd: 0.06;
|
|
1569
|
+
};
|
|
1570
|
+
readonly pricing: "$0.06/megapixel at the default BALANCED speed; $0.03 turbo, $0.10 quality";
|
|
1571
|
+
readonly sourceUrl: "https://fal.ai/models/ideogram/v4/tiling";
|
|
1572
|
+
readonly task: "seamless texture generation";
|
|
1573
|
+
};
|
|
1574
|
+
readonly image2svg: {
|
|
1575
|
+
readonly category: "vector";
|
|
1576
|
+
readonly description: "Trace a raster image into layered SVG paths.";
|
|
1577
|
+
readonly endpoint: "fal-ai/image2svg";
|
|
1578
|
+
readonly inputField: "image_url";
|
|
1579
|
+
readonly inputKind: "image";
|
|
1580
|
+
readonly name: "Image to SVG";
|
|
1581
|
+
readonly outputKeys: ["images"];
|
|
1582
|
+
readonly price: {
|
|
1583
|
+
readonly kind: "call";
|
|
1584
|
+
readonly usd: 0.005;
|
|
1585
|
+
};
|
|
1586
|
+
readonly pricing: "$0.005/image";
|
|
1587
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image2svg";
|
|
1588
|
+
readonly task: "raster to vector tracing";
|
|
1589
|
+
};
|
|
1590
|
+
readonly patina: {
|
|
1591
|
+
readonly category: "material";
|
|
1592
|
+
readonly description: "Decompose a surface photograph into PBR maps: basecolor, normal, roughness, metalness, height.";
|
|
1593
|
+
readonly endpoint: "fal-ai/patina";
|
|
1594
|
+
readonly inputField: "image_url";
|
|
1595
|
+
readonly inputKind: "image";
|
|
1596
|
+
readonly name: "Patina PBR Maps";
|
|
1597
|
+
readonly outputKeys: ["images"];
|
|
1598
|
+
readonly outputLabels: {
|
|
1599
|
+
readonly images: {
|
|
1600
|
+
readonly fallback: readonly ["basecolor", "normal", "roughness", "metalness", "height"];
|
|
1601
|
+
readonly fromOption: "maps";
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
readonly price: {
|
|
1605
|
+
readonly kind: "metered";
|
|
1606
|
+
};
|
|
1607
|
+
readonly pricing: "$0.01 base plus $0.01/megapixel per output map, so all 5 maps on a 1MP image cost $0.06; the listed rate is per map";
|
|
1608
|
+
readonly queued: true;
|
|
1609
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/patina";
|
|
1610
|
+
readonly task: "PBR material decomposition";
|
|
1611
|
+
};
|
|
1612
|
+
readonly "patina-extract": {
|
|
1613
|
+
readonly category: "material";
|
|
1614
|
+
readonly description: "Extract a tiling PBR material from a prompted region of a photograph.";
|
|
1615
|
+
readonly endpoint: "fal-ai/patina/material/extract";
|
|
1616
|
+
readonly inputField: "image_url";
|
|
1617
|
+
readonly inputKind: "image";
|
|
1618
|
+
readonly name: "Patina Material Extract";
|
|
1619
|
+
readonly outputKeys: ["images"];
|
|
1620
|
+
readonly outputLabels: {
|
|
1621
|
+
readonly images: {
|
|
1622
|
+
readonly fallback: readonly ["basecolor", "normal", "roughness", "metalness", "height"];
|
|
1623
|
+
readonly fromOption: "maps";
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
readonly price: {
|
|
1627
|
+
readonly kind: "metered";
|
|
1628
|
+
};
|
|
1629
|
+
readonly pricing: "$0.10 base only; add $0.02/megapixel plus $0.01/megapixel per map, so 1MP with all 5 maps is $0.17";
|
|
1630
|
+
readonly queued: true;
|
|
1631
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/patina/material/extract";
|
|
1632
|
+
readonly task: "tiling material extraction";
|
|
1633
|
+
};
|
|
1634
|
+
readonly "qwen-layered": {
|
|
1635
|
+
readonly category: "layers";
|
|
1636
|
+
readonly description: "Split an image into a configurable number of stacked RGBA layers.";
|
|
1637
|
+
readonly endpoint: "fal-ai/qwen-image-layered";
|
|
1638
|
+
readonly inputField: "image_url";
|
|
1639
|
+
readonly inputKind: "image";
|
|
1640
|
+
readonly name: "Qwen Image Layered";
|
|
1641
|
+
readonly outputKeys: ["images"];
|
|
1642
|
+
readonly price: {
|
|
1643
|
+
readonly kind: "metered";
|
|
1644
|
+
};
|
|
1645
|
+
readonly pricing: "$0.05 per image; fal does not say whether that counts the input image or each of the generated layers, so no estimate is reported";
|
|
1646
|
+
readonly queued: true;
|
|
1647
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-layered";
|
|
1648
|
+
readonly task: "image layer decomposition";
|
|
1649
|
+
};
|
|
1650
|
+
readonly "recraft-vectorize": {
|
|
1651
|
+
readonly category: "vector";
|
|
1652
|
+
readonly description: "Convert a raster image into a clean SVG.";
|
|
1653
|
+
readonly endpoint: "fal-ai/recraft/vectorize";
|
|
1654
|
+
readonly inputField: "image_url";
|
|
1655
|
+
readonly inputKind: "image";
|
|
1656
|
+
readonly name: "Recraft Vectorize";
|
|
1657
|
+
readonly outputKeys: ["image"];
|
|
1658
|
+
readonly price: {
|
|
1659
|
+
readonly kind: "call";
|
|
1660
|
+
readonly usd: 0.04;
|
|
1661
|
+
};
|
|
1662
|
+
readonly pricing: "$0.04/image, $0.08 with a vector style";
|
|
1663
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/recraft/vectorize";
|
|
1664
|
+
readonly task: "raster to vector conversion";
|
|
1665
|
+
};
|
|
1666
|
+
readonly "sam3-3d-align": {
|
|
1667
|
+
readonly category: "3d";
|
|
1668
|
+
readonly description: "Align SAM 3D objects and bodies into a shared scene.";
|
|
1669
|
+
readonly endpoint: "fal-ai/sam-3/3d-align";
|
|
1670
|
+
readonly inputField: "image_url";
|
|
1671
|
+
readonly inputKind: "image";
|
|
1672
|
+
readonly name: "SAM 3D Align";
|
|
1673
|
+
readonly outputKeys: ["scene_glb", "model_glb", "visualization", "body_mesh_ply", "metadata"];
|
|
1674
|
+
readonly price: {
|
|
1675
|
+
readonly kind: "metered";
|
|
1676
|
+
};
|
|
1677
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, so no estimate is reported";
|
|
1678
|
+
readonly queued: true;
|
|
1679
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-align";
|
|
1680
|
+
readonly task: "3D scene alignment";
|
|
1681
|
+
};
|
|
1682
|
+
readonly "sam3-3d-body": {
|
|
1683
|
+
readonly category: "3d";
|
|
1684
|
+
readonly defaultOptions: {
|
|
1685
|
+
readonly export_meshes: true;
|
|
1686
|
+
readonly include_3d_keypoints: true;
|
|
1687
|
+
readonly include_mhr_params: true;
|
|
1688
|
+
};
|
|
1689
|
+
readonly description: "Reconstruct human body meshes and keypoints from a single image.";
|
|
1690
|
+
readonly endpoint: "fal-ai/sam-3/3d-body";
|
|
1691
|
+
readonly inputField: "image_url";
|
|
1692
|
+
readonly inputKind: "image";
|
|
1693
|
+
readonly name: "SAM 3D Body";
|
|
1694
|
+
readonly outputKeys: ["model_glb", "visualization", "meshes", "metadata"];
|
|
1695
|
+
readonly price: {
|
|
1696
|
+
readonly kind: "metered";
|
|
1697
|
+
};
|
|
1698
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, so no estimate is reported";
|
|
1699
|
+
readonly queued: true;
|
|
1700
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-body";
|
|
1701
|
+
readonly task: "single-image 3D body reconstruction";
|
|
1702
|
+
};
|
|
1703
|
+
readonly "sam3-3d-objects": {
|
|
1704
|
+
readonly category: "3d";
|
|
1705
|
+
readonly defaultOptions: {
|
|
1706
|
+
readonly prompt: "car";
|
|
1707
|
+
};
|
|
1708
|
+
readonly description: "Reconstruct one or more 3D objects from an image and prompts.";
|
|
1709
|
+
readonly endpoint: "fal-ai/sam-3/3d-objects";
|
|
1710
|
+
readonly inputField: "image_url";
|
|
1711
|
+
readonly inputKind: "image";
|
|
1712
|
+
readonly name: "SAM 3D Objects";
|
|
1713
|
+
readonly outputKeys: ["gaussian_splat", "model_glb", "metadata", "individual_splats", "individual_glbs", "artifacts_zip"];
|
|
1714
|
+
readonly price: {
|
|
1715
|
+
readonly kind: "metered";
|
|
1716
|
+
};
|
|
1717
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, and this endpoint returns one mesh per detected object, so no estimate is reported";
|
|
1718
|
+
readonly queued: true;
|
|
1719
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-objects";
|
|
1720
|
+
readonly task: "single-image 3D object reconstruction";
|
|
1721
|
+
};
|
|
1722
|
+
readonly "seedream-layerize": {
|
|
1723
|
+
readonly category: "layers";
|
|
1724
|
+
readonly description: "Split an image into editable Seedream layers plus flattened previews.";
|
|
1725
|
+
readonly endpoint: "bytedance/seedream/v5/pro/layerize";
|
|
1726
|
+
readonly inputField: "image_url";
|
|
1727
|
+
readonly inputKind: "image";
|
|
1728
|
+
readonly name: "Seedream v5 Pro Layerize";
|
|
1729
|
+
readonly outputKeys: ["layers", "images"];
|
|
1730
|
+
readonly price: {
|
|
1731
|
+
readonly kind: "metered";
|
|
1732
|
+
};
|
|
1733
|
+
readonly pricing: "$0.03375 per generated layer below 1536x1536 total area, $0.0675 per layer above; the listed rate is per layer, not per call";
|
|
1734
|
+
readonly queued: true;
|
|
1735
|
+
readonly sourceUrl: "https://fal.ai/models/bytedance/seedream/v5/pro/layerize";
|
|
1736
|
+
readonly task: "image layer decomposition";
|
|
1737
|
+
};
|
|
1738
|
+
readonly "seedvr-seamless": {
|
|
1739
|
+
readonly category: "material";
|
|
1740
|
+
readonly description: "Upscale a tiling texture while keeping its edges seamless. ";
|
|
1741
|
+
readonly endpoint: "fal-ai/seedvr/upscale/image/seamless";
|
|
1742
|
+
readonly inputField: "image_url";
|
|
1743
|
+
readonly inputKind: "image";
|
|
1744
|
+
readonly name: "SeedVR Seamless Upscale";
|
|
1745
|
+
readonly outputKeys: ["image"];
|
|
1746
|
+
readonly price: {
|
|
1747
|
+
readonly kind: "megapixel";
|
|
1748
|
+
readonly usd: 0.0025;
|
|
1749
|
+
};
|
|
1750
|
+
readonly pricing: "$0.0025/megapixel";
|
|
1751
|
+
readonly queued: true;
|
|
1752
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/seedvr/upscale/image/seamless";
|
|
1753
|
+
readonly task: "seamless texture upscaling";
|
|
1754
|
+
};
|
|
1755
|
+
readonly "trellis-2": {
|
|
1756
|
+
readonly category: "3d";
|
|
1757
|
+
readonly description: "Reconstruct a textured 3D mesh from a single image, with UV unwrapping.";
|
|
1758
|
+
readonly endpoint: "fal-ai/trellis-2";
|
|
1759
|
+
readonly inputField: "image_url";
|
|
1760
|
+
readonly inputKind: "image";
|
|
1761
|
+
readonly name: "TRELLIS 2";
|
|
1762
|
+
readonly outputKeys: ["model_glb"];
|
|
1763
|
+
readonly price: {
|
|
1764
|
+
readonly kind: "call";
|
|
1765
|
+
readonly usd: 0.3;
|
|
1766
|
+
};
|
|
1767
|
+
readonly pricing: "$0.30 at the default 1024p; $0.25 at 512p, $0.35 at 1536p";
|
|
1768
|
+
readonly queued: true;
|
|
1769
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/trellis-2";
|
|
1770
|
+
readonly task: "single-image 3D reconstruction";
|
|
1771
|
+
};
|
|
1772
|
+
readonly "got-ocr": {
|
|
1773
|
+
readonly category: "analysis";
|
|
1774
|
+
readonly description: "Transcribe text from one or more images, optionally as formatted multi-page output.";
|
|
1775
|
+
readonly endpoint: "fal-ai/got-ocr/v2";
|
|
1776
|
+
readonly inputField: "input_image_urls";
|
|
1777
|
+
readonly inputKind: "images";
|
|
1778
|
+
readonly name: "GOT-OCR 2.0";
|
|
1779
|
+
readonly outputKeys: ["outputs"];
|
|
1780
|
+
readonly price: {
|
|
1781
|
+
readonly kind: "metered";
|
|
1782
|
+
};
|
|
1783
|
+
readonly pricing: "$0.05/image";
|
|
1784
|
+
readonly queued: true;
|
|
1785
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/got-ocr/v2";
|
|
1786
|
+
readonly task: "optical character recognition";
|
|
1787
|
+
};
|
|
1788
|
+
readonly "moondream-caption": {
|
|
1789
|
+
readonly category: "analysis";
|
|
1790
|
+
readonly description: "Write a short, normal, or long caption for an image.";
|
|
1791
|
+
readonly endpoint: "fal-ai/moondream3-preview/caption";
|
|
1792
|
+
readonly inputField: "image_url";
|
|
1793
|
+
readonly inputKind: "image";
|
|
1794
|
+
readonly name: "Moondream 3 Caption";
|
|
1795
|
+
readonly outputKeys: ["output"];
|
|
1796
|
+
readonly price: {
|
|
1797
|
+
readonly kind: "metered";
|
|
1798
|
+
};
|
|
1799
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
1800
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/caption";
|
|
1801
|
+
readonly task: "image captioning";
|
|
1802
|
+
};
|
|
1803
|
+
readonly "moondream-detect": {
|
|
1804
|
+
readonly category: "analysis";
|
|
1805
|
+
readonly description: "Detect prompted objects and return their bounding boxes, with an optional preview.";
|
|
1806
|
+
readonly endpoint: "fal-ai/moondream3-preview/detect";
|
|
1807
|
+
readonly inputField: "image_url";
|
|
1808
|
+
readonly inputKind: "image";
|
|
1809
|
+
readonly name: "Moondream 3 Detect";
|
|
1810
|
+
readonly outputKeys: ["objects", "image"];
|
|
1811
|
+
readonly price: {
|
|
1812
|
+
readonly kind: "metered";
|
|
1813
|
+
};
|
|
1814
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
1815
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/detect";
|
|
1816
|
+
readonly task: "object detection";
|
|
1817
|
+
};
|
|
1818
|
+
readonly "moondream-point": {
|
|
1819
|
+
readonly category: "analysis";
|
|
1820
|
+
readonly description: "Return point coordinates for every instance of a prompted subject.";
|
|
1821
|
+
readonly endpoint: "fal-ai/moondream3-preview/point";
|
|
1822
|
+
readonly inputField: "image_url";
|
|
1823
|
+
readonly inputKind: "image";
|
|
1824
|
+
readonly name: "Moondream 3 Point";
|
|
1825
|
+
readonly outputKeys: ["points", "image"];
|
|
1826
|
+
readonly price: {
|
|
1827
|
+
readonly kind: "metered";
|
|
1828
|
+
};
|
|
1829
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
1830
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/point";
|
|
1831
|
+
readonly task: "object pointing";
|
|
1832
|
+
};
|
|
1833
|
+
readonly "moondream-query": {
|
|
1834
|
+
readonly category: "analysis";
|
|
1835
|
+
readonly description: "Answer a free-form question about an image, with reasoning.";
|
|
1836
|
+
readonly endpoint: "fal-ai/moondream3-preview/query";
|
|
1837
|
+
readonly inputField: "image_url";
|
|
1838
|
+
readonly inputKind: "image";
|
|
1839
|
+
readonly name: "Moondream 3 Query";
|
|
1840
|
+
readonly outputKeys: ["output", "reasoning"];
|
|
1841
|
+
readonly price: {
|
|
1842
|
+
readonly kind: "metered";
|
|
1843
|
+
};
|
|
1844
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
1845
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/query";
|
|
1846
|
+
readonly task: "visual question answering";
|
|
1847
|
+
};
|
|
1848
|
+
readonly nsfw: {
|
|
1849
|
+
readonly category: "moderation";
|
|
1850
|
+
readonly description: "Predict whether one or more images contain NSFW concepts.";
|
|
1851
|
+
readonly endpoint: "fal-ai/x-ailab/nsfw";
|
|
1852
|
+
readonly inputField: "image_urls";
|
|
1853
|
+
readonly inputKind: "images";
|
|
1854
|
+
readonly name: "NSFW Checker";
|
|
1855
|
+
readonly outputKeys: ["has_nsfw_concepts"];
|
|
1856
|
+
readonly price: {
|
|
1857
|
+
readonly kind: "metered";
|
|
1858
|
+
};
|
|
1859
|
+
readonly pricing: "$0.001/image";
|
|
1860
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/x-ailab/nsfw";
|
|
1861
|
+
readonly task: "vision moderation";
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
/**
|
|
1865
|
+
* The seam `server-tools.ts` runs against — the client's authenticated fetch
|
|
1866
|
+
* and its queue status parser, exposed without widening the public surface.
|
|
1867
|
+
*/
|
|
1868
|
+
private get toolExecutor();
|
|
1869
|
+
/** ─── Private ─────────────────────────────────────────────── */
|
|
1870
|
+
/** Authenticated fetch to fal.ai APIs with retry logic. */
|
|
1871
|
+
private request;
|
|
1872
|
+
private ephemeralHeaders;
|
|
1873
|
+
/**
|
|
1874
|
+
* Normalize fal.ai responses.
|
|
1875
|
+
* Some APIs return `{ image: {...} }` instead of `{ images: [...] }`.
|
|
1876
|
+
*/
|
|
1877
|
+
private normalizeResponse;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
type FalToolInputKind = "image" | "images" | "video";
|
|
1881
|
+
/**
|
|
1882
|
+
* Machine-readable cost, so `--dry-run` can emit a number rather than the
|
|
1883
|
+
* prose in `pricing`. Required on every entry: a missing price is what makes
|
|
1884
|
+
* an agent unable to budget across a registry spanning $0.001 to $0.48.
|
|
1885
|
+
*/
|
|
1886
|
+
type FalToolPrice = {
|
|
1887
|
+
kind: "call";
|
|
1888
|
+
usd: number;
|
|
1889
|
+
} | {
|
|
1890
|
+
kind: "megapixel";
|
|
1891
|
+
usd: number;
|
|
1892
|
+
} | {
|
|
1893
|
+
kind: "second";
|
|
1894
|
+
usd: number;
|
|
1895
|
+
} | {
|
|
1896
|
+
kind: "metered";
|
|
1897
|
+
};
|
|
1898
|
+
interface FalToolConfig {
|
|
1899
|
+
category: "3d" | "analysis" | "background" | "depth" | "erase" | "layers" | "material" | "moderation" | "preprocess" | "reframe" | "relight" | "restoration" | "segmentation" | "upscale" | "vector";
|
|
1900
|
+
defaultOptions?: Record<string, unknown>;
|
|
1901
|
+
description: string;
|
|
1902
|
+
endpoint: string;
|
|
1903
|
+
inputField: "image_url" | "image_urls" | "input_image_url" | "input_image_urls" | "video_url";
|
|
1904
|
+
inputKind: FalToolInputKind;
|
|
1905
|
+
name: string;
|
|
1906
|
+
outputKeys: string[];
|
|
1907
|
+
/**
|
|
1908
|
+
* Names for the positions of an array-valued output. Used to name downloaded
|
|
1909
|
+
* files: without it a PBR set lands as images-2.png, images-3.png and the
|
|
1910
|
+
* caller cannot tell a roughness map from a normal map.
|
|
1911
|
+
*
|
|
1912
|
+
* `fromOption` names the request option that actually determines the order —
|
|
1913
|
+
* read the resolved request body first and use its value when present, since
|
|
1914
|
+
* a caller may reorder or subset it. `fallback` is the endpoint's schema
|
|
1915
|
+
* default, used when the option is absent. Whichever is used, check the label
|
|
1916
|
+
* count against the URL count before applying it: a mislabelled map is worse
|
|
1917
|
+
* than a positional one, because it reads as authoritative.
|
|
1918
|
+
*
|
|
1919
|
+
* Only set this where the order is actually determined — by a request option
|
|
1920
|
+
* or by the schema. Leave genuinely unordered arrays unlabelled.
|
|
1921
|
+
*/
|
|
1922
|
+
outputLabels?: Record<string, {
|
|
1923
|
+
fallback: readonly string[];
|
|
1924
|
+
fromOption?: string;
|
|
1925
|
+
}>;
|
|
1926
|
+
price: FalToolPrice;
|
|
1927
|
+
pricing: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Endpoint routinely exceeds the 120s sync timeout; callers should use the
|
|
1930
|
+
* queue path.
|
|
1931
|
+
*/
|
|
1932
|
+
queued?: true;
|
|
1933
|
+
sourceUrl: string;
|
|
1934
|
+
task: string;
|
|
1935
|
+
}
|
|
1936
|
+
interface FalToolRunOptions {
|
|
1937
|
+
input?: string;
|
|
1938
|
+
inputs?: string[];
|
|
1939
|
+
options?: Record<string, unknown>;
|
|
1940
|
+
tool: string;
|
|
1941
|
+
}
|
|
1942
|
+
interface FalToolRequest {
|
|
1943
|
+
body: Record<string, unknown>;
|
|
1944
|
+
endpoint: string;
|
|
1945
|
+
tool: FalToolConfig;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
declare const FAL_TOOLS: {
|
|
1949
|
+
readonly "depth-anything": {
|
|
1950
|
+
readonly category: "preprocess";
|
|
1951
|
+
readonly description: "Generate Depth Anything v2 depth maps from input images.";
|
|
1952
|
+
readonly endpoint: "fal-ai/image-preprocessors/depth-anything/v2";
|
|
1953
|
+
readonly inputField: "image_url";
|
|
1954
|
+
readonly inputKind: "image";
|
|
1955
|
+
readonly name: "Depth Anything v2 Preprocessor";
|
|
1956
|
+
readonly outputKeys: ["image"];
|
|
1957
|
+
readonly price: {
|
|
1958
|
+
readonly kind: "metered";
|
|
1959
|
+
};
|
|
1960
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
1961
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/depth-anything/v2";
|
|
1962
|
+
readonly task: "depth preprocessing";
|
|
1963
|
+
};
|
|
1964
|
+
readonly dwpose: {
|
|
1965
|
+
readonly category: "preprocess";
|
|
1966
|
+
readonly description: "Extract body, hand, and face pose skeletons from an image.";
|
|
1967
|
+
readonly endpoint: "fal-ai/dwpose";
|
|
1968
|
+
readonly inputField: "image_url";
|
|
1969
|
+
readonly inputKind: "image";
|
|
1970
|
+
readonly name: "DWPose Estimation";
|
|
1971
|
+
readonly outputKeys: ["image"];
|
|
1972
|
+
readonly price: {
|
|
1973
|
+
readonly kind: "second";
|
|
1974
|
+
readonly usd: 0.0006;
|
|
1975
|
+
};
|
|
1976
|
+
readonly pricing: "$0.0006/compute-second";
|
|
1977
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/dwpose";
|
|
1978
|
+
readonly task: "pose preprocessing";
|
|
1979
|
+
};
|
|
1980
|
+
readonly hed: {
|
|
1981
|
+
readonly category: "preprocess";
|
|
1982
|
+
readonly description: "Generate HED soft edge maps for ControlNet-style workflows.";
|
|
1983
|
+
readonly endpoint: "fal-ai/image-preprocessors/hed";
|
|
1984
|
+
readonly inputField: "image_url";
|
|
1985
|
+
readonly inputKind: "image";
|
|
1986
|
+
readonly name: "HED Edge Preprocessor";
|
|
1987
|
+
readonly outputKeys: ["image"];
|
|
1988
|
+
readonly price: {
|
|
1989
|
+
readonly kind: "metered";
|
|
1990
|
+
};
|
|
1991
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
1992
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/hed";
|
|
1993
|
+
readonly task: "edge preprocessing";
|
|
1994
|
+
};
|
|
1995
|
+
readonly lineart: {
|
|
1996
|
+
readonly category: "preprocess";
|
|
1997
|
+
readonly defaultOptions: {
|
|
1998
|
+
readonly coarse: false;
|
|
1999
|
+
};
|
|
2000
|
+
readonly description: "Generate line art/control-style edges from an input image.";
|
|
2001
|
+
readonly endpoint: "fal-ai/image-preprocessors/lineart";
|
|
2002
|
+
readonly inputField: "image_url";
|
|
2003
|
+
readonly inputKind: "image";
|
|
2004
|
+
readonly name: "Line Art Preprocessor";
|
|
2005
|
+
readonly outputKeys: ["image"];
|
|
2006
|
+
readonly price: {
|
|
2007
|
+
readonly kind: "metered";
|
|
2008
|
+
};
|
|
2009
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2010
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/lineart";
|
|
2011
|
+
readonly task: "image preprocessing";
|
|
2012
|
+
};
|
|
2013
|
+
readonly "marigold-depth": {
|
|
2014
|
+
readonly category: "depth";
|
|
2015
|
+
readonly defaultOptions: {
|
|
2016
|
+
readonly ensemble_size: 10;
|
|
2017
|
+
readonly num_inference_steps: 10;
|
|
2018
|
+
};
|
|
2019
|
+
readonly description: "Create depth maps using Marigold depth estimation.";
|
|
2020
|
+
readonly endpoint: "fal-ai/imageutils/marigold-depth";
|
|
2021
|
+
readonly inputField: "image_url";
|
|
2022
|
+
readonly inputKind: "image";
|
|
2023
|
+
readonly name: "Marigold Depth Estimation";
|
|
2024
|
+
readonly outputKeys: ["image"];
|
|
2025
|
+
readonly price: {
|
|
2026
|
+
readonly kind: "metered";
|
|
2027
|
+
};
|
|
2028
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2029
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/marigold-depth";
|
|
2030
|
+
readonly task: "depth map";
|
|
2031
|
+
};
|
|
2032
|
+
readonly "midas-depth": {
|
|
2033
|
+
readonly category: "depth";
|
|
2034
|
+
readonly defaultOptions: {
|
|
2035
|
+
readonly a: number;
|
|
2036
|
+
readonly bg_th: 0.1;
|
|
2037
|
+
};
|
|
2038
|
+
readonly description: "Create MiDaS depth maps from input images.";
|
|
2039
|
+
readonly endpoint: "fal-ai/imageutils/depth";
|
|
2040
|
+
readonly inputField: "image_url";
|
|
2041
|
+
readonly inputKind: "image";
|
|
2042
|
+
readonly name: "MiDaS Depth Estimation";
|
|
2043
|
+
readonly outputKeys: ["image"];
|
|
2044
|
+
readonly price: {
|
|
2045
|
+
readonly kind: "metered";
|
|
2046
|
+
};
|
|
2047
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2048
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/depth";
|
|
2049
|
+
readonly task: "depth map";
|
|
2050
|
+
};
|
|
2051
|
+
readonly "midas-preprocessor": {
|
|
2052
|
+
readonly category: "preprocess";
|
|
2053
|
+
readonly description: "Generate MiDaS depth and normal maps for image workflows.";
|
|
2054
|
+
readonly endpoint: "fal-ai/image-preprocessors/midas";
|
|
2055
|
+
readonly inputField: "image_url";
|
|
2056
|
+
readonly inputKind: "image";
|
|
2057
|
+
readonly name: "MiDaS Preprocessor";
|
|
2058
|
+
readonly outputKeys: ["depth_map", "normal_map"];
|
|
2059
|
+
readonly price: {
|
|
2060
|
+
readonly kind: "metered";
|
|
2061
|
+
};
|
|
2062
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2063
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/midas";
|
|
2064
|
+
readonly task: "depth and normal preprocessing";
|
|
2065
|
+
};
|
|
2066
|
+
readonly mlsd: {
|
|
2067
|
+
readonly category: "preprocess";
|
|
2068
|
+
readonly description: "Detect straight line segments for architectural and interior control maps.";
|
|
2069
|
+
readonly endpoint: "fal-ai/image-preprocessors/mlsd";
|
|
2070
|
+
readonly inputField: "image_url";
|
|
2071
|
+
readonly inputKind: "image";
|
|
2072
|
+
readonly name: "M-LSD Line Preprocessor";
|
|
2073
|
+
readonly outputKeys: ["image"];
|
|
2074
|
+
readonly price: {
|
|
2075
|
+
readonly kind: "metered";
|
|
2076
|
+
};
|
|
2077
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2078
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/mlsd";
|
|
2079
|
+
readonly task: "line segment preprocessing";
|
|
2080
|
+
};
|
|
2081
|
+
readonly pidi: {
|
|
2082
|
+
readonly category: "preprocess";
|
|
2083
|
+
readonly description: "Generate PiDiNet soft edge maps from an input image.";
|
|
2084
|
+
readonly endpoint: "fal-ai/image-preprocessors/pidi";
|
|
2085
|
+
readonly inputField: "image_url";
|
|
2086
|
+
readonly inputKind: "image";
|
|
2087
|
+
readonly name: "PiDiNet Edge Preprocessor";
|
|
2088
|
+
readonly outputKeys: ["image"];
|
|
2089
|
+
readonly price: {
|
|
2090
|
+
readonly kind: "metered";
|
|
2091
|
+
};
|
|
2092
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2093
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/pidi";
|
|
2094
|
+
readonly task: "edge preprocessing";
|
|
2095
|
+
};
|
|
2096
|
+
readonly "sam-preprocessor": {
|
|
2097
|
+
readonly category: "preprocess";
|
|
2098
|
+
readonly description: "Generate a SAM segmentation map for ControlNet-style workflows.";
|
|
2099
|
+
readonly endpoint: "fal-ai/image-preprocessors/sam";
|
|
2100
|
+
readonly inputField: "image_url";
|
|
2101
|
+
readonly inputKind: "image";
|
|
2102
|
+
readonly name: "SAM Preprocessor";
|
|
2103
|
+
readonly outputKeys: ["image"];
|
|
2104
|
+
readonly price: {
|
|
2105
|
+
readonly kind: "metered";
|
|
2106
|
+
};
|
|
2107
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2108
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/sam";
|
|
2109
|
+
readonly task: "segmentation preprocessing";
|
|
2110
|
+
};
|
|
2111
|
+
readonly "sam2-auto": {
|
|
2112
|
+
readonly category: "segmentation";
|
|
2113
|
+
readonly defaultOptions: {
|
|
2114
|
+
readonly min_mask_region_area: 100;
|
|
2115
|
+
readonly output_format: "png";
|
|
2116
|
+
readonly points_per_side: 32;
|
|
2117
|
+
readonly pred_iou_thresh: 0.88;
|
|
2118
|
+
readonly stability_score_thresh: 0.95;
|
|
2119
|
+
};
|
|
2120
|
+
readonly description: "Automatically segment an image into combined and individual masks.";
|
|
2121
|
+
readonly endpoint: "fal-ai/sam2/auto-segment";
|
|
2122
|
+
readonly inputField: "image_url";
|
|
2123
|
+
readonly inputKind: "image";
|
|
2124
|
+
readonly name: "SAM 2 Auto Segment";
|
|
2125
|
+
readonly outputKeys: ["combined_mask", "individual_masks"];
|
|
2126
|
+
readonly price: {
|
|
2127
|
+
readonly kind: "metered";
|
|
2128
|
+
};
|
|
2129
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2130
|
+
readonly queued: true;
|
|
2131
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam2/auto-segment";
|
|
2132
|
+
readonly task: "automatic image segmentation";
|
|
2133
|
+
};
|
|
2134
|
+
readonly "sam3-1-image": {
|
|
2135
|
+
readonly category: "segmentation";
|
|
2136
|
+
readonly defaultOptions: {
|
|
2137
|
+
readonly apply_mask: true;
|
|
2138
|
+
readonly max_masks: 3;
|
|
2139
|
+
readonly output_format: "png";
|
|
2140
|
+
};
|
|
2141
|
+
readonly description: "Segment image objects with text, point, or box prompts. SAM 3.1 adds Object Multiplex for faster multi-object tracking.";
|
|
2142
|
+
readonly endpoint: "fal-ai/sam-3-1/image";
|
|
2143
|
+
readonly inputField: "image_url";
|
|
2144
|
+
readonly inputKind: "image";
|
|
2145
|
+
readonly name: "SAM 3.1 Image";
|
|
2146
|
+
readonly outputKeys: ["image", "masks", "metadata", "scores", "boxes"];
|
|
2147
|
+
readonly price: {
|
|
2148
|
+
readonly kind: "call";
|
|
2149
|
+
readonly usd: 0.01;
|
|
2150
|
+
};
|
|
2151
|
+
readonly pricing: "$0.01/request";
|
|
2152
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3-1/image";
|
|
2153
|
+
readonly task: "promptable image segmentation";
|
|
2154
|
+
};
|
|
2155
|
+
readonly "sam3-1-video": {
|
|
2156
|
+
readonly category: "segmentation";
|
|
2157
|
+
readonly defaultOptions: {
|
|
2158
|
+
readonly apply_mask: true;
|
|
2159
|
+
readonly prompt: "person";
|
|
2160
|
+
};
|
|
2161
|
+
readonly description: "SAM 3.1 video segmentation with Object Multiplex tracking for multiple objects.";
|
|
2162
|
+
readonly endpoint: "fal-ai/sam-3-1/video";
|
|
2163
|
+
readonly inputField: "video_url";
|
|
2164
|
+
readonly inputKind: "video";
|
|
2165
|
+
readonly name: "SAM 3.1 Video";
|
|
2166
|
+
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
2167
|
+
readonly price: {
|
|
2168
|
+
readonly kind: "metered";
|
|
2169
|
+
};
|
|
2170
|
+
readonly pricing: "$0.01/16 frames of video input";
|
|
2171
|
+
readonly queued: true;
|
|
2172
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3-1/video";
|
|
2173
|
+
readonly task: "multi-object video segmentation";
|
|
2174
|
+
};
|
|
2175
|
+
readonly "sam3-image": {
|
|
2176
|
+
readonly category: "segmentation";
|
|
2177
|
+
readonly defaultOptions: {
|
|
2178
|
+
readonly apply_mask: true;
|
|
2179
|
+
readonly max_masks: 3;
|
|
2180
|
+
readonly output_format: "png";
|
|
2181
|
+
};
|
|
2182
|
+
readonly description: "Segment image objects with text, point, or box prompts.";
|
|
2183
|
+
readonly endpoint: "fal-ai/sam-3/image";
|
|
2184
|
+
readonly inputField: "image_url";
|
|
2185
|
+
readonly inputKind: "image";
|
|
2186
|
+
readonly name: "SAM 3 Image";
|
|
2187
|
+
readonly outputKeys: ["image", "masks", "metadata", "scores", "boxes"];
|
|
2188
|
+
readonly price: {
|
|
2189
|
+
readonly kind: "call";
|
|
2190
|
+
readonly usd: 0.005;
|
|
2191
|
+
};
|
|
2192
|
+
readonly pricing: "$0.005/request";
|
|
2193
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/image";
|
|
2194
|
+
readonly task: "promptable image segmentation";
|
|
2195
|
+
};
|
|
2196
|
+
readonly "sam3-image-rle": {
|
|
2197
|
+
readonly category: "segmentation";
|
|
2198
|
+
readonly defaultOptions: {
|
|
2199
|
+
readonly apply_mask: true;
|
|
2200
|
+
readonly max_masks: 3;
|
|
2201
|
+
};
|
|
2202
|
+
readonly description: "Segment image objects and return run-length encoded masks.";
|
|
2203
|
+
readonly endpoint: "fal-ai/sam-3/image-rle";
|
|
2204
|
+
readonly inputField: "image_url";
|
|
2205
|
+
readonly inputKind: "image";
|
|
2206
|
+
readonly name: "SAM 3 Image RLE";
|
|
2207
|
+
readonly outputKeys: ["rle", "scores", "boxes", "metadata"];
|
|
2208
|
+
readonly price: {
|
|
2209
|
+
readonly kind: "call";
|
|
2210
|
+
readonly usd: 0.005;
|
|
2211
|
+
};
|
|
2212
|
+
readonly pricing: "$0.005/request";
|
|
2213
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/image-rle";
|
|
2214
|
+
readonly task: "promptable image segmentation to RLE";
|
|
2215
|
+
};
|
|
2216
|
+
readonly "sam3-video": {
|
|
2217
|
+
readonly category: "segmentation";
|
|
2218
|
+
readonly defaultOptions: {
|
|
2219
|
+
readonly apply_mask: true;
|
|
2220
|
+
readonly detection_threshold: 0.5;
|
|
2221
|
+
readonly prompt: "person";
|
|
2222
|
+
readonly video_output_type: "X264 (.mp4)";
|
|
2223
|
+
};
|
|
2224
|
+
readonly description: "Segment and track prompted objects across video frames.";
|
|
2225
|
+
readonly endpoint: "fal-ai/sam-3/video";
|
|
2226
|
+
readonly inputField: "video_url";
|
|
2227
|
+
readonly inputKind: "video";
|
|
2228
|
+
readonly name: "SAM 3 Video";
|
|
2229
|
+
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
2230
|
+
readonly price: {
|
|
2231
|
+
readonly kind: "metered";
|
|
2232
|
+
};
|
|
2233
|
+
readonly pricing: "$0.005/16 frames of video input";
|
|
2234
|
+
readonly queued: true;
|
|
2235
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video";
|
|
2236
|
+
readonly task: "promptable video segmentation";
|
|
2237
|
+
};
|
|
2238
|
+
readonly "sam3-video-rle": {
|
|
2239
|
+
readonly category: "segmentation";
|
|
2240
|
+
readonly defaultOptions: {
|
|
2241
|
+
readonly apply_mask: true;
|
|
2242
|
+
readonly detection_threshold: 0.5;
|
|
2243
|
+
readonly prompt: "person";
|
|
2244
|
+
};
|
|
2245
|
+
readonly description: "Track prompted video objects and return RLE mask data.";
|
|
2246
|
+
readonly endpoint: "fal-ai/sam-3/video-rle";
|
|
2247
|
+
readonly inputField: "video_url";
|
|
2248
|
+
readonly inputKind: "video";
|
|
2249
|
+
readonly name: "SAM 3 Video RLE";
|
|
2250
|
+
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
2251
|
+
readonly price: {
|
|
2252
|
+
readonly kind: "metered";
|
|
2253
|
+
};
|
|
2254
|
+
readonly pricing: "$0.005/16 frames of video";
|
|
2255
|
+
readonly queued: true;
|
|
2256
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video-rle";
|
|
2257
|
+
readonly task: "promptable video segmentation to RLE";
|
|
2258
|
+
};
|
|
2259
|
+
readonly scribble: {
|
|
2260
|
+
readonly category: "preprocess";
|
|
2261
|
+
readonly description: "Turn an image into a scribble-style control map.";
|
|
2262
|
+
readonly endpoint: "fal-ai/image-preprocessors/scribble";
|
|
2263
|
+
readonly inputField: "image_url";
|
|
2264
|
+
readonly inputKind: "image";
|
|
2265
|
+
readonly name: "Scribble Preprocessor";
|
|
2266
|
+
readonly outputKeys: ["image"];
|
|
2267
|
+
readonly price: {
|
|
2268
|
+
readonly kind: "metered";
|
|
2269
|
+
};
|
|
2270
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2271
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/scribble";
|
|
2272
|
+
readonly task: "scribble preprocessing";
|
|
2273
|
+
};
|
|
2274
|
+
readonly teed: {
|
|
2275
|
+
readonly category: "preprocess";
|
|
2276
|
+
readonly description: "Generate TEED edge maps from an input image.";
|
|
2277
|
+
readonly endpoint: "fal-ai/image-preprocessors/teed";
|
|
2278
|
+
readonly inputField: "image_url";
|
|
2279
|
+
readonly inputKind: "image";
|
|
2280
|
+
readonly name: "TEED Edge Preprocessor";
|
|
2281
|
+
readonly outputKeys: ["image"];
|
|
2282
|
+
readonly price: {
|
|
2283
|
+
readonly kind: "metered";
|
|
2284
|
+
};
|
|
2285
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2286
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/teed";
|
|
2287
|
+
readonly task: "edge preprocessing";
|
|
2288
|
+
};
|
|
2289
|
+
readonly "zoe-depth": {
|
|
2290
|
+
readonly category: "preprocess";
|
|
2291
|
+
readonly description: "Generate ZoeDepth metric depth maps from an input image.";
|
|
2292
|
+
readonly endpoint: "fal-ai/image-preprocessors/zoe";
|
|
2293
|
+
readonly inputField: "image_url";
|
|
2294
|
+
readonly inputKind: "image";
|
|
2295
|
+
readonly name: "ZoeDepth Preprocessor";
|
|
2296
|
+
readonly outputKeys: ["image"];
|
|
2297
|
+
readonly price: {
|
|
2298
|
+
readonly kind: "metered";
|
|
2299
|
+
};
|
|
2300
|
+
readonly pricing: "$0/compute-second listed by fal";
|
|
2301
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-preprocessors/zoe";
|
|
2302
|
+
readonly task: "depth preprocessing";
|
|
2303
|
+
};
|
|
2304
|
+
readonly "bria-eraser": {
|
|
2305
|
+
readonly category: "erase";
|
|
2306
|
+
readonly description: "Commercial-safe removal of a masked region, inpainted from surrounding context.";
|
|
2307
|
+
readonly endpoint: "fal-ai/bria/eraser";
|
|
2308
|
+
readonly inputField: "image_url";
|
|
2309
|
+
readonly inputKind: "image";
|
|
2310
|
+
readonly name: "Bria Eraser";
|
|
2311
|
+
readonly outputKeys: ["image"];
|
|
2312
|
+
readonly price: {
|
|
2313
|
+
readonly kind: "call";
|
|
2314
|
+
readonly usd: 0.04;
|
|
2315
|
+
};
|
|
2316
|
+
readonly pricing: "$0.04/generation";
|
|
2317
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/eraser";
|
|
2318
|
+
readonly task: "masked object erasure";
|
|
2319
|
+
};
|
|
2320
|
+
readonly "bria-expand": {
|
|
2321
|
+
readonly category: "reframe";
|
|
2322
|
+
readonly description: "Expand an image onto a larger canvas, generating the new border area.";
|
|
2323
|
+
readonly endpoint: "fal-ai/bria/expand";
|
|
2324
|
+
readonly inputField: "image_url";
|
|
2325
|
+
readonly inputKind: "image";
|
|
2326
|
+
readonly name: "Bria Image Expansion";
|
|
2327
|
+
readonly outputKeys: ["image"];
|
|
2328
|
+
readonly price: {
|
|
2329
|
+
readonly kind: "call";
|
|
2330
|
+
readonly usd: 0.04;
|
|
2331
|
+
};
|
|
2332
|
+
readonly pricing: "$0.04/generation";
|
|
2333
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/expand";
|
|
2334
|
+
readonly task: "image outpainting";
|
|
2335
|
+
};
|
|
2336
|
+
readonly "bria-genfill": {
|
|
2337
|
+
readonly category: "erase";
|
|
2338
|
+
readonly description: "Generative fill of a masked region from a prompt, commercial-safe.";
|
|
2339
|
+
readonly endpoint: "fal-ai/bria/genfill";
|
|
2340
|
+
readonly inputField: "image_url";
|
|
2341
|
+
readonly inputKind: "image";
|
|
2342
|
+
readonly name: "Bria GenFill";
|
|
2343
|
+
readonly outputKeys: ["images"];
|
|
2344
|
+
readonly price: {
|
|
2345
|
+
readonly kind: "call";
|
|
2346
|
+
readonly usd: 0.04;
|
|
2347
|
+
};
|
|
2348
|
+
readonly pricing: "$0.04/generation";
|
|
2349
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/genfill";
|
|
2350
|
+
readonly task: "masked generative fill";
|
|
2351
|
+
};
|
|
2352
|
+
readonly "finegrain-eraser": {
|
|
2353
|
+
readonly category: "erase";
|
|
2354
|
+
readonly description: "Remove a prompted object and its shadows and reflections, filling the gap.";
|
|
2355
|
+
readonly endpoint: "fal-ai/finegrain-eraser";
|
|
2356
|
+
readonly inputField: "image_url";
|
|
2357
|
+
readonly inputKind: "image";
|
|
2358
|
+
readonly name: "Finegrain Object Eraser";
|
|
2359
|
+
readonly outputKeys: ["image"];
|
|
2360
|
+
readonly price: {
|
|
2361
|
+
readonly kind: "call";
|
|
2362
|
+
readonly usd: 0.27;
|
|
2363
|
+
};
|
|
2364
|
+
readonly pricing: "$0.27/image at the default standard mode; $0.18 express, $0.36 premium";
|
|
2365
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/finegrain-eraser";
|
|
2366
|
+
readonly task: "prompted object erasure";
|
|
2367
|
+
};
|
|
2368
|
+
readonly "flux-outpaint": {
|
|
2369
|
+
readonly category: "reframe";
|
|
2370
|
+
readonly description: "Outpaint an image by a per-edge pixel expansion with FLUX.2 pro.";
|
|
2371
|
+
readonly endpoint: "fal-ai/flux-2-pro/outpaint";
|
|
2372
|
+
readonly inputField: "image_url";
|
|
2373
|
+
readonly inputKind: "image";
|
|
2374
|
+
readonly name: "FLUX.2 Pro Outpaint";
|
|
2375
|
+
readonly outputKeys: ["images"];
|
|
2376
|
+
readonly price: {
|
|
2377
|
+
readonly kind: "metered";
|
|
2378
|
+
};
|
|
2379
|
+
readonly pricing: "$0.03 for the first output megapixel, then $0.015 per extra megapixel of input and output, rounded up";
|
|
2380
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/flux-2-pro/outpaint";
|
|
2381
|
+
readonly task: "image outpainting";
|
|
2382
|
+
};
|
|
2383
|
+
readonly "iclight-v2": {
|
|
2384
|
+
readonly category: "relight";
|
|
2385
|
+
readonly description: "Relight a subject from a prompt, harmonising it with a new light direction.";
|
|
2386
|
+
readonly endpoint: "fal-ai/iclight-v2";
|
|
2387
|
+
readonly inputField: "image_url";
|
|
2388
|
+
readonly inputKind: "image";
|
|
2389
|
+
readonly name: "IC-Light v2";
|
|
2390
|
+
readonly outputKeys: ["images"];
|
|
2391
|
+
readonly price: {
|
|
2392
|
+
readonly kind: "megapixel";
|
|
2393
|
+
readonly usd: 0.1;
|
|
2394
|
+
};
|
|
2395
|
+
readonly pricing: "$0.10/megapixel";
|
|
2396
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/iclight-v2";
|
|
2397
|
+
readonly task: "prompted relighting";
|
|
2398
|
+
};
|
|
2399
|
+
readonly "ideogram-reframe": {
|
|
2400
|
+
readonly category: "reframe";
|
|
2401
|
+
readonly description: "Reframe an image to a new aspect ratio, generating the fill.";
|
|
2402
|
+
readonly endpoint: "fal-ai/ideogram/v3/reframe";
|
|
2403
|
+
readonly inputField: "image_url";
|
|
2404
|
+
readonly inputKind: "image";
|
|
2405
|
+
readonly name: "Ideogram v3 Reframe";
|
|
2406
|
+
readonly outputKeys: ["images"];
|
|
2407
|
+
readonly price: {
|
|
2408
|
+
readonly kind: "call";
|
|
2409
|
+
readonly usd: 0.06;
|
|
2410
|
+
};
|
|
2411
|
+
readonly pricing: "$0.06/image at the default BALANCED speed; $0.03 turbo, $0.09 quality";
|
|
2412
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ideogram/v3/reframe";
|
|
2413
|
+
readonly task: "aspect ratio reframing";
|
|
2414
|
+
};
|
|
2415
|
+
readonly "lighting-restoration": {
|
|
2416
|
+
readonly category: "relight";
|
|
2417
|
+
readonly description: "Restore natural, even lighting across one or more input images.";
|
|
2418
|
+
readonly endpoint: "fal-ai/qwen-image-edit-plus-lora-gallery/lighting-restoration";
|
|
2419
|
+
readonly inputField: "image_urls";
|
|
2420
|
+
readonly inputKind: "images";
|
|
2421
|
+
readonly name: "Qwen Lighting Restoration";
|
|
2422
|
+
readonly outputKeys: ["images"];
|
|
2423
|
+
readonly price: {
|
|
2424
|
+
readonly kind: "megapixel";
|
|
2425
|
+
readonly usd: 0.035;
|
|
2426
|
+
};
|
|
2427
|
+
readonly pricing: "$0.035/megapixel";
|
|
2428
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-edit-plus-lora-gallery/lighting-restoration";
|
|
2429
|
+
readonly task: "lighting restoration";
|
|
2430
|
+
};
|
|
2431
|
+
readonly "object-removal": {
|
|
2432
|
+
readonly category: "erase";
|
|
2433
|
+
readonly description: "Remove a prompted object from an image and fill the gap.";
|
|
2434
|
+
readonly endpoint: "fal-ai/object-removal";
|
|
2435
|
+
readonly inputField: "image_url";
|
|
2436
|
+
readonly inputKind: "image";
|
|
2437
|
+
readonly name: "Object Removal";
|
|
2438
|
+
readonly outputKeys: ["images"];
|
|
2439
|
+
readonly price: {
|
|
2440
|
+
readonly kind: "call";
|
|
2441
|
+
readonly usd: 0.024;
|
|
2442
|
+
};
|
|
2443
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
2444
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal";
|
|
2445
|
+
readonly task: "prompted object removal";
|
|
2446
|
+
};
|
|
2447
|
+
readonly "object-removal-bbox": {
|
|
2448
|
+
readonly category: "erase";
|
|
2449
|
+
readonly description: "Remove whatever falls inside supplied bounding boxes.";
|
|
2450
|
+
readonly endpoint: "fal-ai/object-removal/bbox";
|
|
2451
|
+
readonly inputField: "image_url";
|
|
2452
|
+
readonly inputKind: "image";
|
|
2453
|
+
readonly name: "Object Removal by Box";
|
|
2454
|
+
readonly outputKeys: ["images"];
|
|
2455
|
+
readonly price: {
|
|
2456
|
+
readonly kind: "call";
|
|
2457
|
+
readonly usd: 0.024;
|
|
2458
|
+
};
|
|
2459
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
2460
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal/bbox";
|
|
2461
|
+
readonly task: "bounding box object removal";
|
|
2462
|
+
};
|
|
2463
|
+
readonly "object-removal-mask": {
|
|
2464
|
+
readonly category: "erase";
|
|
2465
|
+
readonly description: "Remove the masked region of an image and fill the gap.";
|
|
2466
|
+
readonly endpoint: "fal-ai/object-removal/mask";
|
|
2467
|
+
readonly inputField: "image_url";
|
|
2468
|
+
readonly inputKind: "image";
|
|
2469
|
+
readonly name: "Object Removal by Mask";
|
|
2470
|
+
readonly outputKeys: ["images"];
|
|
2471
|
+
readonly price: {
|
|
2472
|
+
readonly kind: "call";
|
|
2473
|
+
readonly usd: 0.024;
|
|
2474
|
+
};
|
|
2475
|
+
readonly pricing: "$0.024/image at the default best quality; $0.006 low, $0.012 medium, $0.018 high";
|
|
2476
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/object-removal/mask";
|
|
2477
|
+
readonly task: "masked object removal";
|
|
2478
|
+
};
|
|
2479
|
+
readonly "remove-lighting": {
|
|
2480
|
+
readonly category: "relight";
|
|
2481
|
+
readonly description: "Strip baked-in lighting and shadows to leave a flat, neutral surface.";
|
|
2482
|
+
readonly endpoint: "fal-ai/qwen-image-edit-plus-lora-gallery/remove-lighting";
|
|
2483
|
+
readonly inputField: "image_urls";
|
|
2484
|
+
readonly inputKind: "images";
|
|
2485
|
+
readonly name: "Qwen Remove Lighting";
|
|
2486
|
+
readonly outputKeys: ["images"];
|
|
2487
|
+
readonly price: {
|
|
2488
|
+
readonly kind: "megapixel";
|
|
2489
|
+
readonly usd: 0.035;
|
|
2490
|
+
};
|
|
2491
|
+
readonly pricing: "$0.035/megapixel";
|
|
2492
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-edit-plus-lora-gallery/remove-lighting";
|
|
2493
|
+
readonly task: "lighting removal";
|
|
2494
|
+
};
|
|
2495
|
+
readonly "smart-resize": {
|
|
2496
|
+
readonly category: "reframe";
|
|
2497
|
+
readonly description: "Resize one image to several target sizes, recomposing rather than cropping.";
|
|
2498
|
+
readonly endpoint: "fal-ai/smart-resize";
|
|
2499
|
+
readonly inputField: "image_url";
|
|
2500
|
+
readonly inputKind: "image";
|
|
2501
|
+
readonly name: "Smart Resize";
|
|
2502
|
+
readonly outputKeys: ["images", "results"];
|
|
2503
|
+
readonly price: {
|
|
2504
|
+
readonly kind: "metered";
|
|
2505
|
+
};
|
|
2506
|
+
readonly pricing: "$0.15 per output image, doubled at 4K, plus a $0.05 vision analysis fee per request";
|
|
2507
|
+
readonly queued: true;
|
|
2508
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/smart-resize";
|
|
2509
|
+
readonly task: "multi-size recomposition";
|
|
2510
|
+
};
|
|
2511
|
+
readonly "text-removal": {
|
|
2512
|
+
readonly category: "erase";
|
|
2513
|
+
readonly defaultOptions: {
|
|
2514
|
+
readonly output_format: "png";
|
|
2515
|
+
};
|
|
2516
|
+
readonly description: "Remove all rendered text from an image, rebuilding what sat behind it.";
|
|
2517
|
+
readonly endpoint: "fal-ai/image-editing/text-removal";
|
|
2518
|
+
readonly inputField: "image_url";
|
|
2519
|
+
readonly inputKind: "image";
|
|
2520
|
+
readonly name: "Text Removal";
|
|
2521
|
+
readonly outputKeys: ["images"];
|
|
2522
|
+
readonly price: {
|
|
2523
|
+
readonly kind: "call";
|
|
2524
|
+
readonly usd: 0.04;
|
|
2525
|
+
};
|
|
2526
|
+
readonly pricing: "$0.04/image";
|
|
2527
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image-editing/text-removal";
|
|
2528
|
+
readonly task: "text removal";
|
|
2529
|
+
};
|
|
2530
|
+
readonly "ben-v2": {
|
|
2531
|
+
readonly category: "background";
|
|
2532
|
+
readonly description: "Fast, high-quality background removal for images.";
|
|
2533
|
+
readonly endpoint: "fal-ai/ben/v2/image";
|
|
2534
|
+
readonly inputField: "image_url";
|
|
2535
|
+
readonly inputKind: "image";
|
|
2536
|
+
readonly name: "BEN v2 Background Removal";
|
|
2537
|
+
readonly outputKeys: ["image"];
|
|
2538
|
+
readonly price: {
|
|
2539
|
+
readonly kind: "megapixel";
|
|
2540
|
+
readonly usd: 0.025;
|
|
2541
|
+
};
|
|
2542
|
+
readonly pricing: "$0.025/megapixel";
|
|
2543
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ben/v2/image";
|
|
2544
|
+
readonly task: "image background removal";
|
|
2545
|
+
};
|
|
2546
|
+
readonly birefnet: {
|
|
2547
|
+
readonly category: "background";
|
|
2548
|
+
readonly defaultOptions: {
|
|
2549
|
+
readonly model: "General Use (Light)";
|
|
2550
|
+
readonly operating_resolution: "1024x1024";
|
|
2551
|
+
readonly output_format: "png";
|
|
2552
|
+
readonly refine_foreground: true;
|
|
2553
|
+
};
|
|
2554
|
+
readonly description: "High-resolution dichotomous image segmentation and background removal.";
|
|
2555
|
+
readonly endpoint: "fal-ai/birefnet/v2";
|
|
2556
|
+
readonly inputField: "image_url";
|
|
977
2557
|
readonly inputKind: "image";
|
|
978
2558
|
readonly name: "BirefNet Background Removal";
|
|
979
2559
|
readonly outputKeys: ["image", "mask_image"];
|
|
2560
|
+
readonly price: {
|
|
2561
|
+
readonly kind: "metered";
|
|
2562
|
+
};
|
|
980
2563
|
readonly pricing: "$0/compute-second listed by fal";
|
|
981
2564
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/birefnet/v2";
|
|
982
2565
|
readonly task: "image background removal";
|
|
@@ -989,7 +2572,11 @@ declare const FAL_TOOLS: {
|
|
|
989
2572
|
readonly inputKind: "image";
|
|
990
2573
|
readonly name: "Bria RMBG 2.0";
|
|
991
2574
|
readonly outputKeys: ["image"];
|
|
992
|
-
readonly
|
|
2575
|
+
readonly price: {
|
|
2576
|
+
readonly kind: "call";
|
|
2577
|
+
readonly usd: 0.018;
|
|
2578
|
+
};
|
|
2579
|
+
readonly pricing: "$0.018/generation";
|
|
993
2580
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/bria/background/remove";
|
|
994
2581
|
readonly task: "image background removal";
|
|
995
2582
|
};
|
|
@@ -1006,171 +2593,410 @@ declare const FAL_TOOLS: {
|
|
|
1006
2593
|
readonly inputKind: "video";
|
|
1007
2594
|
readonly name: "Bria Video Background Removal";
|
|
1008
2595
|
readonly outputKeys: ["video"];
|
|
1009
|
-
readonly
|
|
2596
|
+
readonly price: {
|
|
2597
|
+
readonly kind: "second";
|
|
2598
|
+
readonly usd: 0.00425;
|
|
2599
|
+
};
|
|
2600
|
+
readonly pricing: "$0.00425/sec";
|
|
2601
|
+
readonly queued: true;
|
|
1010
2602
|
readonly sourceUrl: "https://fal.ai/models/bria/video/background-removal";
|
|
1011
2603
|
readonly task: "video background removal";
|
|
1012
2604
|
};
|
|
1013
|
-
readonly
|
|
1014
|
-
readonly category: "
|
|
1015
|
-
readonly description: "
|
|
1016
|
-
readonly endpoint: "fal-ai/
|
|
2605
|
+
readonly ddcolor: {
|
|
2606
|
+
readonly category: "restoration";
|
|
2607
|
+
readonly description: "Colourise black-and-white photographs.";
|
|
2608
|
+
readonly endpoint: "fal-ai/ddcolor";
|
|
1017
2609
|
readonly inputField: "image_url";
|
|
1018
2610
|
readonly inputKind: "image";
|
|
1019
|
-
readonly name: "
|
|
2611
|
+
readonly name: "DDColor Colourisation";
|
|
2612
|
+
readonly outputKeys: ["image"];
|
|
2613
|
+
readonly price: {
|
|
2614
|
+
readonly kind: "megapixel";
|
|
2615
|
+
readonly usd: 0.001;
|
|
2616
|
+
};
|
|
2617
|
+
readonly pricing: "$0.001/megapixel";
|
|
2618
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ddcolor";
|
|
2619
|
+
readonly task: "photo colourisation";
|
|
2620
|
+
};
|
|
2621
|
+
readonly rembg: {
|
|
2622
|
+
readonly category: "background";
|
|
2623
|
+
readonly defaultOptions: {
|
|
2624
|
+
readonly crop_to_bbox: false;
|
|
2625
|
+
};
|
|
2626
|
+
readonly description: "Generic image background removal utility.";
|
|
2627
|
+
readonly endpoint: "fal-ai/imageutils/rembg";
|
|
2628
|
+
readonly inputField: "image_url";
|
|
2629
|
+
readonly inputKind: "image";
|
|
2630
|
+
readonly name: "Remove Background";
|
|
1020
2631
|
readonly outputKeys: ["image"];
|
|
2632
|
+
readonly price: {
|
|
2633
|
+
readonly kind: "metered";
|
|
2634
|
+
};
|
|
1021
2635
|
readonly pricing: "$0/compute-second listed by fal";
|
|
1022
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/
|
|
1023
|
-
readonly task: "
|
|
2636
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/imageutils/rembg";
|
|
2637
|
+
readonly task: "image background removal";
|
|
1024
2638
|
};
|
|
1025
|
-
readonly
|
|
1026
|
-
readonly category: "
|
|
2639
|
+
readonly "seedvr-upscale": {
|
|
2640
|
+
readonly category: "restoration";
|
|
1027
2641
|
readonly defaultOptions: {
|
|
1028
|
-
readonly
|
|
2642
|
+
readonly output_format: "png";
|
|
1029
2643
|
};
|
|
1030
|
-
readonly description: "
|
|
1031
|
-
readonly endpoint: "fal-ai/image
|
|
2644
|
+
readonly description: "Diffusion image restoration and upscaling with SeedVR.";
|
|
2645
|
+
readonly endpoint: "fal-ai/seedvr/upscale/image";
|
|
1032
2646
|
readonly inputField: "image_url";
|
|
1033
2647
|
readonly inputKind: "image";
|
|
1034
|
-
readonly name: "
|
|
2648
|
+
readonly name: "SeedVR Image Upscale";
|
|
2649
|
+
readonly outputKeys: ["image"];
|
|
2650
|
+
readonly price: {
|
|
2651
|
+
readonly kind: "megapixel";
|
|
2652
|
+
readonly usd: 0.001;
|
|
2653
|
+
};
|
|
2654
|
+
readonly pricing: "$0.001/megapixel";
|
|
2655
|
+
readonly queued: true;
|
|
2656
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/seedvr/upscale/image";
|
|
2657
|
+
readonly task: "image restoration and upscaling";
|
|
2658
|
+
};
|
|
2659
|
+
readonly "topaz-adjust": {
|
|
2660
|
+
readonly category: "restoration";
|
|
2661
|
+
readonly defaultOptions: {
|
|
2662
|
+
readonly output_format: "png";
|
|
2663
|
+
};
|
|
2664
|
+
readonly description: "Topaz exposure, white balance, and colour adjustment.";
|
|
2665
|
+
readonly endpoint: "topaz/adjust/image";
|
|
2666
|
+
readonly inputField: "image_url";
|
|
2667
|
+
readonly inputKind: "image";
|
|
2668
|
+
readonly name: "Topaz Adjust";
|
|
2669
|
+
readonly outputKeys: ["image"];
|
|
2670
|
+
readonly price: {
|
|
2671
|
+
readonly kind: "megapixel";
|
|
2672
|
+
readonly usd: number;
|
|
2673
|
+
};
|
|
2674
|
+
readonly pricing: "$0.08 per 24 output megapixels";
|
|
2675
|
+
readonly queued: true;
|
|
2676
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/adjust/image";
|
|
2677
|
+
readonly task: "tonal adjustment";
|
|
2678
|
+
};
|
|
2679
|
+
readonly "topaz-creative": {
|
|
2680
|
+
readonly category: "restoration";
|
|
2681
|
+
readonly defaultOptions: {
|
|
2682
|
+
readonly output_format: "png";
|
|
2683
|
+
};
|
|
2684
|
+
readonly description: "Topaz Bloom upscaling, which reimagines detail rather than preserving it.";
|
|
2685
|
+
readonly endpoint: "topaz/upscale/image/creative";
|
|
2686
|
+
readonly inputField: "image_url";
|
|
2687
|
+
readonly inputKind: "image";
|
|
2688
|
+
readonly name: "Topaz Creative Upscale";
|
|
2689
|
+
readonly outputKeys: ["image"];
|
|
2690
|
+
readonly price: {
|
|
2691
|
+
readonly kind: "megapixel";
|
|
2692
|
+
readonly usd: number;
|
|
2693
|
+
};
|
|
2694
|
+
readonly pricing: "$0.96 per 24 output megapixels";
|
|
2695
|
+
readonly queued: true;
|
|
2696
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/creative";
|
|
2697
|
+
readonly task: "creative image upscaling";
|
|
2698
|
+
};
|
|
2699
|
+
readonly "topaz-denoise": {
|
|
2700
|
+
readonly category: "restoration";
|
|
2701
|
+
readonly defaultOptions: {
|
|
2702
|
+
readonly output_format: "png";
|
|
2703
|
+
};
|
|
2704
|
+
readonly description: "Topaz noise reduction at source resolution.";
|
|
2705
|
+
readonly endpoint: "topaz/denoise/image";
|
|
2706
|
+
readonly inputField: "image_url";
|
|
2707
|
+
readonly inputKind: "image";
|
|
2708
|
+
readonly name: "Topaz Denoise";
|
|
2709
|
+
readonly outputKeys: ["image"];
|
|
2710
|
+
readonly price: {
|
|
2711
|
+
readonly kind: "megapixel";
|
|
2712
|
+
readonly usd: number;
|
|
2713
|
+
};
|
|
2714
|
+
readonly pricing: "$0.08 per 24 output megapixels at the default Normal model; $0.16 with Denoise Max";
|
|
2715
|
+
readonly queued: true;
|
|
2716
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/denoise/image";
|
|
2717
|
+
readonly task: "image denoising";
|
|
2718
|
+
};
|
|
2719
|
+
readonly "topaz-generative": {
|
|
2720
|
+
readonly category: "restoration";
|
|
2721
|
+
readonly defaultOptions: {
|
|
2722
|
+
readonly output_format: "png";
|
|
2723
|
+
};
|
|
2724
|
+
readonly description: "Topaz Wonder upscaling, which synthesises plausible detail as it enlarges.";
|
|
2725
|
+
readonly endpoint: "topaz/upscale/image/generative";
|
|
2726
|
+
readonly inputField: "image_url";
|
|
2727
|
+
readonly inputKind: "image";
|
|
2728
|
+
readonly name: "Topaz Generative Upscale";
|
|
2729
|
+
readonly outputKeys: ["image"];
|
|
2730
|
+
readonly price: {
|
|
2731
|
+
readonly kind: "megapixel";
|
|
2732
|
+
readonly usd: number;
|
|
2733
|
+
};
|
|
2734
|
+
readonly pricing: "$0.24 per 24 output megapixels at the default Wonder 3; $0.48 with Wonder, Wonder 2, Standard MAX, Redefine or Recover 3";
|
|
2735
|
+
readonly queued: true;
|
|
2736
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/generative";
|
|
2737
|
+
readonly task: "generative image upscaling";
|
|
2738
|
+
};
|
|
2739
|
+
readonly "topaz-image": {
|
|
2740
|
+
readonly category: "upscale";
|
|
2741
|
+
readonly defaultOptions: {
|
|
2742
|
+
readonly model: "Standard V2";
|
|
2743
|
+
readonly output_format: "jpeg";
|
|
2744
|
+
readonly upscale_factor: 2;
|
|
2745
|
+
};
|
|
2746
|
+
readonly description: "Professional Topaz image enhancement and upscaling.";
|
|
2747
|
+
readonly endpoint: "fal-ai/topaz/upscale/image";
|
|
2748
|
+
readonly inputField: "image_url";
|
|
2749
|
+
readonly inputKind: "image";
|
|
2750
|
+
readonly name: "Topaz Image Upscale";
|
|
2751
|
+
readonly outputKeys: ["image"];
|
|
2752
|
+
readonly price: {
|
|
2753
|
+
readonly kind: "megapixel";
|
|
2754
|
+
readonly usd: number;
|
|
2755
|
+
};
|
|
2756
|
+
readonly pricing: "$0.08 for output up to 24MP; $0.16 to 48MP, $0.32 to 96MP, up to $1.36 at 512MP";
|
|
2757
|
+
readonly queued: true;
|
|
2758
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/topaz/upscale/image";
|
|
2759
|
+
readonly task: "image enhancement";
|
|
2760
|
+
};
|
|
2761
|
+
readonly "topaz-precision": {
|
|
2762
|
+
readonly category: "restoration";
|
|
2763
|
+
readonly defaultOptions: {
|
|
2764
|
+
readonly output_format: "png";
|
|
2765
|
+
};
|
|
2766
|
+
readonly description: "Topaz upscaling that preserves the original detail rather than inventing it.";
|
|
2767
|
+
readonly endpoint: "topaz/upscale/image/precision";
|
|
2768
|
+
readonly inputField: "image_url";
|
|
2769
|
+
readonly inputKind: "image";
|
|
2770
|
+
readonly name: "Topaz Precision Upscale";
|
|
1035
2771
|
readonly outputKeys: ["image"];
|
|
1036
|
-
readonly
|
|
1037
|
-
|
|
1038
|
-
|
|
2772
|
+
readonly price: {
|
|
2773
|
+
readonly kind: "megapixel";
|
|
2774
|
+
readonly usd: number;
|
|
2775
|
+
};
|
|
2776
|
+
readonly pricing: "$0.08 per 24 output megapixels, any precision model";
|
|
2777
|
+
readonly queued: true;
|
|
2778
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/precision";
|
|
2779
|
+
readonly task: "faithful image upscaling";
|
|
1039
2780
|
};
|
|
1040
|
-
readonly "
|
|
1041
|
-
readonly category: "
|
|
2781
|
+
readonly "topaz-restore": {
|
|
2782
|
+
readonly category: "restoration";
|
|
1042
2783
|
readonly defaultOptions: {
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly num_inference_steps: 10;
|
|
2784
|
+
readonly output_format: "png";
|
|
1045
2785
|
};
|
|
1046
|
-
readonly description: "
|
|
1047
|
-
readonly endpoint: "
|
|
2786
|
+
readonly description: "Topaz restoration of damaged or degraded photographs at source resolution.";
|
|
2787
|
+
readonly endpoint: "topaz/restore/image";
|
|
1048
2788
|
readonly inputField: "image_url";
|
|
1049
2789
|
readonly inputKind: "image";
|
|
1050
|
-
readonly name: "
|
|
2790
|
+
readonly name: "Topaz Restore";
|
|
1051
2791
|
readonly outputKeys: ["image"];
|
|
1052
|
-
readonly
|
|
1053
|
-
|
|
1054
|
-
|
|
2792
|
+
readonly price: {
|
|
2793
|
+
readonly kind: "megapixel";
|
|
2794
|
+
readonly usd: number;
|
|
2795
|
+
};
|
|
2796
|
+
readonly pricing: "$0.48 per 24 output megapixels at the default Recover 3; $0.08 with Dust-Scratch V2";
|
|
2797
|
+
readonly queued: true;
|
|
2798
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/restore/image";
|
|
2799
|
+
readonly task: "photo restoration";
|
|
1055
2800
|
};
|
|
1056
|
-
readonly "
|
|
1057
|
-
readonly category: "
|
|
2801
|
+
readonly "topaz-sharpen": {
|
|
2802
|
+
readonly category: "restoration";
|
|
1058
2803
|
readonly defaultOptions: {
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly bg_th: 0.1;
|
|
2804
|
+
readonly output_format: "png";
|
|
1061
2805
|
};
|
|
1062
|
-
readonly description: "
|
|
1063
|
-
readonly endpoint: "
|
|
2806
|
+
readonly description: "Topaz deblurring and sharpening at source resolution.";
|
|
2807
|
+
readonly endpoint: "topaz/sharpen/image";
|
|
1064
2808
|
readonly inputField: "image_url";
|
|
1065
2809
|
readonly inputKind: "image";
|
|
1066
|
-
readonly name: "
|
|
2810
|
+
readonly name: "Topaz Sharpen";
|
|
1067
2811
|
readonly outputKeys: ["image"];
|
|
1068
|
-
readonly
|
|
1069
|
-
|
|
1070
|
-
|
|
2812
|
+
readonly price: {
|
|
2813
|
+
readonly kind: "megapixel";
|
|
2814
|
+
readonly usd: number;
|
|
2815
|
+
};
|
|
2816
|
+
readonly pricing: "$0.08 per 24 output megapixels at the default Standard model; $0.16 with Super Focus";
|
|
2817
|
+
readonly queued: true;
|
|
2818
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/sharpen/image";
|
|
2819
|
+
readonly task: "image sharpening";
|
|
1071
2820
|
};
|
|
1072
|
-
readonly "
|
|
1073
|
-
readonly category: "
|
|
1074
|
-
readonly description: "
|
|
1075
|
-
readonly endpoint: "
|
|
2821
|
+
readonly "topaz-transparent": {
|
|
2822
|
+
readonly category: "restoration";
|
|
2823
|
+
readonly description: "Topaz upscaling that preserves the alpha channel end to end.";
|
|
2824
|
+
readonly endpoint: "topaz/upscale/image/transparent";
|
|
1076
2825
|
readonly inputField: "image_url";
|
|
1077
2826
|
readonly inputKind: "image";
|
|
1078
|
-
readonly name: "
|
|
1079
|
-
readonly outputKeys: ["
|
|
1080
|
-
readonly
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
readonly
|
|
1086
|
-
readonly
|
|
1087
|
-
readonly
|
|
1088
|
-
readonly inputField: "image_urls";
|
|
1089
|
-
readonly inputKind: "images";
|
|
1090
|
-
readonly name: "NSFW Checker";
|
|
1091
|
-
readonly outputKeys: ["has_nsfw_concepts"];
|
|
1092
|
-
readonly pricing: "$0.001/image";
|
|
1093
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/x-ailab/nsfw";
|
|
1094
|
-
readonly task: "vision moderation";
|
|
2827
|
+
readonly name: "Topaz Transparent Upscale";
|
|
2828
|
+
readonly outputKeys: ["image"];
|
|
2829
|
+
readonly price: {
|
|
2830
|
+
readonly kind: "megapixel";
|
|
2831
|
+
readonly usd: number;
|
|
2832
|
+
};
|
|
2833
|
+
readonly pricing: "$0.08 per 24 output megapixels";
|
|
2834
|
+
readonly queued: true;
|
|
2835
|
+
readonly sourceUrl: "https://fal.ai/models/topaz/upscale/image/transparent";
|
|
2836
|
+
readonly task: "transparent image upscaling";
|
|
1095
2837
|
};
|
|
1096
|
-
readonly
|
|
1097
|
-
readonly category: "
|
|
2838
|
+
readonly "topaz-video": {
|
|
2839
|
+
readonly category: "upscale";
|
|
1098
2840
|
readonly defaultOptions: {
|
|
1099
|
-
readonly
|
|
2841
|
+
readonly model: "Proteus";
|
|
2842
|
+
readonly upscale_factor: 2;
|
|
1100
2843
|
};
|
|
1101
|
-
readonly description: "
|
|
1102
|
-
readonly endpoint: "fal-ai/
|
|
2844
|
+
readonly description: "Professional Topaz video enhancement and upscaling.";
|
|
2845
|
+
readonly endpoint: "fal-ai/topaz/upscale/video";
|
|
2846
|
+
readonly inputField: "video_url";
|
|
2847
|
+
readonly inputKind: "video";
|
|
2848
|
+
readonly name: "Topaz Video Upscale";
|
|
2849
|
+
readonly outputKeys: ["video"];
|
|
2850
|
+
readonly price: {
|
|
2851
|
+
readonly kind: "second";
|
|
2852
|
+
readonly usd: 0.01;
|
|
2853
|
+
};
|
|
2854
|
+
readonly pricing: "$0.01/sec up to 720p; $0.02 to 1080p, $0.08 above, doubled at 60fps, halved with Gaia 2";
|
|
2855
|
+
readonly queued: true;
|
|
2856
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/topaz/upscale/video";
|
|
2857
|
+
readonly task: "video enhancement";
|
|
2858
|
+
};
|
|
2859
|
+
readonly "hunyuan3d-v3": {
|
|
2860
|
+
readonly category: "3d";
|
|
2861
|
+
readonly description: "Reconstruct a textured 3D mesh from a single image, with optional multi-view inputs.";
|
|
2862
|
+
readonly endpoint: "fal-ai/hunyuan3d-v3/image-to-3d";
|
|
2863
|
+
readonly inputField: "input_image_url";
|
|
2864
|
+
readonly inputKind: "image";
|
|
2865
|
+
readonly name: "Hunyuan3D v3 Image to 3D";
|
|
2866
|
+
readonly outputKeys: ["model_glb", "model_urls", "thumbnail"];
|
|
2867
|
+
readonly price: {
|
|
2868
|
+
readonly kind: "call";
|
|
2869
|
+
readonly usd: 0.375;
|
|
2870
|
+
};
|
|
2871
|
+
readonly pricing: "$0.375/generation at the default Normal type; $0.45 low poly, $0.225 geometry only, and $0.15 each for PBR, multi-view, or a custom face count";
|
|
2872
|
+
readonly queued: true;
|
|
2873
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/hunyuan3d-v3/image-to-3d";
|
|
2874
|
+
readonly task: "single-image 3D reconstruction";
|
|
2875
|
+
};
|
|
2876
|
+
readonly "ideogram-layerize-text": {
|
|
2877
|
+
readonly category: "layers";
|
|
2878
|
+
readonly description: "Split an image into background image layers plus editable HTML text containers.";
|
|
2879
|
+
readonly endpoint: "fal-ai/ideogram/v3/layerize-text";
|
|
1103
2880
|
readonly inputField: "image_url";
|
|
1104
2881
|
readonly inputKind: "image";
|
|
1105
|
-
readonly name: "
|
|
1106
|
-
readonly outputKeys: ["image"];
|
|
1107
|
-
readonly
|
|
1108
|
-
|
|
1109
|
-
|
|
2882
|
+
readonly name: "Ideogram v3 Text Layerize";
|
|
2883
|
+
readonly outputKeys: ["image_layers", "image", "text_html", "text_containers"];
|
|
2884
|
+
readonly price: {
|
|
2885
|
+
readonly kind: "call";
|
|
2886
|
+
readonly usd: 0.09;
|
|
2887
|
+
};
|
|
2888
|
+
readonly pricing: "$0.09/image";
|
|
2889
|
+
readonly queued: true;
|
|
2890
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/ideogram/v3/layerize-text";
|
|
2891
|
+
readonly task: "text and image layer extraction";
|
|
1110
2892
|
};
|
|
1111
|
-
readonly "
|
|
1112
|
-
readonly category: "
|
|
1113
|
-
readonly description: "Generate a
|
|
1114
|
-
readonly endpoint: "
|
|
2893
|
+
readonly "ideogram-tiling": {
|
|
2894
|
+
readonly category: "material";
|
|
2895
|
+
readonly description: "Generate a seamlessly tiling texture, optionally conditioned on a source image.";
|
|
2896
|
+
readonly endpoint: "ideogram/v4/tiling";
|
|
1115
2897
|
readonly inputField: "image_url";
|
|
1116
2898
|
readonly inputKind: "image";
|
|
1117
|
-
readonly name: "
|
|
1118
|
-
readonly outputKeys: ["
|
|
1119
|
-
readonly
|
|
1120
|
-
|
|
1121
|
-
|
|
2899
|
+
readonly name: "Ideogram v4 Tiling";
|
|
2900
|
+
readonly outputKeys: ["images"];
|
|
2901
|
+
readonly price: {
|
|
2902
|
+
readonly kind: "megapixel";
|
|
2903
|
+
readonly usd: 0.06;
|
|
2904
|
+
};
|
|
2905
|
+
readonly pricing: "$0.06/megapixel at the default BALANCED speed; $0.03 turbo, $0.10 quality";
|
|
2906
|
+
readonly sourceUrl: "https://fal.ai/models/ideogram/v4/tiling";
|
|
2907
|
+
readonly task: "seamless texture generation";
|
|
1122
2908
|
};
|
|
1123
|
-
readonly
|
|
1124
|
-
readonly category: "
|
|
1125
|
-
readonly
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
2909
|
+
readonly image2svg: {
|
|
2910
|
+
readonly category: "vector";
|
|
2911
|
+
readonly description: "Trace a raster image into layered SVG paths.";
|
|
2912
|
+
readonly endpoint: "fal-ai/image2svg";
|
|
2913
|
+
readonly inputField: "image_url";
|
|
2914
|
+
readonly inputKind: "image";
|
|
2915
|
+
readonly name: "Image to SVG";
|
|
2916
|
+
readonly outputKeys: ["images"];
|
|
2917
|
+
readonly price: {
|
|
2918
|
+
readonly kind: "call";
|
|
2919
|
+
readonly usd: 0.005;
|
|
1131
2920
|
};
|
|
1132
|
-
readonly
|
|
1133
|
-
readonly
|
|
2921
|
+
readonly pricing: "$0.005/image";
|
|
2922
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/image2svg";
|
|
2923
|
+
readonly task: "raster to vector tracing";
|
|
2924
|
+
};
|
|
2925
|
+
readonly patina: {
|
|
2926
|
+
readonly category: "material";
|
|
2927
|
+
readonly description: "Decompose a surface photograph into PBR maps: basecolor, normal, roughness, metalness, height.";
|
|
2928
|
+
readonly endpoint: "fal-ai/patina";
|
|
1134
2929
|
readonly inputField: "image_url";
|
|
1135
2930
|
readonly inputKind: "image";
|
|
1136
|
-
readonly name: "
|
|
1137
|
-
readonly outputKeys: ["
|
|
1138
|
-
readonly
|
|
1139
|
-
|
|
1140
|
-
|
|
2931
|
+
readonly name: "Patina PBR Maps";
|
|
2932
|
+
readonly outputKeys: ["images"];
|
|
2933
|
+
readonly outputLabels: {
|
|
2934
|
+
readonly images: {
|
|
2935
|
+
readonly fallback: readonly ["basecolor", "normal", "roughness", "metalness", "height"];
|
|
2936
|
+
readonly fromOption: "maps";
|
|
2937
|
+
};
|
|
2938
|
+
};
|
|
2939
|
+
readonly price: {
|
|
2940
|
+
readonly kind: "metered";
|
|
2941
|
+
};
|
|
2942
|
+
readonly pricing: "$0.01 base plus $0.01/megapixel per output map, so all 5 maps on a 1MP image cost $0.06; the listed rate is per map";
|
|
2943
|
+
readonly queued: true;
|
|
2944
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/patina";
|
|
2945
|
+
readonly task: "PBR material decomposition";
|
|
1141
2946
|
};
|
|
1142
|
-
readonly "
|
|
1143
|
-
readonly category: "
|
|
1144
|
-
readonly
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
2947
|
+
readonly "patina-extract": {
|
|
2948
|
+
readonly category: "material";
|
|
2949
|
+
readonly description: "Extract a tiling PBR material from a prompted region of a photograph.";
|
|
2950
|
+
readonly endpoint: "fal-ai/patina/material/extract";
|
|
2951
|
+
readonly inputField: "image_url";
|
|
2952
|
+
readonly inputKind: "image";
|
|
2953
|
+
readonly name: "Patina Material Extract";
|
|
2954
|
+
readonly outputKeys: ["images"];
|
|
2955
|
+
readonly outputLabels: {
|
|
2956
|
+
readonly images: {
|
|
2957
|
+
readonly fallback: readonly ["basecolor", "normal", "roughness", "metalness", "height"];
|
|
2958
|
+
readonly fromOption: "maps";
|
|
2959
|
+
};
|
|
1148
2960
|
};
|
|
1149
|
-
readonly
|
|
1150
|
-
|
|
2961
|
+
readonly price: {
|
|
2962
|
+
readonly kind: "metered";
|
|
2963
|
+
};
|
|
2964
|
+
readonly pricing: "$0.10 base only; add $0.02/megapixel plus $0.01/megapixel per map, so 1MP with all 5 maps is $0.17";
|
|
2965
|
+
readonly queued: true;
|
|
2966
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/patina/material/extract";
|
|
2967
|
+
readonly task: "tiling material extraction";
|
|
2968
|
+
};
|
|
2969
|
+
readonly "qwen-layered": {
|
|
2970
|
+
readonly category: "layers";
|
|
2971
|
+
readonly description: "Split an image into a configurable number of stacked RGBA layers.";
|
|
2972
|
+
readonly endpoint: "fal-ai/qwen-image-layered";
|
|
1151
2973
|
readonly inputField: "image_url";
|
|
1152
2974
|
readonly inputKind: "image";
|
|
1153
|
-
readonly name: "
|
|
1154
|
-
readonly outputKeys: ["
|
|
1155
|
-
readonly
|
|
1156
|
-
|
|
1157
|
-
|
|
2975
|
+
readonly name: "Qwen Image Layered";
|
|
2976
|
+
readonly outputKeys: ["images"];
|
|
2977
|
+
readonly price: {
|
|
2978
|
+
readonly kind: "metered";
|
|
2979
|
+
};
|
|
2980
|
+
readonly pricing: "$0.05 per image; fal does not say whether that counts the input image or each of the generated layers, so no estimate is reported";
|
|
2981
|
+
readonly queued: true;
|
|
2982
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/qwen-image-layered";
|
|
2983
|
+
readonly task: "image layer decomposition";
|
|
1158
2984
|
};
|
|
1159
|
-
readonly "
|
|
1160
|
-
readonly category: "
|
|
1161
|
-
readonly
|
|
1162
|
-
|
|
1163
|
-
|
|
2985
|
+
readonly "recraft-vectorize": {
|
|
2986
|
+
readonly category: "vector";
|
|
2987
|
+
readonly description: "Convert a raster image into a clean SVG.";
|
|
2988
|
+
readonly endpoint: "fal-ai/recraft/vectorize";
|
|
2989
|
+
readonly inputField: "image_url";
|
|
2990
|
+
readonly inputKind: "image";
|
|
2991
|
+
readonly name: "Recraft Vectorize";
|
|
2992
|
+
readonly outputKeys: ["image"];
|
|
2993
|
+
readonly price: {
|
|
2994
|
+
readonly kind: "call";
|
|
2995
|
+
readonly usd: 0.04;
|
|
1164
2996
|
};
|
|
1165
|
-
readonly
|
|
1166
|
-
readonly
|
|
1167
|
-
readonly
|
|
1168
|
-
readonly inputKind: "video";
|
|
1169
|
-
readonly name: "SAM 3.1 Video";
|
|
1170
|
-
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
1171
|
-
readonly pricing: "fal pricing varies by frame count";
|
|
1172
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3-1/video";
|
|
1173
|
-
readonly task: "multi-object video segmentation";
|
|
2997
|
+
readonly pricing: "$0.04/image, $0.08 with a vector style";
|
|
2998
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/recraft/vectorize";
|
|
2999
|
+
readonly task: "raster to vector conversion";
|
|
1174
3000
|
};
|
|
1175
3001
|
readonly "sam3-3d-align": {
|
|
1176
3002
|
readonly category: "3d";
|
|
@@ -1179,8 +3005,12 @@ declare const FAL_TOOLS: {
|
|
|
1179
3005
|
readonly inputField: "image_url";
|
|
1180
3006
|
readonly inputKind: "image";
|
|
1181
3007
|
readonly name: "SAM 3D Align";
|
|
1182
|
-
readonly outputKeys: ["scene_glb", "
|
|
1183
|
-
readonly
|
|
3008
|
+
readonly outputKeys: ["scene_glb", "model_glb", "visualization", "body_mesh_ply", "metadata"];
|
|
3009
|
+
readonly price: {
|
|
3010
|
+
readonly kind: "metered";
|
|
3011
|
+
};
|
|
3012
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, so no estimate is reported";
|
|
3013
|
+
readonly queued: true;
|
|
1184
3014
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-align";
|
|
1185
3015
|
readonly task: "3D scene alignment";
|
|
1186
3016
|
};
|
|
@@ -1197,7 +3027,11 @@ declare const FAL_TOOLS: {
|
|
|
1197
3027
|
readonly inputKind: "image";
|
|
1198
3028
|
readonly name: "SAM 3D Body";
|
|
1199
3029
|
readonly outputKeys: ["model_glb", "visualization", "meshes", "metadata"];
|
|
1200
|
-
readonly
|
|
3030
|
+
readonly price: {
|
|
3031
|
+
readonly kind: "metered";
|
|
3032
|
+
};
|
|
3033
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, so no estimate is reported";
|
|
3034
|
+
readonly queued: true;
|
|
1201
3035
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-body";
|
|
1202
3036
|
readonly task: "single-image 3D body reconstruction";
|
|
1203
3037
|
};
|
|
@@ -1212,116 +3046,160 @@ declare const FAL_TOOLS: {
|
|
|
1212
3046
|
readonly inputKind: "image";
|
|
1213
3047
|
readonly name: "SAM 3D Objects";
|
|
1214
3048
|
readonly outputKeys: ["gaussian_splat", "model_glb", "metadata", "individual_splats", "individual_glbs", "artifacts_zip"];
|
|
1215
|
-
readonly
|
|
3049
|
+
readonly price: {
|
|
3050
|
+
readonly kind: "metered";
|
|
3051
|
+
};
|
|
3052
|
+
readonly pricing: "$0.02 per unit; fal does not define a unit, and this endpoint returns one mesh per detected object, so no estimate is reported";
|
|
3053
|
+
readonly queued: true;
|
|
1216
3054
|
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/3d-objects";
|
|
1217
3055
|
readonly task: "single-image 3D object reconstruction";
|
|
1218
3056
|
};
|
|
1219
|
-
readonly "
|
|
1220
|
-
readonly category: "
|
|
1221
|
-
readonly
|
|
1222
|
-
|
|
1223
|
-
readonly max_masks: 3;
|
|
1224
|
-
readonly output_format: "png";
|
|
1225
|
-
};
|
|
1226
|
-
readonly description: "Segment image objects with text, point, or box prompts.";
|
|
1227
|
-
readonly endpoint: "fal-ai/sam-3/image";
|
|
3057
|
+
readonly "seedream-layerize": {
|
|
3058
|
+
readonly category: "layers";
|
|
3059
|
+
readonly description: "Split an image into editable Seedream layers plus flattened previews.";
|
|
3060
|
+
readonly endpoint: "bytedance/seedream/v5/pro/layerize";
|
|
1228
3061
|
readonly inputField: "image_url";
|
|
1229
3062
|
readonly inputKind: "image";
|
|
1230
|
-
readonly name: "
|
|
1231
|
-
readonly outputKeys: ["
|
|
1232
|
-
readonly
|
|
1233
|
-
|
|
1234
|
-
|
|
3063
|
+
readonly name: "Seedream v5 Pro Layerize";
|
|
3064
|
+
readonly outputKeys: ["layers", "images"];
|
|
3065
|
+
readonly price: {
|
|
3066
|
+
readonly kind: "metered";
|
|
3067
|
+
};
|
|
3068
|
+
readonly pricing: "$0.03375 per generated layer below 1536x1536 total area, $0.0675 per layer above; the listed rate is per layer, not per call";
|
|
3069
|
+
readonly queued: true;
|
|
3070
|
+
readonly sourceUrl: "https://fal.ai/models/bytedance/seedream/v5/pro/layerize";
|
|
3071
|
+
readonly task: "image layer decomposition";
|
|
1235
3072
|
};
|
|
1236
|
-
readonly "
|
|
1237
|
-
readonly category: "
|
|
1238
|
-
readonly
|
|
1239
|
-
|
|
1240
|
-
|
|
3073
|
+
readonly "seedvr-seamless": {
|
|
3074
|
+
readonly category: "material";
|
|
3075
|
+
readonly description: "Upscale a tiling texture while keeping its edges seamless. ";
|
|
3076
|
+
readonly endpoint: "fal-ai/seedvr/upscale/image/seamless";
|
|
3077
|
+
readonly inputField: "image_url";
|
|
3078
|
+
readonly inputKind: "image";
|
|
3079
|
+
readonly name: "SeedVR Seamless Upscale";
|
|
3080
|
+
readonly outputKeys: ["image"];
|
|
3081
|
+
readonly price: {
|
|
3082
|
+
readonly kind: "megapixel";
|
|
3083
|
+
readonly usd: 0.0025;
|
|
1241
3084
|
};
|
|
1242
|
-
readonly
|
|
1243
|
-
readonly
|
|
3085
|
+
readonly pricing: "$0.0025/megapixel";
|
|
3086
|
+
readonly queued: true;
|
|
3087
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/seedvr/upscale/image/seamless";
|
|
3088
|
+
readonly task: "seamless texture upscaling";
|
|
3089
|
+
};
|
|
3090
|
+
readonly "trellis-2": {
|
|
3091
|
+
readonly category: "3d";
|
|
3092
|
+
readonly description: "Reconstruct a textured 3D mesh from a single image, with UV unwrapping.";
|
|
3093
|
+
readonly endpoint: "fal-ai/trellis-2";
|
|
1244
3094
|
readonly inputField: "image_url";
|
|
1245
3095
|
readonly inputKind: "image";
|
|
1246
|
-
readonly name: "
|
|
1247
|
-
readonly outputKeys: ["
|
|
1248
|
-
readonly
|
|
1249
|
-
|
|
1250
|
-
|
|
3096
|
+
readonly name: "TRELLIS 2";
|
|
3097
|
+
readonly outputKeys: ["model_glb"];
|
|
3098
|
+
readonly price: {
|
|
3099
|
+
readonly kind: "call";
|
|
3100
|
+
readonly usd: 0.3;
|
|
3101
|
+
};
|
|
3102
|
+
readonly pricing: "$0.30 at the default 1024p; $0.25 at 512p, $0.35 at 1536p";
|
|
3103
|
+
readonly queued: true;
|
|
3104
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/trellis-2";
|
|
3105
|
+
readonly task: "single-image 3D reconstruction";
|
|
1251
3106
|
};
|
|
1252
|
-
readonly "
|
|
1253
|
-
readonly category: "
|
|
1254
|
-
readonly
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
3107
|
+
readonly "got-ocr": {
|
|
3108
|
+
readonly category: "analysis";
|
|
3109
|
+
readonly description: "Transcribe text from one or more images, optionally as formatted multi-page output.";
|
|
3110
|
+
readonly endpoint: "fal-ai/got-ocr/v2";
|
|
3111
|
+
readonly inputField: "input_image_urls";
|
|
3112
|
+
readonly inputKind: "images";
|
|
3113
|
+
readonly name: "GOT-OCR 2.0";
|
|
3114
|
+
readonly outputKeys: ["outputs"];
|
|
3115
|
+
readonly price: {
|
|
3116
|
+
readonly kind: "metered";
|
|
1259
3117
|
};
|
|
1260
|
-
readonly
|
|
1261
|
-
readonly
|
|
1262
|
-
readonly
|
|
1263
|
-
readonly
|
|
1264
|
-
readonly name: "SAM 3 Video";
|
|
1265
|
-
readonly outputKeys: ["video", "boundingbox_frames_zip"];
|
|
1266
|
-
readonly pricing: "$0.005/16 frames";
|
|
1267
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video";
|
|
1268
|
-
readonly task: "promptable video segmentation";
|
|
3118
|
+
readonly pricing: "$0.05/image";
|
|
3119
|
+
readonly queued: true;
|
|
3120
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/got-ocr/v2";
|
|
3121
|
+
readonly task: "optical character recognition";
|
|
1269
3122
|
};
|
|
1270
|
-
readonly "
|
|
1271
|
-
readonly category: "
|
|
1272
|
-
readonly
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
3123
|
+
readonly "moondream-caption": {
|
|
3124
|
+
readonly category: "analysis";
|
|
3125
|
+
readonly description: "Write a short, normal, or long caption for an image.";
|
|
3126
|
+
readonly endpoint: "fal-ai/moondream3-preview/caption";
|
|
3127
|
+
readonly inputField: "image_url";
|
|
3128
|
+
readonly inputKind: "image";
|
|
3129
|
+
readonly name: "Moondream 3 Caption";
|
|
3130
|
+
readonly outputKeys: ["output"];
|
|
3131
|
+
readonly price: {
|
|
3132
|
+
readonly kind: "metered";
|
|
1276
3133
|
};
|
|
1277
|
-
readonly
|
|
1278
|
-
readonly
|
|
1279
|
-
readonly
|
|
1280
|
-
readonly inputKind: "video";
|
|
1281
|
-
readonly name: "SAM 3 Video RLE";
|
|
1282
|
-
readonly outputKeys: ["rle_masks", "metadata"];
|
|
1283
|
-
readonly pricing: "$0.005/16 frames";
|
|
1284
|
-
readonly sourceUrl: "https://fal.ai/models/fal-ai/sam-3/video-rle";
|
|
1285
|
-
readonly task: "promptable video segmentation to RLE";
|
|
3134
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
3135
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/caption";
|
|
3136
|
+
readonly task: "image captioning";
|
|
1286
3137
|
};
|
|
1287
|
-
readonly "
|
|
1288
|
-
readonly category: "
|
|
1289
|
-
readonly
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
3138
|
+
readonly "moondream-detect": {
|
|
3139
|
+
readonly category: "analysis";
|
|
3140
|
+
readonly description: "Detect prompted objects and return their bounding boxes, with an optional preview.";
|
|
3141
|
+
readonly endpoint: "fal-ai/moondream3-preview/detect";
|
|
3142
|
+
readonly inputField: "image_url";
|
|
3143
|
+
readonly inputKind: "image";
|
|
3144
|
+
readonly name: "Moondream 3 Detect";
|
|
3145
|
+
readonly outputKeys: ["objects", "image"];
|
|
3146
|
+
readonly price: {
|
|
3147
|
+
readonly kind: "metered";
|
|
1293
3148
|
};
|
|
1294
|
-
readonly
|
|
1295
|
-
readonly
|
|
3149
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
3150
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/detect";
|
|
3151
|
+
readonly task: "object detection";
|
|
3152
|
+
};
|
|
3153
|
+
readonly "moondream-point": {
|
|
3154
|
+
readonly category: "analysis";
|
|
3155
|
+
readonly description: "Return point coordinates for every instance of a prompted subject.";
|
|
3156
|
+
readonly endpoint: "fal-ai/moondream3-preview/point";
|
|
1296
3157
|
readonly inputField: "image_url";
|
|
1297
3158
|
readonly inputKind: "image";
|
|
1298
|
-
readonly name: "
|
|
1299
|
-
readonly outputKeys: ["image"];
|
|
1300
|
-
readonly
|
|
1301
|
-
|
|
1302
|
-
|
|
3159
|
+
readonly name: "Moondream 3 Point";
|
|
3160
|
+
readonly outputKeys: ["points", "image"];
|
|
3161
|
+
readonly price: {
|
|
3162
|
+
readonly kind: "metered";
|
|
3163
|
+
};
|
|
3164
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
3165
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/point";
|
|
3166
|
+
readonly task: "object pointing";
|
|
1303
3167
|
};
|
|
1304
|
-
readonly "
|
|
1305
|
-
readonly category: "
|
|
1306
|
-
readonly
|
|
1307
|
-
|
|
1308
|
-
|
|
3168
|
+
readonly "moondream-query": {
|
|
3169
|
+
readonly category: "analysis";
|
|
3170
|
+
readonly description: "Answer a free-form question about an image, with reasoning.";
|
|
3171
|
+
readonly endpoint: "fal-ai/moondream3-preview/query";
|
|
3172
|
+
readonly inputField: "image_url";
|
|
3173
|
+
readonly inputKind: "image";
|
|
3174
|
+
readonly name: "Moondream 3 Query";
|
|
3175
|
+
readonly outputKeys: ["output", "reasoning"];
|
|
3176
|
+
readonly price: {
|
|
3177
|
+
readonly kind: "metered";
|
|
1309
3178
|
};
|
|
1310
|
-
readonly
|
|
1311
|
-
readonly
|
|
1312
|
-
readonly
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
readonly
|
|
1316
|
-
readonly
|
|
1317
|
-
readonly
|
|
1318
|
-
readonly
|
|
3179
|
+
readonly pricing: "$0.40/M input tokens, $3.50/M output tokens";
|
|
3180
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/moondream3-preview/query";
|
|
3181
|
+
readonly task: "visual question answering";
|
|
3182
|
+
};
|
|
3183
|
+
readonly nsfw: {
|
|
3184
|
+
readonly category: "moderation";
|
|
3185
|
+
readonly description: "Predict whether one or more images contain NSFW concepts.";
|
|
3186
|
+
readonly endpoint: "fal-ai/x-ailab/nsfw";
|
|
3187
|
+
readonly inputField: "image_urls";
|
|
3188
|
+
readonly inputKind: "images";
|
|
3189
|
+
readonly name: "NSFW Checker";
|
|
3190
|
+
readonly outputKeys: ["has_nsfw_concepts"];
|
|
3191
|
+
readonly price: {
|
|
3192
|
+
readonly kind: "metered";
|
|
3193
|
+
};
|
|
3194
|
+
readonly pricing: "$0.001/image";
|
|
3195
|
+
readonly sourceUrl: "https://fal.ai/models/fal-ai/x-ailab/nsfw";
|
|
3196
|
+
readonly task: "vision moderation";
|
|
1319
3197
|
};
|
|
1320
3198
|
};
|
|
1321
|
-
declare const FAL_TOOLS_CHECKED_AT = "2026-
|
|
3199
|
+
declare const FAL_TOOLS_CHECKED_AT = "2026-08-23";
|
|
1322
3200
|
declare const FAL_TOOL_IDS: (keyof typeof FAL_TOOLS)[];
|
|
1323
3201
|
type FalToolId = (typeof FAL_TOOL_IDS)[number];
|
|
1324
3202
|
declare function isFalToolId(tool: string): tool is FalToolId;
|
|
1325
3203
|
declare function buildFalToolRequest(options: FalToolRunOptions): FalToolRequest;
|
|
1326
3204
|
|
|
1327
|
-
export { ASPECT_RATIOS, type AspectRatio, type BackgroundMode, CREATIVE_FIELDS, CREATIVE_TAXONOMY, type CreativeDirection, type CreativeField, type CreativeOption, CreativeOptionError, type CreativeOptionErrorDetails, type CreativePromptResult, type CustomImageSize, EDIT_CAPABLE_MODELS, type EnrichPromptOptions, FAL_TOOLS, FAL_TOOLS_CHECKED_AT, FAL_TOOL_IDS, FORMAT_PRESETS, FalClient, type FalClientConfig, type FalImageSizePreset, type FalToolConfig, type FalToolId, type FalToolInputKind, type FalToolRequest, type FalToolRunOptions, GENERATION_MODELS, type GenerateOptions, type GenerationModelName, type GptImageSize, IDEOGRAM_STYLES, IMAGE_EDITING_TOP_20, IMAGE_TEXT_TO_IMAGE_TOP_20, type ImageOutputFormat, type ImageQuality, type ImageSize, type JobStatus, type LeaderboardEntry, type LeaderboardSnapshot, MODELS, type ModelConfig, type ModelType, type MotifEnv, MotifError, type MotifImage, type MotifResponse, type QueuedJob, RECRAFT_STYLES, RESOLUTIONS, type RemoveBackgroundOptions, type Resolution, type SizeMode, type ThinkingLevel, type ToolResponse, type ToolRunOptions, UTILITY_MODELS, type UpscaleOptions, VIDEO_IMAGE_TO_VIDEO_TOP_15, VIDEO_MODELS, VIDEO_TEXT_TO_VIDEO_TOP_15, type VideoOptions, type VideoResponse, aspectToFalImageSize, aspectToGptSize, buildFalToolRequest, buildGenerateBody, enrichPrompt, estimateCost, estimateVideoCost, getFalKeyFromEnv, isFalToolId, motifEnvSchema, parseMotifEnv, sanitizePrompt };
|
|
3205
|
+
export { ASPECT_RATIOS, type AspectRatio, type BackgroundMode, CREATIVE_FIELDS, CREATIVE_TAXONOMY, type CreativeDirection, type CreativeField, type CreativeOption, CreativeOptionError, type CreativeOptionErrorDetails, type CreativePromptResult, type CustomImageSize, EDIT_CAPABLE_MODELS, type EnrichPromptOptions, FAL_TOOLS, FAL_TOOLS_CHECKED_AT, FAL_TOOL_IDS, FORMAT_PRESETS, FalClient, type FalClientConfig, type FalImageSizePreset, type FalToolConfig, type FalToolId, type FalToolInputKind, type FalToolPrice, type FalToolRequest, type FalToolRunOptions, GENERATION_MODELS, type GenerateOptions, type GenerationModelName, type GptImageSize, IDEOGRAM_STYLES, IMAGE_EDITING_TOP_20, IMAGE_TEXT_TO_IMAGE_TOP_20, type ImageOutputFormat, type ImageQuality, type ImageSize, type JobStatus, type LeaderboardEntry, type LeaderboardSnapshot, MODELS, type ModelConfig, type ModelType, type MotifEnv, MotifError, type MotifImage, type MotifResponse, type QueuedJob, type QueuedToolJob, RECRAFT_STYLES, RESOLUTIONS, type RemoveBackgroundOptions, type Resolution, type SizeMode, type ThinkingLevel, type ToolResponse, type ToolRunOptions, UTILITY_MODELS, type UpscaleOptions, VIDEO_IMAGE_TO_VIDEO_TOP_15, VIDEO_MODELS, VIDEO_TEXT_TO_VIDEO_TOP_15, type VideoOptions, type VideoResponse, aspectToFalImageSize, aspectToGptSize, buildFalToolRequest, buildGenerateBody, enrichPrompt, estimateCost, estimateVideoCost, getFalKeyFromEnv, isFalToolId, motifEnvSchema, parseMotifEnv, sanitizePrompt };
|