@aeye/models 0.4.0 → 0.8.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.
Files changed (384) hide show
  1. package/ReplicateScrape.md +290 -290
  2. package/aeye-models.md +278 -272
  3. package/dist/scripts/codegen.js +48 -48
  4. package/dist/scripts/scrapers/openrouter.js +2 -2
  5. package/dist/scripts/scrapers/replicate.d.ts.map +1 -1
  6. package/dist/scripts/scrapers/replicate.js +150 -141
  7. package/dist/scripts/scrapers/replicate.js.map +1 -1
  8. package/dist/src/models/replicate.js +4 -4
  9. package/dist/src/models/replicate.js.map +1 -1
  10. package/dist/src/transformers/replicate/adirik-e5-mistral-7b-instruct.d.ts.map +1 -1
  11. package/dist/src/transformers/replicate/adirik-e5-mistral-7b-instruct.js +2 -1
  12. package/dist/src/transformers/replicate/adirik-e5-mistral-7b-instruct.js.map +1 -1
  13. package/dist/src/transformers/replicate/andreasjansson-clip-features.d.ts.map +1 -1
  14. package/dist/src/transformers/replicate/andreasjansson-clip-features.js +19 -4
  15. package/dist/src/transformers/replicate/andreasjansson-clip-features.js.map +1 -1
  16. package/dist/src/transformers/replicate/andreasjansson-llama-2-13b-embeddings.d.ts.map +1 -1
  17. package/dist/src/transformers/replicate/andreasjansson-llama-2-13b-embeddings.js +2 -1
  18. package/dist/src/transformers/replicate/andreasjansson-llama-2-13b-embeddings.js.map +1 -1
  19. package/dist/src/transformers/replicate/beautyyuyanli-multilingual-e5-large.d.ts.map +1 -1
  20. package/dist/src/transformers/replicate/beautyyuyanli-multilingual-e5-large.js +2 -1
  21. package/dist/src/transformers/replicate/beautyyuyanli-multilingual-e5-large.js.map +1 -1
  22. package/dist/src/transformers/replicate/center-for-curriculum-redesign-bge_1-5_query_embeddings.d.ts.map +1 -1
  23. package/dist/src/transformers/replicate/center-for-curriculum-redesign-bge_1-5_query_embeddings.js +2 -1
  24. package/dist/src/transformers/replicate/center-for-curriculum-redesign-bge_1-5_query_embeddings.js.map +1 -1
  25. package/dist/src/transformers/replicate/cuuupid-gte-qwen2-7b-instruct.d.ts.map +1 -1
  26. package/dist/src/transformers/replicate/cuuupid-gte-qwen2-7b-instruct.js +2 -1
  27. package/dist/src/transformers/replicate/cuuupid-gte-qwen2-7b-instruct.js.map +1 -1
  28. package/dist/src/transformers/replicate/daanelson-imagebind.d.ts.map +1 -1
  29. package/dist/src/transformers/replicate/daanelson-imagebind.js +7 -14
  30. package/dist/src/transformers/replicate/daanelson-imagebind.js.map +1 -1
  31. package/dist/src/transformers/replicate/ibm-granite-granite-embedding-278m-multilingual.d.ts.map +1 -1
  32. package/dist/src/transformers/replicate/ibm-granite-granite-embedding-278m-multilingual.js +2 -1
  33. package/dist/src/transformers/replicate/ibm-granite-granite-embedding-278m-multilingual.js.map +1 -1
  34. package/dist/src/transformers/replicate/krthr-clip-embeddings.d.ts.map +1 -1
  35. package/dist/src/transformers/replicate/krthr-clip-embeddings.js +5 -11
  36. package/dist/src/transformers/replicate/krthr-clip-embeddings.js.map +1 -1
  37. package/dist/src/transformers/replicate/lucataco-nomic-embed-text-v1.d.ts.map +1 -1
  38. package/dist/src/transformers/replicate/lucataco-nomic-embed-text-v1.js +2 -1
  39. package/dist/src/transformers/replicate/lucataco-nomic-embed-text-v1.js.map +1 -1
  40. package/dist/src/transformers/replicate/lucataco-snowflake-arctic-embed-l.d.ts.map +1 -1
  41. package/dist/src/transformers/replicate/lucataco-snowflake-arctic-embed-l.js +2 -1
  42. package/dist/src/transformers/replicate/lucataco-snowflake-arctic-embed-l.js.map +1 -1
  43. package/dist/src/transformers/replicate/mark3labs-embeddings-gte-base.d.ts.map +1 -1
  44. package/dist/src/transformers/replicate/mark3labs-embeddings-gte-base.js +2 -1
  45. package/dist/src/transformers/replicate/mark3labs-embeddings-gte-base.js.map +1 -1
  46. package/dist/src/transformers/replicate/nateraw-bge-large-en-v1-5.d.ts.map +1 -1
  47. package/dist/src/transformers/replicate/nateraw-bge-large-en-v1-5.js +2 -1
  48. package/dist/src/transformers/replicate/nateraw-bge-large-en-v1-5.js.map +1 -1
  49. package/dist/src/transformers/replicate/nateraw-jina-embeddings-v2-base-en.d.ts.map +1 -1
  50. package/dist/src/transformers/replicate/nateraw-jina-embeddings-v2-base-en.js +2 -1
  51. package/dist/src/transformers/replicate/nateraw-jina-embeddings-v2-base-en.js.map +1 -1
  52. package/dist/src/transformers/replicate/replicate-all-mpnet-base-v2.d.ts.map +1 -1
  53. package/dist/src/transformers/replicate/replicate-all-mpnet-base-v2.js +5 -3
  54. package/dist/src/transformers/replicate/replicate-all-mpnet-base-v2.js.map +1 -1
  55. package/dist/src/transformers/replicate/zsxkib-jina-clip-v2.d.ts.map +1 -1
  56. package/dist/src/transformers/replicate/zsxkib-jina-clip-v2.js +7 -11
  57. package/dist/src/transformers/replicate/zsxkib-jina-clip-v2.js.map +1 -1
  58. package/package.json +78 -78
  59. package/scripts/codegen.ts +133 -133
  60. package/scripts/patch-modelinfo.ts +139 -139
  61. package/scripts/scrape.ts +190 -190
  62. package/scripts/scrapers/__tests__/aws.test.ts +86 -86
  63. package/scripts/scrapers/aws.ts +276 -276
  64. package/scripts/scrapers/docs.ts +101 -101
  65. package/scripts/scrapers/extract.md +276 -270
  66. package/scripts/scrapers/openai.ts +252 -252
  67. package/scripts/scrapers/openrouter.ts +131 -131
  68. package/scripts/scrapers/replicate.ts +1153 -1144
  69. package/scripts/tsconfig.json +25 -25
  70. package/src/index.ts +12 -12
  71. package/src/models/aws.ts +2569 -2569
  72. package/src/models/openai.ts +2764 -2764
  73. package/src/models/openrouter.ts +19708 -19708
  74. package/src/models/replicate.ts +9101 -9101
  75. package/src/strict-support.ts +134 -134
  76. package/src/transformers/index.ts +25 -25
  77. package/src/transformers/replicate/abiruyt-text-extract-ocr.ts +31 -31
  78. package/src/transformers/replicate/adidoes-whisperx-video-transcribe.ts +36 -36
  79. package/src/transformers/replicate/adirik-e5-mistral-7b-instruct.ts +40 -39
  80. package/src/transformers/replicate/adirik-kosmos-g.ts +47 -47
  81. package/src/transformers/replicate/adirik-owlvit-base-patch32.ts +34 -34
  82. package/src/transformers/replicate/adirik-realvisxl-v3-0-turbo.ts +84 -84
  83. package/src/transformers/replicate/adirik-styletts2.ts +41 -41
  84. package/src/transformers/replicate/adirik-udop-large.ts +22 -22
  85. package/src/transformers/replicate/afiaka87-tortoise-tts.ts +30 -30
  86. package/src/transformers/replicate/ai-forever-kandinsky-2-2.ts +53 -53
  87. package/src/transformers/replicate/ai-forever-kandinsky-2.ts +61 -61
  88. package/src/transformers/replicate/alexgenovese-upscaler.ts +28 -28
  89. package/src/transformers/replicate/andreasjansson-blip-2.ts +37 -37
  90. package/src/transformers/replicate/andreasjansson-clip-features.ts +47 -32
  91. package/src/transformers/replicate/andreasjansson-llama-2-13b-embeddings.ts +33 -32
  92. package/src/transformers/replicate/andreasjansson-musicgen-looper.ts +68 -68
  93. package/src/transformers/replicate/anthropic-claude-3-5-sonnet.ts +70 -70
  94. package/src/transformers/replicate/anthropic-claude-3-7-sonnet.ts +63 -63
  95. package/src/transformers/replicate/anthropic-claude-4-sonnet.ts +77 -77
  96. package/src/transformers/replicate/arielreplicate-deoldify_image.ts +29 -29
  97. package/src/transformers/replicate/awerks-neon-tts.ts +27 -27
  98. package/src/transformers/replicate/awilliamson10-meta-nougat.ts +25 -25
  99. package/src/transformers/replicate/beautyyuyanli-multilingual-e5-large.ts +31 -30
  100. package/src/transformers/replicate/black-forest-labs-flux-1-1-pro-ultra.ts +46 -46
  101. package/src/transformers/replicate/black-forest-labs-flux-1-1-pro.ts +61 -61
  102. package/src/transformers/replicate/black-forest-labs-flux-2-dev.ts +73 -73
  103. package/src/transformers/replicate/black-forest-labs-flux-2-flex.ts +50 -50
  104. package/src/transformers/replicate/black-forest-labs-flux-2-pro.ts +66 -66
  105. package/src/transformers/replicate/black-forest-labs-flux-canny-dev.ts +50 -50
  106. package/src/transformers/replicate/black-forest-labs-flux-canny-pro.ts +46 -46
  107. package/src/transformers/replicate/black-forest-labs-flux-depth-dev.ts +39 -39
  108. package/src/transformers/replicate/black-forest-labs-flux-depth-pro.ts +34 -34
  109. package/src/transformers/replicate/black-forest-labs-flux-dev-lora.ts +63 -63
  110. package/src/transformers/replicate/black-forest-labs-flux-dev.ts +54 -54
  111. package/src/transformers/replicate/black-forest-labs-flux-fill-dev.ts +43 -43
  112. package/src/transformers/replicate/black-forest-labs-flux-fill-pro.ts +41 -41
  113. package/src/transformers/replicate/black-forest-labs-flux-kontext-dev.ts +36 -36
  114. package/src/transformers/replicate/black-forest-labs-flux-kontext-max.ts +45 -45
  115. package/src/transformers/replicate/black-forest-labs-flux-kontext-pro.ts +45 -45
  116. package/src/transformers/replicate/black-forest-labs-flux-pro-finetuned.ts +69 -69
  117. package/src/transformers/replicate/black-forest-labs-flux-pro-trainer.ts +39 -39
  118. package/src/transformers/replicate/black-forest-labs-flux-pro.ts +77 -77
  119. package/src/transformers/replicate/black-forest-labs-flux-redux-dev.ts +46 -46
  120. package/src/transformers/replicate/black-forest-labs-flux-redux-schnell.ts +39 -39
  121. package/src/transformers/replicate/black-forest-labs-flux-schnell.ts +40 -40
  122. package/src/transformers/replicate/bria-eraser.ts +35 -35
  123. package/src/transformers/replicate/bria-expand-image.ts +40 -40
  124. package/src/transformers/replicate/bria-fibo.ts +45 -45
  125. package/src/transformers/replicate/bria-generate-background.ts +41 -41
  126. package/src/transformers/replicate/bria-genfill.ts +48 -48
  127. package/src/transformers/replicate/bria-image-3-2.ts +33 -33
  128. package/src/transformers/replicate/bria-increase-resolution.ts +32 -32
  129. package/src/transformers/replicate/bytedance-bagel.ts +74 -74
  130. package/src/transformers/replicate/bytedance-dolphin.ts +36 -36
  131. package/src/transformers/replicate/bytedance-flux-pulid.ts +82 -82
  132. package/src/transformers/replicate/bytedance-pulid.ts +78 -78
  133. package/src/transformers/replicate/bytedance-sdxl-lightning-4step.ts +55 -55
  134. package/src/transformers/replicate/bytedance-seededit-3-0.ts +31 -31
  135. package/src/transformers/replicate/bytedance-seedream-3.ts +52 -52
  136. package/src/transformers/replicate/bytedance-seedream-4.ts +59 -59
  137. package/src/transformers/replicate/camenduru-metavoice.ts +28 -28
  138. package/src/transformers/replicate/center-for-curriculum-redesign-bge_1-5_query_embeddings.ts +36 -35
  139. package/src/transformers/replicate/chenxwh-openvoice.ts +40 -40
  140. package/src/transformers/replicate/chigozienri-mediapipe-face.ts +31 -31
  141. package/src/transformers/replicate/cjwbw-bigcolor.ts +42 -42
  142. package/src/transformers/replicate/cjwbw-canary-1b.ts +22 -22
  143. package/src/transformers/replicate/cjwbw-cogvlm.ts +35 -35
  144. package/src/transformers/replicate/cjwbw-docentr.ts +37 -37
  145. package/src/transformers/replicate/cjwbw-face-align-cog.ts +35 -35
  146. package/src/transformers/replicate/cjwbw-internlm-xcomposer.ts +29 -29
  147. package/src/transformers/replicate/cjwbw-night-enhancement.ts +35 -35
  148. package/src/transformers/replicate/cjwbw-parler-tts.ts +28 -28
  149. package/src/transformers/replicate/cjwbw-real-esrgan.ts +28 -28
  150. package/src/transformers/replicate/cjwbw-rudalle-sr.ts +37 -37
  151. package/src/transformers/replicate/cjwbw-seamless_communication.ts +83 -83
  152. package/src/transformers/replicate/cjwbw-supir-v0f.ts +45 -45
  153. package/src/transformers/replicate/cjwbw-supir-v0q.ts +44 -44
  154. package/src/transformers/replicate/cjwbw-supir.ts +47 -47
  155. package/src/transformers/replicate/cjwbw-voicecraft.ts +62 -62
  156. package/src/transformers/replicate/cjwbw-vqfr.ts +39 -39
  157. package/src/transformers/replicate/codeplugtech-object_remover.ts +31 -31
  158. package/src/transformers/replicate/codeslake-ifan-defocus-deblur.ts +35 -35
  159. package/src/transformers/replicate/comfyui-any-comfyui-workflow.ts +41 -41
  160. package/src/transformers/replicate/cswry-seesr.ts +39 -39
  161. package/src/transformers/replicate/cudanexus-ocr-surya.ts +44 -44
  162. package/src/transformers/replicate/curt-park-sentiment-analysis.ts +39 -39
  163. package/src/transformers/replicate/cuuupid-glm-4v-9b.ts +61 -61
  164. package/src/transformers/replicate/cuuupid-gte-qwen2-7b-instruct.ts +33 -32
  165. package/src/transformers/replicate/cuuupid-marker.ts +37 -37
  166. package/src/transformers/replicate/daanelson-imagebind.ts +39 -46
  167. package/src/transformers/replicate/daanelson-minigpt-4.ts +37 -37
  168. package/src/transformers/replicate/daanelson-whisperx.ts +39 -39
  169. package/src/transformers/replicate/datacte-proteus-v0-2.ts +85 -85
  170. package/src/transformers/replicate/datacte-proteus-v0-3.ts +77 -77
  171. package/src/transformers/replicate/datalab-to-marker.ts +63 -63
  172. package/src/transformers/replicate/datalab-to-ocr.ts +51 -51
  173. package/src/transformers/replicate/easel-advanced-face-swap.ts +35 -35
  174. package/src/transformers/replicate/easel-ai-avatars.ts +50 -50
  175. package/src/transformers/replicate/fermatresearch-high-resolution-controlnet-tile.ts +45 -45
  176. package/src/transformers/replicate/fermatresearch-magic-image-refiner.ts +53 -53
  177. package/src/transformers/replicate/fermatresearch-magic-style-transfer.ts +58 -58
  178. package/src/transformers/replicate/fermatresearch-sdxl-controlnet-lora.ts +58 -58
  179. package/src/transformers/replicate/fermatresearch-spanish-f5-tts.ts +36 -36
  180. package/src/transformers/replicate/fewjative-ultimate-sd-upscale.ts +55 -55
  181. package/src/transformers/replicate/flux-kontext-apps-change-haircut.ts +39 -39
  182. package/src/transformers/replicate/flux-kontext-apps-multi-image-kontext-max.ts +65 -65
  183. package/src/transformers/replicate/flux-kontext-apps-multi-image-kontext-pro.ts +65 -65
  184. package/src/transformers/replicate/flux-kontext-apps-multi-image-list.ts +54 -54
  185. package/src/transformers/replicate/flux-kontext-apps-professional-headshot.ts +37 -37
  186. package/src/transformers/replicate/flux-kontext-apps-restore-image.ts +31 -31
  187. package/src/transformers/replicate/fofr-become-image.ts +39 -39
  188. package/src/transformers/replicate/fofr-color-matcher.ts +36 -36
  189. package/src/transformers/replicate/fofr-deprecated-batch-image-captioning.ts +54 -54
  190. package/src/transformers/replicate/fofr-face-swap-with-ideogram.ts +28 -28
  191. package/src/transformers/replicate/fofr-face-to-many.ts +47 -47
  192. package/src/transformers/replicate/fofr-face-to-sticker.ts +40 -40
  193. package/src/transformers/replicate/fofr-latent-consistency-model.ts +79 -79
  194. package/src/transformers/replicate/fofr-prompt-classifier.ts +53 -53
  195. package/src/transformers/replicate/fofr-sdxl-emoji.ts +92 -92
  196. package/src/transformers/replicate/fofr-sdxl-multi-controlnet-lora.ts +110 -110
  197. package/src/transformers/replicate/fofr-sticker-maker.ts +54 -54
  198. package/src/transformers/replicate/georgedavila-bart-large-mnli-classifier.ts +36 -36
  199. package/src/transformers/replicate/google-gemini-2-5-flash.ts +90 -90
  200. package/src/transformers/replicate/google-gemini-3-pro.ts +91 -91
  201. package/src/transformers/replicate/google-imagen-3-fast.ts +32 -32
  202. package/src/transformers/replicate/google-imagen-3.ts +34 -34
  203. package/src/transformers/replicate/google-imagen-4-fast.ts +32 -32
  204. package/src/transformers/replicate/google-imagen-4-ultra.ts +32 -32
  205. package/src/transformers/replicate/google-imagen-4.ts +32 -32
  206. package/src/transformers/replicate/google-lyria-2.ts +28 -28
  207. package/src/transformers/replicate/google-nano-banana.ts +41 -41
  208. package/src/transformers/replicate/google-research-maxim.ts +38 -38
  209. package/src/transformers/replicate/google-upscaler.ts +29 -29
  210. package/src/transformers/replicate/grandlineai-instant-id-artistic.ts +61 -61
  211. package/src/transformers/replicate/grandlineai-instant-id-photorealistic.ts +35 -35
  212. package/src/transformers/replicate/ibm-granite-granite-embedding-278m-multilingual.ts +29 -28
  213. package/src/transformers/replicate/ideogram-ai-ideogram-character.ts +66 -66
  214. package/src/transformers/replicate/ideogram-ai-ideogram-v2-turbo.ts +51 -51
  215. package/src/transformers/replicate/ideogram-ai-ideogram-v2.ts +53 -53
  216. package/src/transformers/replicate/ideogram-ai-ideogram-v2a-turbo.ts +52 -52
  217. package/src/transformers/replicate/ideogram-ai-ideogram-v2a.ts +50 -50
  218. package/src/transformers/replicate/ideogram-ai-ideogram-v3-balanced.ts +82 -82
  219. package/src/transformers/replicate/ideogram-ai-ideogram-v3-quality.ts +77 -77
  220. package/src/transformers/replicate/ideogram-ai-ideogram-v3-turbo.ts +77 -77
  221. package/src/transformers/replicate/index.ts +612 -612
  222. package/src/transformers/replicate/j-min-clip-caption-reward.ts +38 -38
  223. package/src/transformers/replicate/jaaari-kokoro-82m.ts +31 -31
  224. package/src/transformers/replicate/jagilley-controlnet-scribble.ts +39 -39
  225. package/src/transformers/replicate/jingyunliang-hcflow-sr.ts +37 -37
  226. package/src/transformers/replicate/jingyunliang-swinir.ts +42 -42
  227. package/src/transformers/replicate/joehoover-instructblip-vicuna13b.ts +27 -27
  228. package/src/transformers/replicate/joehoover-mplug-owl.ts +24 -24
  229. package/src/transformers/replicate/juergengunz-ultimate-portrait-upscale.ts +55 -55
  230. package/src/transformers/replicate/krthr-clip-embeddings.ts +41 -47
  231. package/src/transformers/replicate/kshitijagrwl-pii-extractor-llm.ts +40 -40
  232. package/src/transformers/replicate/leonardoai-lucid-origin.ts +36 -36
  233. package/src/transformers/replicate/lucataco-ace-step.ts +41 -41
  234. package/src/transformers/replicate/lucataco-bakllava.ts +31 -31
  235. package/src/transformers/replicate/lucataco-codeformer.ts +33 -33
  236. package/src/transformers/replicate/lucataco-controlnet-tile.ts +34 -34
  237. package/src/transformers/replicate/lucataco-csm-1b.ts +40 -40
  238. package/src/transformers/replicate/lucataco-deepseek-ocr.ts +33 -33
  239. package/src/transformers/replicate/lucataco-demofusion-enhance.ts +43 -43
  240. package/src/transformers/replicate/lucataco-dreamshaper-xl-turbo.ts +55 -55
  241. package/src/transformers/replicate/lucataco-florence-2-base.ts +45 -45
  242. package/src/transformers/replicate/lucataco-fuyu-8b.ts +31 -31
  243. package/src/transformers/replicate/lucataco-gpt-oss-safeguard-20b.ts +50 -50
  244. package/src/transformers/replicate/lucataco-ip-adapter-faceid.ts +75 -75
  245. package/src/transformers/replicate/lucataco-ip_adapter-face-inpaint.ts +48 -48
  246. package/src/transformers/replicate/lucataco-ip_adapter-sdxl-face.ts +52 -52
  247. package/src/transformers/replicate/lucataco-llama-3-vision-alpha.ts +32 -32
  248. package/src/transformers/replicate/lucataco-magnet.ts +44 -44
  249. package/src/transformers/replicate/lucataco-modelscope-facefusion.ts +46 -46
  250. package/src/transformers/replicate/lucataco-moondream2.ts +32 -32
  251. package/src/transformers/replicate/lucataco-nomic-embed-text-v1.ts +29 -28
  252. package/src/transformers/replicate/lucataco-ollama-llama3-2-vision-11b.ts +37 -37
  253. package/src/transformers/replicate/lucataco-ollama-llama3-2-vision-90b.ts +47 -47
  254. package/src/transformers/replicate/lucataco-omnigen2.ts +43 -43
  255. package/src/transformers/replicate/lucataco-open-dalle-v1-1.ts +81 -81
  256. package/src/transformers/replicate/lucataco-orpheus-3b-0-1-ft.ts +38 -38
  257. package/src/transformers/replicate/lucataco-pasd-magnify.ts +35 -35
  258. package/src/transformers/replicate/lucataco-pheme.ts +33 -33
  259. package/src/transformers/replicate/lucataco-qwen-vl-chat.ts +30 -30
  260. package/src/transformers/replicate/lucataco-qwen2-5-omni-7b.ts +78 -78
  261. package/src/transformers/replicate/lucataco-qwen2-vl-7b-instruct.ts +43 -43
  262. package/src/transformers/replicate/lucataco-realistic-vision-v5-1.ts +50 -50
  263. package/src/transformers/replicate/lucataco-sdxl-clip-interrogator.ts +29 -29
  264. package/src/transformers/replicate/lucataco-smolvlm-instruct.ts +38 -38
  265. package/src/transformers/replicate/lucataco-snowflake-arctic-embed-l.ts +31 -30
  266. package/src/transformers/replicate/lucataco-ssd-1b.ts +76 -76
  267. package/src/transformers/replicate/lucataco-stable-diffusion-x4-upscaler.ts +30 -30
  268. package/src/transformers/replicate/lucataco-xtts-v2.ts +42 -42
  269. package/src/transformers/replicate/lucataco-xtts-v2.ts.invalid +31 -31
  270. package/src/transformers/replicate/luma-photon-flash.ts +47 -47
  271. package/src/transformers/replicate/luma-photon.ts +35 -35
  272. package/src/transformers/replicate/m1guelpf-whisper-subtitles.ts +46 -46
  273. package/src/transformers/replicate/mark3labs-embeddings-gte-base.ts +32 -31
  274. package/src/transformers/replicate/megvii-research-nafnet.ts +39 -39
  275. package/src/transformers/replicate/meta-musicgen.ts +53 -53
  276. package/src/transformers/replicate/methexis-inc-img2prompt.ts +43 -43
  277. package/src/transformers/replicate/mickeybeurskens-latex-ocr.ts +27 -27
  278. package/src/transformers/replicate/microsoft-bringing-old-photos-back-to-life.ts +38 -38
  279. package/src/transformers/replicate/minimax-image-01.ts +39 -39
  280. package/src/transformers/replicate/minimax-music-01.ts +35 -35
  281. package/src/transformers/replicate/minimax-music-1-5.ts +35 -35
  282. package/src/transformers/replicate/minimax-speech-02-hd.ts +52 -52
  283. package/src/transformers/replicate/minimax-speech-02-turbo.ts +52 -52
  284. package/src/transformers/replicate/minimax-voice-cloning.ts +36 -36
  285. package/src/transformers/replicate/mv-lab-instructir.ts +30 -30
  286. package/src/transformers/replicate/mv-lab-swin2sr.ts +37 -37
  287. package/src/transformers/replicate/nateraw-bge-large-en-v1-5.ts +38 -37
  288. package/src/transformers/replicate/nateraw-jina-embeddings-v2-base-en.ts +23 -22
  289. package/src/transformers/replicate/nicknaskida-whisper-diarization.ts +53 -53
  290. package/src/transformers/replicate/nightmareai-latent-sr.ts +40 -40
  291. package/src/transformers/replicate/nightmareai-real-esrgan.ts +28 -28
  292. package/src/transformers/replicate/nohamoamary-image-captioning-with-visual-attention.ts +29 -29
  293. package/src/transformers/replicate/nvidia-parakeet-rnnt-1-1b.ts +26 -26
  294. package/src/transformers/replicate/nvidia-sana-sprint-1-6b.ts +49 -49
  295. package/src/transformers/replicate/nvidia-sana.ts +62 -62
  296. package/src/transformers/replicate/openai-gpt-4-1-mini.ts +65 -65
  297. package/src/transformers/replicate/openai-gpt-4o-mini-transcribe.ts +32 -32
  298. package/src/transformers/replicate/openai-gpt-4o-mini.ts +72 -72
  299. package/src/transformers/replicate/openai-gpt-4o-transcribe.ts +36 -36
  300. package/src/transformers/replicate/openai-gpt-4o.ts +69 -69
  301. package/src/transformers/replicate/openai-gpt-5.ts +80 -80
  302. package/src/transformers/replicate/openai-gpt-image-1.ts +60 -60
  303. package/src/transformers/replicate/openai-whisper.ts +56 -56
  304. package/src/transformers/replicate/orpatashnik-styleclip.ts +40 -40
  305. package/src/transformers/replicate/pbevan1-llama-3-1-8b-ocr-correction.ts +56 -56
  306. package/src/transformers/replicate/pharmapsychotic-clip-interrogator.ts +37 -37
  307. package/src/transformers/replicate/philz1337x-clarity-upscaler.ts +56 -56
  308. package/src/transformers/replicate/philz1337x-crystal-upscaler.ts +29 -29
  309. package/src/transformers/replicate/piddnad-ddcolor.ts +28 -28
  310. package/src/transformers/replicate/platform-kit-mars5-tts.ts +38 -38
  311. package/src/transformers/replicate/playgroundai-playground-v2-5-1024px-aesthetic.ts +81 -81
  312. package/src/transformers/replicate/prunaai-flux-fast.ts +38 -38
  313. package/src/transformers/replicate/prunaai-flux-kontext-fast.ts +40 -40
  314. package/src/transformers/replicate/prunaai-hidream-l1-dev.ts +55 -55
  315. package/src/transformers/replicate/prunaai-hidream-l1-fast.ts +38 -38
  316. package/src/transformers/replicate/prunaai-hidream-l1-full.ts +61 -61
  317. package/src/transformers/replicate/prunaai-sdxl-lightning.ts +52 -52
  318. package/src/transformers/replicate/prunaai-wan-2-2-image.ts +36 -36
  319. package/src/transformers/replicate/qwen-qwen-image-edit-plus.ts +36 -36
  320. package/src/transformers/replicate/qwen-qwen-image-edit.ts +35 -35
  321. package/src/transformers/replicate/qwen-qwen-image.ts +67 -67
  322. package/src/transformers/replicate/recraft-ai-recraft-creative-upscale.ts +26 -26
  323. package/src/transformers/replicate/recraft-ai-recraft-crisp-upscale.ts +26 -26
  324. package/src/transformers/replicate/recraft-ai-recraft-v3-svg.ts +33 -33
  325. package/src/transformers/replicate/recraft-ai-recraft-v3.ts +33 -33
  326. package/src/transformers/replicate/replicate-all-mpnet-base-v2.ts +42 -40
  327. package/src/transformers/replicate/resemble-ai-chatterbox-multilingual.ts +43 -43
  328. package/src/transformers/replicate/resemble-ai-chatterbox-pro.ts +36 -36
  329. package/src/transformers/replicate/resemble-ai-chatterbox.ts +41 -41
  330. package/src/transformers/replicate/resemble-ai-chatterbox.ts.invalid +38 -38
  331. package/src/transformers/replicate/riffusion-riffusion.ts +35 -35
  332. package/src/transformers/replicate/rmokady-clip_prefix_caption.ts +47 -47
  333. package/src/transformers/replicate/runwayml-gen4-image-turbo.ts +34 -34
  334. package/src/transformers/replicate/runwayml-gen4-image.ts +44 -44
  335. package/src/transformers/replicate/sakemin-musicgen-chord.ts +46 -46
  336. package/src/transformers/replicate/sakemin-musicgen-remixer.ts +55 -55
  337. package/src/transformers/replicate/sakemin-musicgen-stereo-chord.ts +47 -47
  338. package/src/transformers/replicate/salesforce-blip.ts +46 -46
  339. package/src/transformers/replicate/sczhou-codeformer.ts +33 -33
  340. package/src/transformers/replicate/sdxl-based-realvisxl-v3-multi-controlnet-lora.ts +90 -90
  341. package/src/transformers/replicate/stability-ai-sdxl.ts +69 -69
  342. package/src/transformers/replicate/stability-ai-stable-audio-2-5.ts +33 -33
  343. package/src/transformers/replicate/stability-ai-stable-diffusion-3-5-large-turbo.ts +55 -55
  344. package/src/transformers/replicate/stability-ai-stable-diffusion-3-5-large.ts +73 -73
  345. package/src/transformers/replicate/stability-ai-stable-diffusion-3-5-medium.ts +47 -47
  346. package/src/transformers/replicate/stability-ai-stable-diffusion.ts +57 -57
  347. package/src/transformers/replicate/suno-ai-bark.ts +37 -37
  348. package/src/transformers/replicate/tencent-hunyuan-image-3.ts +35 -35
  349. package/src/transformers/replicate/tencentarc-gfpgan.ts +39 -39
  350. package/src/transformers/replicate/tencentarc-photomaker-style.ts +53 -53
  351. package/src/transformers/replicate/tencentarc-photomaker.ts +80 -80
  352. package/src/transformers/replicate/tencentarc-vqfr.ts +39 -39
  353. package/src/transformers/replicate/thomasmol-whisper-diarization.ts +44 -44
  354. package/src/transformers/replicate/topazlabs-image-upscale.ts +37 -37
  355. package/src/transformers/replicate/tstramer-material-diffusion.ts +85 -85
  356. package/src/transformers/replicate/vaibhavs10-incredibly-fast-whisper.ts +44 -44
  357. package/src/transformers/replicate/victor-upmeet-whisperx.ts +50 -50
  358. package/src/transformers/replicate/willywongi-donut.ts +26 -26
  359. package/src/transformers/replicate/x-lance-f5-tts.ts +47 -47
  360. package/src/transformers/replicate/xai-grok-4.ts +50 -50
  361. package/src/transformers/replicate/xinntao-esrgan.ts +35 -35
  362. package/src/transformers/replicate/yangxy-gpen.ts +41 -41
  363. package/src/transformers/replicate/yorickvp-llava-13b.ts +55 -55
  364. package/src/transformers/replicate/yorickvp-llava-v1-6-34b.ts +58 -58
  365. package/src/transformers/replicate/yorickvp-llava-v1-6-mistral-7b.ts +83 -83
  366. package/src/transformers/replicate/yorickvp-llava-v1-6-vicuna-13b.ts +108 -108
  367. package/src/transformers/replicate/zsxkib-aura-sr-v2.ts +32 -32
  368. package/src/transformers/replicate/zsxkib-aura-sr.ts +30 -30
  369. package/src/transformers/replicate/zsxkib-blip-3.ts +47 -47
  370. package/src/transformers/replicate/zsxkib-bsrgan.ts +28 -28
  371. package/src/transformers/replicate/zsxkib-dia.ts +42 -42
  372. package/src/transformers/replicate/zsxkib-diffbir.ts +57 -57
  373. package/src/transformers/replicate/zsxkib-flash-face.ts +47 -47
  374. package/src/transformers/replicate/zsxkib-flux-music.ts +36 -36
  375. package/src/transformers/replicate/zsxkib-idefics3.ts +96 -96
  376. package/src/transformers/replicate/zsxkib-instant-id.ts +58 -58
  377. package/src/transformers/replicate/zsxkib-jina-clip-v2.ts +42 -48
  378. package/src/transformers/replicate/zsxkib-molmo-7b.ts +54 -54
  379. package/src/transformers/replicate/zsxkib-realistic-voice-cloning.ts +54 -54
  380. package/src/transformers/replicate/zsxkib-seedvr2.ts +38 -38
  381. package/src/transformers/replicate/zsxkib-step1x-edit.ts +35 -35
  382. package/src/transformers/replicate/zsxkib-uform-gen.ts +29 -29
  383. package/src/transformers/replicate/zsyoaoa-invsr.ts +33 -33
  384. package/tsconfig.json +16 -16
@@ -1,54 +1,54 @@
1
- import { toURL } from '@aeye/core';
2
- import { ReplicateTransformer } from '@aeye/replicate';
3
-
4
- type Schemas = {
5
- Input: {
6
- mask?: string;
7
- seed?: number;
8
- image?: string;
9
- prompt: string;
10
- resolution?: Schemas["resolution"];
11
- style_type?: Schemas["style_type"];
12
- aspect_ratio?: Schemas["aspect_ratio"];
13
- negative_prompt?: string;
14
- magic_prompt_option?: Schemas["magic_prompt_option"];
15
- };
16
- Output: string;
17
- Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
18
- resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
19
- style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
20
- aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
21
- magic_prompt_option: "Auto" | "On" | "Off";
22
- };
23
-
24
- export default {
25
- "ideogram-ai/ideogram-v2": (() => {
26
- const transformer: ReplicateTransformer = {
27
- imageGenerate: {
28
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => ({
29
- prompt: request.prompt,
30
- seed: request.seed,
31
- resolution: request.size as Schemas["resolution"],
32
- ...request.extra,
33
- }),
34
- parseResponse: async (response: Schemas["Output"], ctx) => ({
35
- images: [{ url: await toURL(response) }],
36
- }),
37
- },
38
- imageEdit: {
39
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => ({
40
- prompt: request.prompt,
41
- image: await toURL(request.image),
42
- mask: request.mask ? await toURL(request.mask) : undefined,
43
- seed: request.seed,
44
- resolution: request.size as Schemas["resolution"],
45
- ...request.extra,
46
- }),
47
- parseResponse: async (response: Schemas["Output"], ctx) => ({
48
- images: [{ url: await toURL(response) }],
49
- }),
50
- },
51
- };
52
- return transformer;
53
- })(),
1
+ import { toURL } from '@aeye/core';
2
+ import { ReplicateTransformer } from '@aeye/replicate';
3
+
4
+ type Schemas = {
5
+ Input: {
6
+ mask?: string;
7
+ seed?: number;
8
+ image?: string;
9
+ prompt: string;
10
+ resolution?: Schemas["resolution"];
11
+ style_type?: Schemas["style_type"];
12
+ aspect_ratio?: Schemas["aspect_ratio"];
13
+ negative_prompt?: string;
14
+ magic_prompt_option?: Schemas["magic_prompt_option"];
15
+ };
16
+ Output: string;
17
+ Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
18
+ resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
19
+ style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
20
+ aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
21
+ magic_prompt_option: "Auto" | "On" | "Off";
22
+ };
23
+
24
+ export default {
25
+ "ideogram-ai/ideogram-v2": (() => {
26
+ const transformer: ReplicateTransformer = {
27
+ imageGenerate: {
28
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => ({
29
+ prompt: request.prompt,
30
+ seed: request.seed,
31
+ resolution: request.size as Schemas["resolution"],
32
+ ...request.extra,
33
+ }),
34
+ parseResponse: async (response: Schemas["Output"], ctx) => ({
35
+ images: [{ url: await toURL(response) }],
36
+ }),
37
+ },
38
+ imageEdit: {
39
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => ({
40
+ prompt: request.prompt,
41
+ image: await toURL(request.image),
42
+ mask: request.mask ? await toURL(request.mask) : undefined,
43
+ seed: request.seed,
44
+ resolution: request.size as Schemas["resolution"],
45
+ ...request.extra,
46
+ }),
47
+ parseResponse: async (response: Schemas["Output"], ctx) => ({
48
+ images: [{ url: await toURL(response) }],
49
+ }),
50
+ },
51
+ };
52
+ return transformer;
53
+ })(),
54
54
  }
@@ -1,53 +1,53 @@
1
- import { toURL } from '@aeye/core';
2
- import { ReplicateTransformer } from '@aeye/replicate';
3
-
4
- type Schemas = {
5
- Input: {
6
- seed?: number | null;
7
- prompt: string;
8
- resolution?: Schemas["resolution"];
9
- style_type?: Schemas["style_type"];
10
- aspect_ratio?: Schemas["aspect_ratio"];
11
- magic_prompt_option?: Schemas["magic_prompt_option"];
12
- };
13
- Output: string;
14
- Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
15
- resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
16
- style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
17
- aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
18
- magic_prompt_option: "Auto" | "On" | "Off";
19
- };
20
-
21
- export default {
22
- "ideogram-ai/ideogram-v2a-turbo": (() => {
23
- const transformer: ReplicateTransformer = {
24
- imageGenerate: {
25
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
26
- const input: Schemas["Input"] = {
27
- prompt: request.prompt,
28
- seed: request.seed,
29
- ...request.extra,
30
- };
31
-
32
- // Map standard 'size' to aspect_ratio or resolution if provided and valid
33
- if (request.size && !input.resolution && !input.aspect_ratio) {
34
- if (request.size.includes(':')) {
35
- // Simple check, strict validation happens at runtime/API level
36
- input.aspect_ratio = request.size as Schemas["aspect_ratio"];
37
- } else if (request.size.includes('x')) {
38
- input.resolution = request.size as Schemas["resolution"];
39
- }
40
- }
41
-
42
- return input;
43
- },
44
- parseResponse: async (response: Schemas["Output"], ctx) => {
45
- return {
46
- images: [{ url: await toURL(response) }],
47
- };
48
- },
49
- },
50
- };
51
- return transformer;
52
- })(),
1
+ import { toURL } from '@aeye/core';
2
+ import { ReplicateTransformer } from '@aeye/replicate';
3
+
4
+ type Schemas = {
5
+ Input: {
6
+ seed?: number | null;
7
+ prompt: string;
8
+ resolution?: Schemas["resolution"];
9
+ style_type?: Schemas["style_type"];
10
+ aspect_ratio?: Schemas["aspect_ratio"];
11
+ magic_prompt_option?: Schemas["magic_prompt_option"];
12
+ };
13
+ Output: string;
14
+ Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
15
+ resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
16
+ style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
17
+ aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
18
+ magic_prompt_option: "Auto" | "On" | "Off";
19
+ };
20
+
21
+ export default {
22
+ "ideogram-ai/ideogram-v2a-turbo": (() => {
23
+ const transformer: ReplicateTransformer = {
24
+ imageGenerate: {
25
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
26
+ const input: Schemas["Input"] = {
27
+ prompt: request.prompt,
28
+ seed: request.seed,
29
+ ...request.extra,
30
+ };
31
+
32
+ // Map standard 'size' to aspect_ratio or resolution if provided and valid
33
+ if (request.size && !input.resolution && !input.aspect_ratio) {
34
+ if (request.size.includes(':')) {
35
+ // Simple check, strict validation happens at runtime/API level
36
+ input.aspect_ratio = request.size as Schemas["aspect_ratio"];
37
+ } else if (request.size.includes('x')) {
38
+ input.resolution = request.size as Schemas["resolution"];
39
+ }
40
+ }
41
+
42
+ return input;
43
+ },
44
+ parseResponse: async (response: Schemas["Output"], ctx) => {
45
+ return {
46
+ images: [{ url: await toURL(response) }],
47
+ };
48
+ },
49
+ },
50
+ };
51
+ return transformer;
52
+ })(),
53
53
  }
@@ -1,51 +1,51 @@
1
- import { toURL } from '@aeye/core';
2
- import { ReplicateTransformer } from '@aeye/replicate';
3
-
4
- type Schemas = {
5
- Input: {
6
- seed?: number | null;
7
- prompt: string;
8
- resolution?: Schemas["resolution"];
9
- style_type?: Schemas["style_type"];
10
- aspect_ratio?: Schemas["aspect_ratio"];
11
- magic_prompt_option?: Schemas["magic_prompt_option"];
12
- };
13
- Output: string;
14
- Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
15
- resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
16
- style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
17
- aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
18
- magic_prompt_option: "Auto" | "On" | "Off";
19
- };
20
-
21
- export default {
22
- "ideogram-ai/ideogram-v2a": (() => {
23
- const transformer: ReplicateTransformer = {
24
- imageGenerate: {
25
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
26
- const input: Schemas["Input"] = {
27
- prompt: request.prompt,
28
- seed: request.seed,
29
- ...request.extra,
30
- };
31
-
32
- if (request.size) {
33
- if (request.size.includes(':')) {
34
- input.aspect_ratio = request.size as Schemas["aspect_ratio"];
35
- } else if (request.size.includes('x')) {
36
- input.resolution = request.size as Schemas["resolution"];
37
- }
38
- }
39
-
40
- return input;
41
- },
42
- parseResponse: async (response: Schemas["Output"], ctx) => {
43
- return {
44
- images: [{ url: await toURL(response) }],
45
- };
46
- },
47
- },
48
- };
49
- return transformer;
50
- })(),
1
+ import { toURL } from '@aeye/core';
2
+ import { ReplicateTransformer } from '@aeye/replicate';
3
+
4
+ type Schemas = {
5
+ Input: {
6
+ seed?: number | null;
7
+ prompt: string;
8
+ resolution?: Schemas["resolution"];
9
+ style_type?: Schemas["style_type"];
10
+ aspect_ratio?: Schemas["aspect_ratio"];
11
+ magic_prompt_option?: Schemas["magic_prompt_option"];
12
+ };
13
+ Output: string;
14
+ Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
15
+ resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
16
+ style_type: "None" | "Auto" | "General" | "Realistic" | "Design" | "Render 3D" | "Anime";
17
+ aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "16:10" | "10:16" | "3:1" | "1:3";
18
+ magic_prompt_option: "Auto" | "On" | "Off";
19
+ };
20
+
21
+ export default {
22
+ "ideogram-ai/ideogram-v2a": (() => {
23
+ const transformer: ReplicateTransformer = {
24
+ imageGenerate: {
25
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
26
+ const input: Schemas["Input"] = {
27
+ prompt: request.prompt,
28
+ seed: request.seed,
29
+ ...request.extra,
30
+ };
31
+
32
+ if (request.size) {
33
+ if (request.size.includes(':')) {
34
+ input.aspect_ratio = request.size as Schemas["aspect_ratio"];
35
+ } else if (request.size.includes('x')) {
36
+ input.resolution = request.size as Schemas["resolution"];
37
+ }
38
+ }
39
+
40
+ return input;
41
+ },
42
+ parseResponse: async (response: Schemas["Output"], ctx) => {
43
+ return {
44
+ images: [{ url: await toURL(response) }],
45
+ };
46
+ },
47
+ },
48
+ };
49
+ return transformer;
50
+ })(),
51
51
  }
@@ -1,83 +1,83 @@
1
- import { toURL } from '@aeye/core';
2
- import { ReplicateTransformer } from '@aeye/replicate';
3
-
4
- type Schemas = {
5
- Input: {
6
- mask?: string | null;
7
- seed?: number | null;
8
- image?: string | null;
9
- prompt: string;
10
- resolution?: Schemas["resolution"];
11
- style_type?: Schemas["style_type"];
12
- aspect_ratio?: Schemas["aspect_ratio"];
13
- style_preset?: Schemas["style_preset"];
14
- magic_prompt_option?: Schemas["magic_prompt_option"];
15
- style_reference_images?: string[] | null;
16
- };
17
- Output: string;
18
- Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
19
- resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "800x1280" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
20
- style_type: "None" | "Auto" | "General" | "Realistic" | "Design";
21
- aspect_ratio: "1:3" | "3:1" | "1:2" | "2:1" | "9:16" | "16:9" | "10:16" | "16:10" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "1:1";
22
- style_preset: "None" | "80s Illustration" | "90s Nostalgia" | "Abstract Organic" | "Analog Nostalgia" | "Art Brut" | "Art Deco" | "Art Poster" | "Aura" | "Avant Garde" | "Bauhaus" | "Blueprint" | "Blurry Motion" | "Bright Art" | "C4D Cartoon" | "Children's Book" | "Collage" | "Coloring Book I" | "Coloring Book II" | "Cubism" | "Dark Aura" | "Doodle" | "Double Exposure" | "Dramatic Cinema" | "Editorial" | "Emotional Minimal" | "Ethereal Party" | "Expired Film" | "Flat Art" | "Flat Vector" | "Forest Reverie" | "Geo Minimalist" | "Glass Prism" | "Golden Hour" | "Graffiti I" | "Graffiti II" | "Halftone Print" | "High Contrast" | "Hippie Era" | "Iconic" | "Japandi Fusion" | "Jazzy" | "Long Exposure" | "Magazine Editorial" | "Minimal Illustration" | "Mixed Media" | "Monochrome" | "Nightlife" | "Oil Painting" | "Old Cartoons" | "Paint Gesture" | "Pop Art" | "Retro Etching" | "Riviera Pop" | "Spotlight 80s" | "Stylized Red" | "Surreal Collage" | "Travel Poster" | "Vintage Geo" | "Vintage Poster" | "Watercolor" | "Weird" | "Woodblock Print";
23
- magic_prompt_option: "Auto" | "On" | "Off";
24
- };
25
-
26
- export default {
27
- "ideogram-ai/ideogram-v3-balanced": (() => {
28
- const transformer: ReplicateTransformer = {
29
- imageGenerate: {
30
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
31
- const input: Schemas["Input"] = {
32
- prompt: request.prompt,
33
- seed: request.seed,
34
- ...request.extra,
35
- };
36
-
37
- if (request.size) {
38
- const isAspectRatio = request.size.includes(':');
39
- if (isAspectRatio) {
40
- input.aspect_ratio = request.size as Schemas["aspect_ratio"];
41
- } else {
42
- input.resolution = request.size as Schemas["resolution"];
43
- }
44
- }
45
-
46
- return input;
47
- },
48
- parseResponse: async (response: Schemas["Output"], ctx) => ({
49
- images: [{ url: await toURL(response) }],
50
- }),
51
- },
52
- imageEdit: {
53
- convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
54
- const input: Schemas["Input"] = {
55
- prompt: request.prompt,
56
- image: await toURL(request.image),
57
- seed: request.seed,
58
- ...request.extra,
59
- };
60
-
61
- if (request.mask) {
62
- input.mask = await toURL(request.mask);
63
- }
64
-
65
- if (request.size) {
66
- const isAspectRatio = request.size.includes(':');
67
- if (isAspectRatio) {
68
- input.aspect_ratio = request.size as Schemas["aspect_ratio"];
69
- } else {
70
- input.resolution = request.size as Schemas["resolution"];
71
- }
72
- }
73
-
74
- return input;
75
- },
76
- parseResponse: async (response: Schemas["Output"], ctx) => ({
77
- images: [{ url: await toURL(response) }],
78
- }),
79
- },
80
- };
81
- return transformer;
82
- })(),
1
+ import { toURL } from '@aeye/core';
2
+ import { ReplicateTransformer } from '@aeye/replicate';
3
+
4
+ type Schemas = {
5
+ Input: {
6
+ mask?: string | null;
7
+ seed?: number | null;
8
+ image?: string | null;
9
+ prompt: string;
10
+ resolution?: Schemas["resolution"];
11
+ style_type?: Schemas["style_type"];
12
+ aspect_ratio?: Schemas["aspect_ratio"];
13
+ style_preset?: Schemas["style_preset"];
14
+ magic_prompt_option?: Schemas["magic_prompt_option"];
15
+ style_reference_images?: string[] | null;
16
+ };
17
+ Output: string;
18
+ Status: "starting" | "processing" | "succeeded" | "canceled" | "failed";
19
+ resolution: "None" | "512x1536" | "576x1408" | "576x1472" | "576x1536" | "640x1344" | "640x1408" | "640x1472" | "640x1536" | "704x1152" | "704x1216" | "704x1280" | "704x1344" | "704x1408" | "704x1472" | "736x1312" | "768x1088" | "768x1216" | "768x1280" | "768x1344" | "800x1280" | "832x960" | "832x1024" | "832x1088" | "832x1152" | "832x1216" | "832x1248" | "864x1152" | "896x960" | "896x1024" | "896x1088" | "896x1120" | "896x1152" | "960x832" | "960x896" | "960x1024" | "960x1088" | "1024x832" | "1024x896" | "1024x960" | "1024x1024" | "1088x768" | "1088x832" | "1088x896" | "1088x960" | "1120x896" | "1152x704" | "1152x832" | "1152x864" | "1152x896" | "1216x704" | "1216x768" | "1216x832" | "1248x832" | "1280x704" | "1280x768" | "1280x800" | "1312x736" | "1344x640" | "1344x704" | "1344x768" | "1408x576" | "1408x640" | "1408x704" | "1472x576" | "1472x640" | "1472x704" | "1536x512" | "1536x576" | "1536x640";
20
+ style_type: "None" | "Auto" | "General" | "Realistic" | "Design";
21
+ aspect_ratio: "1:3" | "3:1" | "1:2" | "2:1" | "9:16" | "16:9" | "10:16" | "16:10" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "1:1";
22
+ style_preset: "None" | "80s Illustration" | "90s Nostalgia" | "Abstract Organic" | "Analog Nostalgia" | "Art Brut" | "Art Deco" | "Art Poster" | "Aura" | "Avant Garde" | "Bauhaus" | "Blueprint" | "Blurry Motion" | "Bright Art" | "C4D Cartoon" | "Children's Book" | "Collage" | "Coloring Book I" | "Coloring Book II" | "Cubism" | "Dark Aura" | "Doodle" | "Double Exposure" | "Dramatic Cinema" | "Editorial" | "Emotional Minimal" | "Ethereal Party" | "Expired Film" | "Flat Art" | "Flat Vector" | "Forest Reverie" | "Geo Minimalist" | "Glass Prism" | "Golden Hour" | "Graffiti I" | "Graffiti II" | "Halftone Print" | "High Contrast" | "Hippie Era" | "Iconic" | "Japandi Fusion" | "Jazzy" | "Long Exposure" | "Magazine Editorial" | "Minimal Illustration" | "Mixed Media" | "Monochrome" | "Nightlife" | "Oil Painting" | "Old Cartoons" | "Paint Gesture" | "Pop Art" | "Retro Etching" | "Riviera Pop" | "Spotlight 80s" | "Stylized Red" | "Surreal Collage" | "Travel Poster" | "Vintage Geo" | "Vintage Poster" | "Watercolor" | "Weird" | "Woodblock Print";
23
+ magic_prompt_option: "Auto" | "On" | "Off";
24
+ };
25
+
26
+ export default {
27
+ "ideogram-ai/ideogram-v3-balanced": (() => {
28
+ const transformer: ReplicateTransformer = {
29
+ imageGenerate: {
30
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
31
+ const input: Schemas["Input"] = {
32
+ prompt: request.prompt,
33
+ seed: request.seed,
34
+ ...request.extra,
35
+ };
36
+
37
+ if (request.size) {
38
+ const isAspectRatio = request.size.includes(':');
39
+ if (isAspectRatio) {
40
+ input.aspect_ratio = request.size as Schemas["aspect_ratio"];
41
+ } else {
42
+ input.resolution = request.size as Schemas["resolution"];
43
+ }
44
+ }
45
+
46
+ return input;
47
+ },
48
+ parseResponse: async (response: Schemas["Output"], ctx) => ({
49
+ images: [{ url: await toURL(response) }],
50
+ }),
51
+ },
52
+ imageEdit: {
53
+ convertRequest: async (request, ctx): Promise<Schemas["Input"]> => {
54
+ const input: Schemas["Input"] = {
55
+ prompt: request.prompt,
56
+ image: await toURL(request.image),
57
+ seed: request.seed,
58
+ ...request.extra,
59
+ };
60
+
61
+ if (request.mask) {
62
+ input.mask = await toURL(request.mask);
63
+ }
64
+
65
+ if (request.size) {
66
+ const isAspectRatio = request.size.includes(':');
67
+ if (isAspectRatio) {
68
+ input.aspect_ratio = request.size as Schemas["aspect_ratio"];
69
+ } else {
70
+ input.resolution = request.size as Schemas["resolution"];
71
+ }
72
+ }
73
+
74
+ return input;
75
+ },
76
+ parseResponse: async (response: Schemas["Output"], ctx) => ({
77
+ images: [{ url: await toURL(response) }],
78
+ }),
79
+ },
80
+ };
81
+ return transformer;
82
+ })(),
83
83
  }