@@ -838,7 +838,7 @@ describe.concurrent("HfInference", () => {
838
838
( ) => {
839
839
const client = new HfInference ( env . HF_REPLICATE_KEY ) ;
840
840
841
- it ( "textToImage canonical" , async ( ) => {
841
+ it ( "textToImage canonical - black-forest-labs/FLUX.1-schnell " , async ( ) => {
842
842
const res = await client . textToImage ( {
843
843
model : "black-forest-labs/FLUX.1-schnell" ,
844
844
provider : "replicate" ,
@@ -847,11 +847,57 @@ describe.concurrent("HfInference", () => {
847
847
expect ( res ) . toBeInstanceOf ( Blob ) ;
848
848
} ) ;
849
849
850
- it ( "textToImage versioned" , async ( ) => {
850
+ it ( "textToImage canonical - black-forest-labs/FLUX.1-dev" , async ( ) => {
851
+ const res = await client . textToImage ( {
852
+ model : "black-forest-labs/FLUX.1-dev" ,
853
+ provider : "replicate" ,
854
+ inputs :
855
+ "A tiny laboratory deep in the Black Forest where squirrels in lab coats experiment with mixing chocolate and pine cones" ,
856
+ } ) ;
857
+ expect ( res ) . toBeInstanceOf ( Blob ) ;
858
+ } ) ;
859
+
860
+ it ( "textToImage canonical - stabilityai/stable-diffusion-3.5-large-turbo" , async ( ) => {
861
+ const res = await client . textToImage ( {
862
+ model : "stabilityai/stable-diffusion-3.5-large-turbo" ,
863
+ provider : "replicate" ,
864
+ inputs : "A confused rubber duck wearing a tiny wizard hat trying to cast spells with a banana wand" ,
865
+ } ) ;
866
+ expect ( res ) . toBeInstanceOf ( Blob ) ;
867
+ } ) ;
868
+
869
+ it ( "textToImage versioned - ByteDance/SDXL-Lightning" , async ( ) => {
851
870
const res = await client . textToImage ( {
852
871
model : "ByteDance/SDXL-Lightning" ,
853
872
provider : "replicate" ,
854
- inputs : "black forest gateau cake spelling out the words FLUX SCHNELL, tasty, food photography, dynamic shot" ,
873
+ inputs : "A grumpy storm cloud wearing sunglasses and throwing tiny lightning bolts like confetti" ,
874
+ } ) ;
875
+ expect ( res ) . toBeInstanceOf ( Blob ) ;
876
+ } ) ;
877
+
878
+ it ( "textToImage versioned - ByteDance/Hyper-SD" , async ( ) => {
879
+ const res = await client . textToImage ( {
880
+ model : "ByteDance/Hyper-SD" ,
881
+ provider : "replicate" ,
882
+ inputs : "A group of dancing bytes wearing tiny party hats doing the macarena in cyberspace" ,
883
+ } ) ;
884
+ expect ( res ) . toBeInstanceOf ( Blob ) ;
885
+ } ) ;
886
+
887
+ it ( "textToImage versioned - playgroundai/playground-v2.5-1024px-aesthetic" , async ( ) => {
888
+ const res = await client . textToImage ( {
889
+ model : "playgroundai/playground-v2.5-1024px-aesthetic" ,
890
+ provider : "replicate" ,
891
+ inputs : "A playground where slides turn into rainbows and swings launch kids into cotton candy clouds" ,
892
+ } ) ;
893
+ expect ( res ) . toBeInstanceOf ( Blob ) ;
894
+ } ) ;
895
+
896
+ it ( "textToImage versioned - stabilityai/stable-diffusion-xl-base-1.0" , async ( ) => {
897
+ const res = await client . textToImage ( {
898
+ model : "stabilityai/stable-diffusion-xl-base-1.0" ,
899
+ provider : "replicate" ,
900
+ inputs : "An octopus juggling watermelons underwater while wearing scuba gear" ,
855
901
} ) ;
856
902
expect ( res ) . toBeInstanceOf ( Blob ) ;
857
903
} ) ;
0 commit comments