@henjicc/ai-sdk 0.2.8 → 0.3.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 (236) hide show
  1. package/CHANGELOG.md +153 -143
  2. package/README.md +486 -461
  3. package/dist/capabilities/embedding/bailian.d.ts +23 -0
  4. package/dist/capabilities/embedding/bailian.js +10 -0
  5. package/dist/capabilities/embedding/bigmodel.d.ts +9 -0
  6. package/dist/capabilities/embedding/bigmodel.js +5 -0
  7. package/dist/capabilities/embedding/index.d.ts +1 -0
  8. package/dist/capabilities/embedding/index.js +1 -0
  9. package/dist/capabilities/embedding/ppio.d.ts +7 -0
  10. package/dist/capabilities/embedding/ppio.js +5 -0
  11. package/dist/capabilities/embedding/siliconflow.d.ts +21 -0
  12. package/dist/capabilities/embedding/siliconflow.js +10 -0
  13. package/dist/capabilities/embedding/volcengine.d.ts +10 -0
  14. package/dist/capabilities/embedding/volcengine.js +6 -0
  15. package/dist/capabilities/rerank/bailian.d.ts +21 -0
  16. package/dist/capabilities/rerank/bailian.js +14 -0
  17. package/dist/capabilities/rerank/bigmodel.d.ts +9 -0
  18. package/dist/capabilities/rerank/bigmodel.js +5 -0
  19. package/dist/capabilities/rerank/index.d.ts +1 -0
  20. package/dist/capabilities/rerank/index.js +1 -0
  21. package/dist/capabilities/rerank/ppio.d.ts +7 -0
  22. package/dist/capabilities/rerank/ppio.js +5 -0
  23. package/dist/capabilities/rerank/siliconflow.d.ts +21 -0
  24. package/dist/capabilities/rerank/siliconflow.js +10 -0
  25. package/dist/capabilities/retrieval/http.d.ts +3 -0
  26. package/dist/capabilities/retrieval/http.js +48 -0
  27. package/dist/capabilities/retrieval/module.d.ts +11 -0
  28. package/dist/capabilities/retrieval/module.js +110 -0
  29. package/dist/capabilities/retrieval/types.d.ts +54 -0
  30. package/dist/capabilities/retrieval/types.js +1 -0
  31. package/dist/capabilities/retrieval/validation.d.ts +10 -0
  32. package/dist/capabilities/retrieval/validation.js +65 -0
  33. package/dist/capabilities/types.d.ts +1 -1
  34. package/dist/catalog/apimart/gpt-image-2.5.model.d.ts +2 -0
  35. package/dist/catalog/apimart/gpt-image-2.5.model.js +51 -0
  36. package/dist/catalog/fal/gpt-image-2.5.model.d.ts +2 -0
  37. package/dist/catalog/fal/gpt-image-2.5.model.js +53 -0
  38. package/dist/catalog/fal/ic-light-v2.model.js +9 -13
  39. package/dist/catalog/grsai/gpt-image-2.5.model.d.ts +2 -0
  40. package/dist/catalog/grsai/gpt-image-2.5.model.js +54 -0
  41. package/dist/catalog/grsai/gptImage25Sizes.d.ts +1 -0
  42. package/dist/catalog/grsai/gptImage25Sizes.js +76 -0
  43. package/dist/catalog/index.js +112 -104
  44. package/dist/catalog/kie/gpt-image-2.5.model.d.ts +2 -0
  45. package/dist/catalog/kie/gpt-image-2.5.model.js +38 -0
  46. package/dist/catalog/shared/gptImage25.d.ts +16 -0
  47. package/dist/catalog/shared/gptImage25.js +48 -0
  48. package/dist/catalog/shared/gptImage25Pricing.d.ts +12 -0
  49. package/dist/catalog/shared/gptImage25Pricing.js +508 -0
  50. package/dist/llm/defaults.d.ts +1 -1
  51. package/dist/llm/defaults.js +1 -1
  52. package/dist/llm/modelCatalogEntries.js +16 -0
  53. package/dist/llm/providerPresets.js +2 -2
  54. package/dist/packs/models/apimart/gpt-image-2.5.d.ts +6 -0
  55. package/dist/packs/models/apimart/gpt-image-2.5.js +7 -0
  56. package/dist/packs/models/fal/gpt-image-2.5.d.ts +6 -0
  57. package/dist/packs/models/fal/gpt-image-2.5.js +7 -0
  58. package/dist/packs/models/grsai/gpt-image-2.5.d.ts +6 -0
  59. package/dist/packs/models/grsai/gpt-image-2.5.js +7 -0
  60. package/dist/packs/models/kie/gpt-image-2.5.d.ts +6 -0
  61. package/dist/packs/models/kie/gpt-image-2.5.js +7 -0
  62. package/dist/packs/provider-packs/apimart.d.ts +1 -1
  63. package/dist/packs/provider-packs/apimart.js +21 -20
  64. package/dist/packs/provider-packs/fal.d.ts +1 -1
  65. package/dist/packs/provider-packs/fal.js +37 -36
  66. package/dist/packs/provider-packs/grsai.d.ts +1 -1
  67. package/dist/packs/provider-packs/grsai.js +6 -5
  68. package/dist/packs/provider-packs/kie.d.ts +1 -1
  69. package/dist/packs/provider-packs/kie.js +28 -27
  70. package/dist/packs/tool-models/fal/{qwen-image-edit-2509-multiple-angles.d.ts → qwen-image-edit-2511-multiple-angles.d.ts} +1 -1
  71. package/dist/packs/tool-models/fal/{qwen-image-edit-2509-multiple-angles.js → qwen-image-edit-2511-multiple-angles.js} +1 -1
  72. package/dist/packs/tool-packs/fal-multi-angle-tools.js +1 -1
  73. package/dist/tool-packs/fal-multi-angle/models/qwen-image-edit-2511-multiple-angles.model.d.ts +2 -0
  74. package/dist/tool-packs/fal-multi-angle/models/{qwen-image-edit-2509-multiple-angles.model.js → qwen-image-edit-2511-multiple-angles.model.js} +20 -17
  75. package/docs/README.md +26 -26
  76. package/docs/consumers.md +54 -48
  77. package/docs/llm-adaptation/README.md +139 -139
  78. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/DeepSeek.md +103 -91
  79. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/Kimi.md +75 -75
  80. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/MiniMax.md +84 -84
  81. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//345/260/217/347/261/263MiMo.md +85 -85
  82. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//346/231/272/350/260/261GLM.md +232 -232
  83. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//347/201/253/345/261/261/345/274/225/346/223/216.md +87 -87
  84. package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274Qwen.md +84 -84
  85. package/docs/llm-adaptation//346/226/207/346/241/243/351/207/207/351/233/206/346/211/213/345/206/214.md +88 -88
  86. package/docs/model-adaptation/Bria-Eraser/Bria-Eraser_Fal.md +32 -32
  87. package/docs/model-adaptation/Bria-/345/210/233/346/204/217/346/224/276/345/244/247/Bria-/345/210/233/346/204/217/346/224/276/345/244/247_Fal.md +31 -31
  88. package/docs/model-adaptation/ControlLight/ControlLight_Fal.md +85 -85
  89. package/docs/model-adaptation/FLUX-2-/345/244/232/350/247/222/345/272/246/FLUX-2-/345/244/232/350/247/222/345/272/246_Fal.md +107 -107
  90. package/docs/model-adaptation/Finegrain-Eraser/Finegrain-Eraser_Fal.md +31 -31
  91. package/docs/model-adaptation/Flux-Pro-Erase/Flux-Pro-Erase_Fal.md +34 -34
  92. package/docs/model-adaptation/Fun-ASR/Fun-ASR_/347/231/276/347/202/274.md +43 -43
  93. package/docs/model-adaptation/Fun-ASR-Flash-2026-06-15/Fun-ASR-Flash-2026-06-15_/347/231/276/347/202/274.md +41 -41
  94. package/docs/model-adaptation/Fun-ASR-Realtime/Fun-ASR-Realtime_/347/231/276/347/202/274.md +37 -37
  95. package/docs/model-adaptation/Fun-ASR-Realtime-2026-02-28/Fun-ASR-Realtime-2026-02-28_/347/231/276/347/202/274.md +39 -39
  96. package/docs/model-adaptation/GLM-5.3-Flash/GLM-5.3-Flash_/346/231/272/350/260/261.md +207 -207
  97. package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_APIMart.md +173 -173
  98. package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Fal.md +94 -94
  99. package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Grsai.md +137 -137
  100. package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_KIE.md +93 -93
  101. package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_APIMart.md +66 -0
  102. package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_Fal.md +55 -0
  103. package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_Grsai.md +53 -0
  104. package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_KIE.md +55 -0
  105. package/docs/model-adaptation/GPT-OSS-20B/GPT-OSS-20B_Groq.md +62 -62
  106. package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_APIMart.md +124 -124
  107. package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_Fal.md +84 -84
  108. package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_KIE.md +129 -129
  109. package/docs/model-adaptation/Grok-Imagine/Grok-Imagine_KIE.md +36 -36
  110. package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_APIMart.md +250 -250
  111. package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_Fal.md +84 -84
  112. package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_KIE.md +105 -105
  113. package/docs/model-adaptation/Hailuo-02/Hailuo-02_Fal.md +93 -93
  114. package/docs/model-adaptation/Hailuo-02/Hailuo-02_KIE.md +56 -56
  115. package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_Fal.md +88 -88
  116. package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_KIE.md +51 -51
  117. package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_/346/264/276/346/254/247/344/272/221.md +70 -70
  118. package/docs/model-adaptation/IC-Light-v2/IC-Light-v2_Fal.md +97 -94
  119. package/docs/model-adaptation/Ideogram-/345/233/276/347/211/207/346/224/276/345/244/247/Ideogram-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +41 -41
  120. package/docs/model-adaptation/Image-Apps-v2-/345/225/206/345/223/201/346/221/204/345/275/261/Image-Apps-v2-/345/225/206/345/223/201/346/221/204/345/275/261_Fal.md +72 -72
  121. package/docs/model-adaptation/Image-Apps-v2-/346/211/251/345/233/276/Image-Apps-v2-/346/211/251/345/233/276_Fal.md +93 -93
  122. package/docs/model-adaptation/Image-Apps-v2-/347/205/247/347/211/207/344/277/256/345/244/215/Image-Apps-v2-/347/205/247/347/211/207/344/277/256/345/244/215_Fal.md +86 -86
  123. package/docs/model-adaptation/Image-Apps-v2-/351/207/215/346/211/223/345/205/211/Image-Apps-v2-/351/207/215/346/211/223/345/205/211_Fal.md +84 -84
  124. package/docs/model-adaptation/Kling-3.0/Kling-3.0_APIMart.md +112 -112
  125. package/docs/model-adaptation/Kling-3.0/Kling-3.0_Fal.md +89 -89
  126. package/docs/model-adaptation/Kling-3.0/Kling-3.0_KIE.md +106 -106
  127. package/docs/model-adaptation/Kling-3.0/Kling-3.0_/346/264/276/346/254/247/344/272/221.md +119 -119
  128. package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_APIMart.md +125 -125
  129. package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_Fal.md +107 -107
  130. package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_KIE.md +143 -143
  131. package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_APIMart.md +85 -85
  132. package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_Fal.md +83 -83
  133. package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_KIE.md +84 -84
  134. package/docs/model-adaptation/Midjourney/Midjourney_APIMart.md +396 -396
  135. package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_APIMart.md +234 -234
  136. package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_Fal.md +108 -108
  137. package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_KIE.md +111 -111
  138. package/docs/model-adaptation/MiniMax-Speech/MiniMax-Speech_/346/264/276/346/254/247/344/272/221.md +170 -170
  139. package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_APIMart.md +89 -89
  140. package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Fal.md +99 -99
  141. package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Grsai.md +82 -82
  142. package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_KIE.md +70 -70
  143. package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_APIMart.md +79 -79
  144. package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_Grsai.md +65 -65
  145. package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_KIE.md +64 -64
  146. package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_APIMart.md +83 -83
  147. package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Fal.md +89 -89
  148. package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Grsai.md +82 -82
  149. package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_KIE.md +64 -64
  150. package/docs/model-adaptation/Pixelcut-/350/203/214/346/231/257/347/247/273/351/231/244/Pixelcut-/350/203/214/346/231/257/347/247/273/351/231/244_Fal.md +79 -79
  151. package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_APIMart.md +117 -117
  152. package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_Fal.md +84 -84
  153. package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_KIE.md +103 -103
  154. package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_/347/231/276/347/202/274.md +138 -138
  155. package/docs/model-adaptation/Qwen-Image-Edit-2511-/345/244/232/350/247/222/345/272/246/Qwen-Image-Edit-2511-/345/244/232/350/247/222/345/272/246_Fal.md +57 -0
  156. package/docs/model-adaptation/Qwen-MT-Flash/Qwen-MT-Flash_/347/231/276/347/202/274.md +47 -47
  157. package/docs/model-adaptation/Qwen-MT-Lite/Qwen-MT-Lite_/347/231/276/347/202/274.md +39 -39
  158. package/docs/model-adaptation/Qwen-MT-Plus/Qwen-MT-Plus_/347/231/276/347/202/274.md +39 -39
  159. package/docs/model-adaptation/Qwen3-ASR-Flash/Qwen3-ASR-Flash_/347/231/276/347/202/274.md +40 -40
  160. package/docs/model-adaptation/Qwen3-ASR-Flash-2026-02-10/Qwen3-ASR-Flash-2026-02-10_/347/231/276/347/202/274.md +33 -33
  161. package/docs/model-adaptation/Qwen3-ASR-Flash-Filetrans/Qwen3-ASR-Flash-Filetrans_/347/231/276/347/202/274.md +41 -41
  162. package/docs/model-adaptation/Qwen3-ASR-Flash-Realtime/Qwen3-ASR-Flash-Realtime_/347/231/276/347/202/274.md +35 -35
  163. package/docs/model-adaptation/Qwen3-ASR-Flash-Realtime-2026-02-10/Qwen3-ASR-Flash-Realtime-2026-02-10_/347/231/276/347/202/274.md +37 -37
  164. package/docs/model-adaptation/README.md +313 -295
  165. package/docs/model-adaptation/SeedASR-2.0-File/SeedASR-2.0-File_/347/201/253/345/261/261/345/274/225/346/223/216.md +115 -115
  166. package/docs/model-adaptation/SeedASR-2.0-Realtime/SeedASR-2.0-Realtime_/347/201/253/345/261/261/345/274/225/346/223/216.md +143 -143
  167. package/docs/model-adaptation/SeedVR2-/345/233/276/347/211/207/346/224/276/345/244/247/SeedVR2-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +45 -45
  168. package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_APIMart.md +121 -121
  169. package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_Fal.md +97 -97
  170. package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_KIE.md +86 -86
  171. package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_APIMart.md +89 -89
  172. package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_Fal.md +95 -95
  173. package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_KIE.md +78 -78
  174. package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_APIMart.md +89 -89
  175. package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_Fal.md +96 -96
  176. package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_KIE.md +78 -78
  177. package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_APIMart.md +212 -212
  178. package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_Fal.md +94 -94
  179. package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_KIE.md +89 -89
  180. package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_APIMart.md +106 -106
  181. package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_Fal.md +91 -91
  182. package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_KIE.md +89 -89
  183. package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_/347/201/253/345/261/261/345/274/225/346/223/216.md +108 -108
  184. package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_APIMart.md +194 -194
  185. package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_Fal.md +100 -100
  186. package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_KIE.md +141 -141
  187. package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_/347/201/253/345/261/261/345/274/225/346/223/216.md +137 -137
  188. package/docs/model-adaptation/SenseVoiceSmall/SenseVoiceSmall_/347/241/205/345/237/272/346/265/201/345/212/250.md +69 -69
  189. package/docs/model-adaptation/TeleSpeechASR/TeleSpeechASR_/347/241/205/345/237/272/346/265/201/345/212/250.md +72 -72
  190. package/docs/model-adaptation/Topaz-/345/233/276/347/211/207/346/224/276/345/244/247/Topaz-/345/233/276/347/211/207/346/224/276/345/244/247_Fal.md +87 -87
  191. package/docs/model-adaptation/Topaz-/351/200/217/346/230/216/345/233/276/346/224/276/345/244/247/Topaz-/351/200/217/346/230/216/345/233/276/346/224/276/345/244/247_Fal.md +34 -34
  192. package/docs/model-adaptation/Wan-2.5-Preview/Wan-2.5-Preview_/346/264/276/346/254/247/344/272/221.md +82 -82
  193. package/docs/model-adaptation/Wan-2.6/Wan-2.6_/346/264/276/346/254/247/344/272/221.md +84 -84
  194. package/docs/model-adaptation/Wan-2.7/Wan-2.7_/346/264/276/346/254/247/344/272/221.md +122 -122
  195. package/docs/model-adaptation/Whisper-Large-v3/Whisper-Large-v3_Groq.md +76 -76
  196. package/docs/model-adaptation/Whisper-Large-v3-Turbo/Whisper-Large-v3-Turbo_Groq.md +75 -75
  197. package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_APIMart.md +88 -88
  198. package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_Fal.md +95 -95
  199. package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_KIE.md +71 -71
  200. package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/347/231/276/347/202/274.md +122 -122
  201. package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/351/255/224/346/220/255.md +97 -97
  202. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/APIMart.md +238 -238
  203. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Fal.md +172 -172
  204. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Groq.md +121 -121
  205. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Grsai.md +217 -217
  206. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/KIE.md +131 -131
  207. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//345/200/231/351/200/211/344/276/233/345/272/224/345/225/206/350/260/203/347/240/224-/345/233/276/347/211/207/345/267/245/345/205/267.md +151 -151
  208. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//345/277/253/351/200/237/351/200/202/351/205/215/344/276/233/345/272/224/345/225/206.md +65 -65
  209. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//346/264/276/346/254/247/344/272/221.md +147 -138
  210. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/201/253/345/261/261/345/274/225/346/223/216.md +181 -171
  211. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274.md +237 -227
  212. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/241/205/345/237/272/346/265/201/345/212/250.md +110 -88
  213. package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//351/255/224/346/220/255.md +207 -207
  214. package/docs/model-adaptation//346/226/207/346/241/243/351/207/207/351/233/206/346/211/213/345/206/214.md +338 -311
  215. package/docs/model-adaptation//351/200/217/350/247/206/345/217/230/346/215/242//351/200/217/350/247/206/345/217/230/346/215/242_Fal.md +59 -59
  216. package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Electron.md +77 -77
  217. package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Tauri.md +81 -81
  218. package/docs//346/216/245/345/205/245/346/214/207/345/215/227/UXP.md +169 -169
  219. package/docs//346/216/245/345/205/245/346/214/207/345/215/227//344/276/233/345/272/224/345/225/206/345/237/237/345/220/215.md +83 -83
  220. package/docs//346/216/245/345/205/245/346/214/207/345/215/227//351/224/231/350/257/257/345/244/204/347/220/206.md +72 -72
  221. package/examples/form-renderer/README.md +17 -17
  222. package/examples/form-renderer/cli.ts +32 -32
  223. package/examples/form-renderer/index.ts +144 -144
  224. package/examples/form-renderer/package.json +16 -16
  225. package/examples/form-renderer/tsconfig.json +14 -14
  226. package/examples/llm-chat/README.md +32 -32
  227. package/examples/llm-chat/index.ts +100 -100
  228. package/examples/llm-chat/package.json +19 -19
  229. package/examples/llm-chat/tsconfig.json +14 -14
  230. package/examples/minimal-node/README.md +31 -31
  231. package/examples/minimal-node/index.ts +138 -138
  232. package/examples/minimal-node/package.json +17 -17
  233. package/examples/minimal-node/tsconfig.json +14 -14
  234. package/package.json +252 -197
  235. package/dist/tool-packs/fal-multi-angle/models/qwen-image-edit-2509-multiple-angles.model.d.ts +0 -2
  236. package/docs/model-adaptation/Qwen-Image-Edit-2509-/345/244/232/350/247/222/345/272/246/Qwen-Image-Edit-2509-/345/244/232/350/247/222/345/272/246_Fal.md +0 -116
@@ -1,86 +1,86 @@
1
- # Image Apps v2 照片修复(Fal)适配资料
2
-
3
- | 项目 | 内容 |
4
- |---|---|
5
- | 最后更新 | 2026-08-29 |
6
- | 平台 | Fal |
7
- | 展示名 | Photo Restoration |
8
- | API endpoint ID | `fal-ai/image-apps-v2/photo-restoration` |
9
- | 模态 | 单张旧照片 → 单张修复图片 |
10
- | SDK 入口 | `@henjicc/ai-sdk/tool-models/fal/photo-restoration` |
11
- | 工具包 | `@henjicc/ai-sdk/tool-packs/fal-image-utility-tools` |
12
- | 价格 | `$0.04 / image` |
13
- | 登录状态 | 模型页、`llms.txt` 与 OpenAPI 公开;真实调用需要 Fal Key |
14
-
15
- ## 1. 能力与边界
16
-
17
- 官方提供三个可独立开关的修复能力:提升清晰度、修复颜色、消除划痕。端点不接收提示词或修复强度,也没有人脸保真程度、上色风格等控件。
18
-
19
- ## 2. 接口与队列契约
20
-
21
- - 鉴权:`Authorization: Key <FAL_KEY>`
22
- - 直连:`POST https://fal.run/fal-ai/image-apps-v2/photo-restoration`
23
- - 队列提交:`POST https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration`
24
- - 状态:`GET https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}/status`
25
- - 结果:`GET https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}`
26
- - 取消:`PUT https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}/cancel`
27
- - 结果路径:`images[].url`;`images` 必填
28
-
29
- 通用队列状态为 `IN_QUEUE` / `IN_PROGRESS` / `COMPLETED`,`status` / `request_id` 必填。`COMPLETED` 后必须另取结果并校验 `images[].url`;没有模型专属状态或错误码,其余复用 [Fal 供应商队列契约](../供应商/Fal.md#2-队列契约)。
30
-
31
- ## 3. 请求字段
32
-
33
- | 字段 | 类型 | 必填 | 默认 / 范围 | 产品策略 |
34
- |---|---|---|---|---|
35
- | `image_url` | string | 是 | 官方未公布文件限制 | 恰好 1 张已有素材,经 Fal CDN 上传 |
36
- | `enhance_resolution` | boolean | 否 | `true` | 显示并发送 |
37
- | `fix_colors` | boolean | 否 | `true` | 显示并发送 |
38
- | `remove_scratches` | boolean | 否 | `true` | 显示并发送 |
39
- | `aspect_ratio` | `{ratio: enum}` | 否 | 见下方冲突说明;枚举 `1:1` / `16:9` / `9:16` / `4:3` / `3:4` | 复用标准智能比例,按首图就近匹配,显式发送 `{ratio: '...'}` 对象 |
40
-
41
- ### 比例默认值冲突
42
-
43
- - `aspect_ratio` 字段描述写“default: 4:3 for classic photos”。
44
- - 同一份 OpenAPI 的 `AspectRatio.ratio` schema 默认值却是 `1:1`。
45
-
46
- 两处官方资料自相矛盾,不使用供应商隐式默认。SDK 应始终把本地 `smart` 按输入图比例转成具体枚举,再发送对象。
47
-
48
- 三个修复开关全为 `false` 时,官方没有说明服务端行为。产品应在提交前要求至少一项为 `true`,避免支付一次无操作请求;这是产品保守校验,不是官方 API 硬限制。
49
-
50
- ## 4. 请求与响应示例
51
-
52
- ```json
53
- {
54
- "image_url": "https://v3.fal.media/files/.../old-photo.png",
55
- "enhance_resolution": true,
56
- "fix_colors": true,
57
- "remove_scratches": true,
58
- "aspect_ratio": { "ratio": "4:3" }
59
- }
60
- ```
61
-
62
- ```json
63
- {
64
- "images": [
65
- { "url": "https://v3b.fal.media/files/.../restored.png" }
66
- ]
67
- }
68
- ```
69
-
70
- ## 5. 计价与未知项
71
-
72
- - 实时 `llms.txt` 标价 `$0.04 / image`,三个开关不改变单价。
73
- - 静态估价为 `$0.04 / 次`;最终以账户价格和 billing event 为准。
74
- - 官方未给输入格式/尺寸/文件大小上限、精确 4K 输出宽高、延迟 SLA 和人脸/文字保真承诺。
75
- - 付费验收要分别测试黑白上色、褪色修复、划痕消除、低清放大以及三项叠加。
76
- - 该 API 没有 `seed`、负面提示词或 `output_format` 字段,不得发送。
77
-
78
- ## 6. 原始链接索引
79
-
80
- | 内容 | 链接 | 是否需登录 | 核查日期 |
81
- |---|---|---|---|
82
- | 模型页与当前价格 | https://fal.ai/models/fal-ai/image-apps-v2/photo-restoration | 否 | 2026-08-29 |
83
- | 实时字段、默认、示例与价格 | https://fal.ai/models/fal-ai/image-apps-v2/photo-restoration/llms.txt | 否 | 2026-08-29 |
84
- | OpenAPI(对象比例、冲突默认值、必填与响应) | https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/image-apps-v2/photo-restoration | 否 | 2026-08-29 |
85
- | Fal 队列协议 | https://fal.ai/docs/documentation/model-apis/inference/queue | 否 | 2026-08-29 |
86
- | Fal 价格 API | https://fal.ai/docs/platform-apis/v1/models/pricing | 否(调用需 Key) | 2026-08-29 |
1
+ # Image Apps v2 照片修复(Fal)适配资料
2
+
3
+ | 项目 | 内容 |
4
+ |---|---|
5
+ | 最后更新 | 2026-08-29 |
6
+ | 平台 | Fal |
7
+ | 展示名 | Photo Restoration |
8
+ | API endpoint ID | `fal-ai/image-apps-v2/photo-restoration` |
9
+ | 模态 | 单张旧照片 → 单张修复图片 |
10
+ | SDK 入口 | `@henjicc/ai-sdk/tool-models/fal/photo-restoration` |
11
+ | 工具包 | `@henjicc/ai-sdk/tool-packs/fal-image-utility-tools` |
12
+ | 价格 | `$0.04 / image` |
13
+ | 登录状态 | 模型页、`llms.txt` 与 OpenAPI 公开;真实调用需要 Fal Key |
14
+
15
+ ## 1. 能力与边界
16
+
17
+ 官方提供三个可独立开关的修复能力:提升清晰度、修复颜色、消除划痕。端点不接收提示词或修复强度,也没有人脸保真程度、上色风格等控件。
18
+
19
+ ## 2. 接口与队列契约
20
+
21
+ - 鉴权:`Authorization: Key <FAL_KEY>`
22
+ - 直连:`POST https://fal.run/fal-ai/image-apps-v2/photo-restoration`
23
+ - 队列提交:`POST https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration`
24
+ - 状态:`GET https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}/status`
25
+ - 结果:`GET https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}`
26
+ - 取消:`PUT https://queue.fal.run/fal-ai/image-apps-v2/photo-restoration/requests/{request_id}/cancel`
27
+ - 结果路径:`images[].url`;`images` 必填
28
+
29
+ 通用队列状态为 `IN_QUEUE` / `IN_PROGRESS` / `COMPLETED`,`status` / `request_id` 必填。`COMPLETED` 后必须另取结果并校验 `images[].url`;没有模型专属状态或错误码,其余复用 [Fal 供应商队列契约](../供应商/Fal.md#2-队列契约)。
30
+
31
+ ## 3. 请求字段
32
+
33
+ | 字段 | 类型 | 必填 | 默认 / 范围 | 产品策略 |
34
+ |---|---|---|---|---|
35
+ | `image_url` | string | 是 | 官方未公布文件限制 | 恰好 1 张已有素材,经 Fal CDN 上传 |
36
+ | `enhance_resolution` | boolean | 否 | `true` | 显示并发送 |
37
+ | `fix_colors` | boolean | 否 | `true` | 显示并发送 |
38
+ | `remove_scratches` | boolean | 否 | `true` | 显示并发送 |
39
+ | `aspect_ratio` | `{ratio: enum}` | 否 | 见下方冲突说明;枚举 `1:1` / `16:9` / `9:16` / `4:3` / `3:4` | 复用标准智能比例,按首图就近匹配,显式发送 `{ratio: '...'}` 对象 |
40
+
41
+ ### 比例默认值冲突
42
+
43
+ - `aspect_ratio` 字段描述写“default: 4:3 for classic photos”。
44
+ - 同一份 OpenAPI 的 `AspectRatio.ratio` schema 默认值却是 `1:1`。
45
+
46
+ 两处官方资料自相矛盾,不使用供应商隐式默认。SDK 应始终把本地 `smart` 按输入图比例转成具体枚举,再发送对象。
47
+
48
+ 三个修复开关全为 `false` 时,官方没有说明服务端行为。产品应在提交前要求至少一项为 `true`,避免支付一次无操作请求;这是产品保守校验,不是官方 API 硬限制。
49
+
50
+ ## 4. 请求与响应示例
51
+
52
+ ```json
53
+ {
54
+ "image_url": "https://v3.fal.media/files/.../old-photo.png",
55
+ "enhance_resolution": true,
56
+ "fix_colors": true,
57
+ "remove_scratches": true,
58
+ "aspect_ratio": { "ratio": "4:3" }
59
+ }
60
+ ```
61
+
62
+ ```json
63
+ {
64
+ "images": [
65
+ { "url": "https://v3b.fal.media/files/.../restored.png" }
66
+ ]
67
+ }
68
+ ```
69
+
70
+ ## 5. 计价与未知项
71
+
72
+ - 实时 `llms.txt` 标价 `$0.04 / image`,三个开关不改变单价。
73
+ - 静态估价为 `$0.04 / 次`;最终以账户价格和 billing event 为准。
74
+ - 官方未给输入格式/尺寸/文件大小上限、精确 4K 输出宽高、延迟 SLA 和人脸/文字保真承诺。
75
+ - 付费验收要分别测试黑白上色、褪色修复、划痕消除、低清放大以及三项叠加。
76
+ - 该 API 没有 `seed`、负面提示词或 `output_format` 字段,不得发送。
77
+
78
+ ## 6. 原始链接索引
79
+
80
+ | 内容 | 链接 | 是否需登录 | 核查日期 |
81
+ |---|---|---|---|
82
+ | 模型页与当前价格 | https://fal.ai/models/fal-ai/image-apps-v2/photo-restoration | 否 | 2026-08-29 |
83
+ | 实时字段、默认、示例与价格 | https://fal.ai/models/fal-ai/image-apps-v2/photo-restoration/llms.txt | 否 | 2026-08-29 |
84
+ | OpenAPI(对象比例、冲突默认值、必填与响应) | https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/image-apps-v2/photo-restoration | 否 | 2026-08-29 |
85
+ | Fal 队列协议 | https://fal.ai/docs/documentation/model-apis/inference/queue | 否 | 2026-08-29 |
86
+ | Fal 价格 API | https://fal.ai/docs/platform-apis/v1/models/pricing | 否(调用需 Key) | 2026-08-29 |
@@ -1,84 +1,84 @@
1
- # Image Apps v2 重打光(Fal)适配资料
2
-
3
- | 项目 | 内容 |
4
- |---|---|
5
- | 最后更新 | 2026-08-29 |
6
- | 平台 | Fal |
7
- | 展示名 | Relighting |
8
- | API endpoint ID | `fal-ai/image-apps-v2/relighting` |
9
- | 模态 | 单图输入 → 单张重打光图片 |
10
- | SDK 入口 | `@henjicc/ai-sdk/tool-models/fal/relighting` |
11
- | 工具包 | `@henjicc/ai-sdk/tool-packs/fal-image-utility-tools` |
12
- | 价格 | `$0.04 / image` |
13
- | 登录状态 | 模型页、`llms.txt` 与 OpenAPI 公开;真实调用需要 Fal Key |
14
-
15
- ## 1. 能力与产品边界
16
-
17
- 该端点使用固定预设为单张图片重新设计光照,没有提示词、光源坐标、光强、色温或遮罩字段。产品不应将预设宣称为物理精确打光,也不应补造不会进入请求的提示词输入。
18
-
19
- 18 个官方光照预设是:
20
-
21
- `natural` / `studio` / `golden_hour` / `blue_hour` / `dramatic` / `soft` / `hard` / `backlight` / `side_light` / `front_light` / `rim_light` / `sunset` / `sunrise` / `neon` / `candlelight` / `moonlight` / `spotlight` / `ambient`。
22
-
23
- ## 2. 接口与队列契约
24
-
25
- - 鉴权:`Authorization: Key <FAL_KEY>`
26
- - 直连:`POST https://fal.run/fal-ai/image-apps-v2/relighting`
27
- - 队列提交:`POST https://queue.fal.run/fal-ai/image-apps-v2/relighting`
28
- - 状态:`GET https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}/status`
29
- - 结果:`GET https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}`
30
- - 取消:`PUT https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}/cancel`
31
- - 结果路径:`images[].url`;`images` 必填,数组元素只有 `url` 必填
32
-
33
- | 状态 | 字段与语义 | 客户端处理 |
34
- |---|---|---|
35
- | `IN_QUEUE` | `status` / `request_id` 必填;`queue_position` 可选 | 继续轮询,不产生媒体结果 |
36
- | `IN_PROGRESS` | `status` / `request_id` 必填;`logs` / `metrics` 可选 | 继续轮询,可更新进度 |
37
- | `COMPLETED` | 状态终态;官方状态 schema 不代表业务必然成功 | 再取结果,校验 `images[].url`;空数组或缺 URL 按契约失败处理 |
38
-
39
- 模型没有新增队列状态、回调事件或错误码。取消后是否还会看到短暂状态迁移、断线后的保留期和乱序规则,模型 OpenAPI 未说明;实现继续复用 [Fal 供应商队列契约](../供应商/Fal.md#2-队列契约)。
40
-
41
- ## 3. 请求字段
42
-
43
- | 字段 | 类型 | 必填 | 默认 / 范围 | 产品策略 |
44
- |---|---|---|---|---|
45
- | `image_url` | string | 是 | 官方未给文件大小与格式上限 | 恰好 1 张已有素材,由 Fal CDN 上传后填入 |
46
- | `lighting_style` | enum | 否 | `natural`;共18个预设 | 显示并发送 |
47
- | `aspect_ratio` | `{ratio: enum}` | 否 | `ratio` 子字段默认 `1:1`;支持 `1:1` / `16:9` / `9:16` / `4:3` / `3:4` | 复用标准智能比例,按首图就近匹配,发送对象而非字符串 |
48
-
49
- `aspect_ratio` 的描述是“4K 输出比例”。OpenAPI 没有给出各比例的精确像素尺寸,不应在 SDK 中自行硬编一组未经证实的 4K 宽高。
50
-
51
- ## 4. 请求与响应示例
52
-
53
- ```json
54
- {
55
- "image_url": "https://v3.fal.media/files/.../source.png",
56
- "lighting_style": "golden_hour",
57
- "aspect_ratio": { "ratio": "4:3" }
58
- }
59
- ```
60
-
61
- ```json
62
- {
63
- "images": [
64
- { "url": "https://v3b.fal.media/files/.../relit.png" }
65
- ]
66
- }
67
- ```
68
-
69
- ## 5. 计价、适配要点与未知项
70
-
71
- - 实时 `llms.txt` 标价 `$0.04 / image`,不随已选光照预设或比例变化。
72
- - 静态预估为 `$0.04 / 次`;最终以账户价格 API 和 billing event 为准。
73
- - 不定义、不发送 `seed`、负面提示词、`output_format` 或任何文档未声明的字段。
74
- - 官方未给输入分辨率、格式、大小、延迟 SLA 与结果保留期;接入前需用真实请求验证。
75
-
76
- ## 6. 原始链接索引
77
-
78
- | 内容 | 链接 | 是否需登录 | 核查日期 |
79
- |---|---|---|---|
80
- | 模型页与当前价格 | https://fal.ai/models/fal-ai/image-apps-v2/relighting | 否 | 2026-08-29 |
81
- | 实时字段、枚举、示例与价格 | https://fal.ai/models/fal-ai/image-apps-v2/relighting/llms.txt | 否 | 2026-08-29 |
82
- | OpenAPI(对象比例、必填与响应结构) | https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/image-apps-v2/relighting | 否 | 2026-08-29 |
83
- | Fal 队列协议 | https://fal.ai/docs/documentation/model-apis/inference/queue | 否 | 2026-08-29 |
84
- | Fal 价格 API | https://fal.ai/docs/platform-apis/v1/models/pricing | 否(调用需 Key) | 2026-08-29 |
1
+ # Image Apps v2 重打光(Fal)适配资料
2
+
3
+ | 项目 | 内容 |
4
+ |---|---|
5
+ | 最后更新 | 2026-08-29 |
6
+ | 平台 | Fal |
7
+ | 展示名 | Relighting |
8
+ | API endpoint ID | `fal-ai/image-apps-v2/relighting` |
9
+ | 模态 | 单图输入 → 单张重打光图片 |
10
+ | SDK 入口 | `@henjicc/ai-sdk/tool-models/fal/relighting` |
11
+ | 工具包 | `@henjicc/ai-sdk/tool-packs/fal-image-utility-tools` |
12
+ | 价格 | `$0.04 / image` |
13
+ | 登录状态 | 模型页、`llms.txt` 与 OpenAPI 公开;真实调用需要 Fal Key |
14
+
15
+ ## 1. 能力与产品边界
16
+
17
+ 该端点使用固定预设为单张图片重新设计光照,没有提示词、光源坐标、光强、色温或遮罩字段。产品不应将预设宣称为物理精确打光,也不应补造不会进入请求的提示词输入。
18
+
19
+ 18 个官方光照预设是:
20
+
21
+ `natural` / `studio` / `golden_hour` / `blue_hour` / `dramatic` / `soft` / `hard` / `backlight` / `side_light` / `front_light` / `rim_light` / `sunset` / `sunrise` / `neon` / `candlelight` / `moonlight` / `spotlight` / `ambient`。
22
+
23
+ ## 2. 接口与队列契约
24
+
25
+ - 鉴权:`Authorization: Key <FAL_KEY>`
26
+ - 直连:`POST https://fal.run/fal-ai/image-apps-v2/relighting`
27
+ - 队列提交:`POST https://queue.fal.run/fal-ai/image-apps-v2/relighting`
28
+ - 状态:`GET https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}/status`
29
+ - 结果:`GET https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}`
30
+ - 取消:`PUT https://queue.fal.run/fal-ai/image-apps-v2/relighting/requests/{request_id}/cancel`
31
+ - 结果路径:`images[].url`;`images` 必填,数组元素只有 `url` 必填
32
+
33
+ | 状态 | 字段与语义 | 客户端处理 |
34
+ |---|---|---|
35
+ | `IN_QUEUE` | `status` / `request_id` 必填;`queue_position` 可选 | 继续轮询,不产生媒体结果 |
36
+ | `IN_PROGRESS` | `status` / `request_id` 必填;`logs` / `metrics` 可选 | 继续轮询,可更新进度 |
37
+ | `COMPLETED` | 状态终态;官方状态 schema 不代表业务必然成功 | 再取结果,校验 `images[].url`;空数组或缺 URL 按契约失败处理 |
38
+
39
+ 模型没有新增队列状态、回调事件或错误码。取消后是否还会看到短暂状态迁移、断线后的保留期和乱序规则,模型 OpenAPI 未说明;实现继续复用 [Fal 供应商队列契约](../供应商/Fal.md#2-队列契约)。
40
+
41
+ ## 3. 请求字段
42
+
43
+ | 字段 | 类型 | 必填 | 默认 / 范围 | 产品策略 |
44
+ |---|---|---|---|---|
45
+ | `image_url` | string | 是 | 官方未给文件大小与格式上限 | 恰好 1 张已有素材,由 Fal CDN 上传后填入 |
46
+ | `lighting_style` | enum | 否 | `natural`;共18个预设 | 显示并发送 |
47
+ | `aspect_ratio` | `{ratio: enum}` | 否 | `ratio` 子字段默认 `1:1`;支持 `1:1` / `16:9` / `9:16` / `4:3` / `3:4` | 复用标准智能比例,按首图就近匹配,发送对象而非字符串 |
48
+
49
+ `aspect_ratio` 的描述是“4K 输出比例”。OpenAPI 没有给出各比例的精确像素尺寸,不应在 SDK 中自行硬编一组未经证实的 4K 宽高。
50
+
51
+ ## 4. 请求与响应示例
52
+
53
+ ```json
54
+ {
55
+ "image_url": "https://v3.fal.media/files/.../source.png",
56
+ "lighting_style": "golden_hour",
57
+ "aspect_ratio": { "ratio": "4:3" }
58
+ }
59
+ ```
60
+
61
+ ```json
62
+ {
63
+ "images": [
64
+ { "url": "https://v3b.fal.media/files/.../relit.png" }
65
+ ]
66
+ }
67
+ ```
68
+
69
+ ## 5. 计价、适配要点与未知项
70
+
71
+ - 实时 `llms.txt` 标价 `$0.04 / image`,不随已选光照预设或比例变化。
72
+ - 静态预估为 `$0.04 / 次`;最终以账户价格 API 和 billing event 为准。
73
+ - 不定义、不发送 `seed`、负面提示词、`output_format` 或任何文档未声明的字段。
74
+ - 官方未给输入分辨率、格式、大小、延迟 SLA 与结果保留期;接入前需用真实请求验证。
75
+
76
+ ## 6. 原始链接索引
77
+
78
+ | 内容 | 链接 | 是否需登录 | 核查日期 |
79
+ |---|---|---|---|
80
+ | 模型页与当前价格 | https://fal.ai/models/fal-ai/image-apps-v2/relighting | 否 | 2026-08-29 |
81
+ | 实时字段、枚举、示例与价格 | https://fal.ai/models/fal-ai/image-apps-v2/relighting/llms.txt | 否 | 2026-08-29 |
82
+ | OpenAPI(对象比例、必填与响应结构) | https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/image-apps-v2/relighting | 否 | 2026-08-29 |
83
+ | Fal 队列协议 | https://fal.ai/docs/documentation/model-apis/inference/queue | 否 | 2026-08-29 |
84
+ | Fal 价格 API | https://fal.ai/docs/platform-apis/v1/models/pricing | 否(调用需 Key) | 2026-08-29 |
@@ -1,112 +1,112 @@
1
- # Kling 3.0 · APIMart
2
-
3
- | 项目 | 内容 |
4
- |---|---|
5
- | 最后更新 | 2026-08-22 |
6
- | 模态 | 视频 |
7
- | 供应商 | APIMart(聚合平台) |
8
- | 平台模型 ID | `kling-v3` |
9
- | 接口形态 | **异步任务** |
10
- | 文档可见性 | 公开,无需登录 |
11
- | 价格可见性 | 公开,无需登录 |
12
- | 上游官方模型标识 | `kling-v3`(与可灵官方能力地图一致) |
13
-
14
- ## 1. 接入协议
15
-
16
- - **Base URL**:`https://api.apimart.ai`
17
- - **鉴权**:`Authorization: Bearer <API_KEY>`
18
- - **提交**:`POST /v1/videos/generations` → `{ code: 200, data: [{ status: "submitted", task_id }] }`
19
- - **查询**:`GET /v1/tasks/{task_id}`
20
-
21
- ## 2. 能力清单
22
-
23
- 文生视频、图生视频(首帧 / 首尾帧)、有声视频、**多镜头分镜**、**引用元素(主体一致性)**。
24
-
25
- ## 3. 请求参数
26
-
27
- | 字段 | 类型 | 必填 | 默认 | 取值与说明 |
28
- |---|---|---|---|---|
29
- | `model` | string | 必填 | — | `kling-v3` |
30
- | `prompt` | string | 必填 | — | 正向提示词。**建议使用英文提示词**。`multi_shot=true` 时顶层 `prompt` 可省略 |
31
- | `negative_prompt` | string | 可选 | — | 负面提示词。**本项目规则:绝对不显示**,不下发 |
32
- | `mode` | string | 可选 | `std` | `std`(720P)/ `pro`(1080P)/ `4k`(4K 模式) |
33
- | `duration` | integer | 可选 | `5` | **3–15 秒**。必须是纯数字,加引号会报错 |
34
- | `aspect_ratio` | string | 可选 | `16:9` | `16:9`、`9:16`、`1:1`。图生视频时**可能被图片实际比例覆盖** |
35
- | `image_urls` | array | 可选 | — | **最多 2 张**:传 1 张 = 首帧;传 2 张 = 自动分配为首帧 + 尾帧。URL 必须公开可访问、**不能有防盗链** |
36
- | `watermark` | boolean | 可选 | — | 是否添加水印 |
37
- | `audio` | boolean | 可选 | **`false`** | 是否生成有声视频 |
38
- | `multi_shot` | boolean | 可选 | `false` | 是否启用多镜头分镜模式 |
39
- | `shot_type` | string | 条件 | — | `customize`(自定义)/ `intelligence`(智能)。**`multi_shot=true` 时必填** |
40
- | `multi_prompt` | array | 条件 | — | 各分镜信息 `{ index, prompt, duration }`。**`multi_shot=true` 且 `shot_type=customize` 时必填** |
41
- | `element_list` | array | 可选 | — | 引用元素列表,**最多 3 个主体** |
42
- | `nsfw_check` | boolean | 可选 | `false` | 提交前内容审核 |
43
-
44
- ### 多镜头分镜(`multi_prompt`)约束
45
-
46
- - 最多 **6 个**分镜,最少 1 个
47
- - 每个分镜相关内容的最大长度 **≤ 512**
48
- - 每个分镜的时长 **不大于当前任务总时长,且不小于 1**
49
- - **所有分镜时长之和必须等于当前任务总时长**
50
- - `index` 从 1 连续递增
51
-
52
- ### 引用元素(`element_list`)
53
-
54
- 现场创建主体时 `name`、`description`、`element_input_urls` 均必填。
55
- `element_input_urls`:每个主体**至少 2 张、最多 4 张**(第 1 张正面图 + 其余参考图)。
56
- 在 `prompt` 中通过 **`@name`** 引用,例如 `"@element_dog 和 @element_cat 在草地上追逐玩耍"`。
57
-
58
- ### 参数互斥与边界
59
-
60
- - `mode=4k` 在 `kling-v3` 可用
61
- - `image_urls` 最多 2 张
62
- - **仅尾帧输入(只有 `last_frame`)会报错,必须配首帧**
63
- - `multi_shot=true` 时顶层 `prompt` 可省略
64
- - `multi_prompt` 最多 6 个分镜,`index` 从 1 连续递增
65
-
66
- ### 功能支持矩阵(文档给出)
67
-
68
- | 类型 | 功能 | std 5s | std 10s | std 15s | pro 5s | pro 10s |
69
- |---|---|---|---|---|---|---|
70
- | 文生视频 | 视频生成 | ✅ | ✅ | ✅ | ✅ | ✅ |
71
- | 图生视频 | 视频生成 | ✅ | ✅ | ✅ | ✅ | ✅ |
72
- | 图生视频 | 首帧 | ✅ | ✅ | ✅ | ✅ | ✅ |
73
- | 图生视频 | 尾帧 | ✅ | ✅ | ✅ | ✅ | ✅ |
74
-
75
- 系统会根据 `image_urls` 自动判断文生 / 图生模式。
76
-
77
- ## 4. 响应结构
78
-
79
- 提交返回 `{ code, data: [{ status: "submitted", task_id }] }`;轮询 `GET /v1/tasks/{task_id}`,成功后读 `result.videos[]`。
80
-
81
- ## 5. 价格
82
-
83
- 来源:[APIMart 定价中心](https://apimart.ai/zh/pricing) → 视频标签页 `KLING-V3`(2026-08-22,6 个档位,1 Credit ≈ $0.1)。
84
-
85
- | 规格 | 我们的价格 | 官方价 | 节省 |
86
- |---|---|---|---|
87
- | 默认(std 无声) | 0.672 Credits/秒 ≈ **$0.0672/秒** | $0.084 | 20% |
88
- | `sound`(std 有声) | 1.008 Credits/秒 ≈ **$0.1008/秒** | $0.126 | 20% |
89
- | `pro`(1080P 无声) | 0.896 Credits/秒 ≈ **$0.0896/秒** | $0.112 | 20% |
90
- | `pro-sound`(1080P 有声) | 1.344 Credits/秒 ≈ **$0.1344/秒** | $0.168 | 20% |
91
- | `4k`(无声) | 4.2856 Credits/秒 ≈ **$0.42856/秒** | $0.5357 | 20% |
92
- | `4k-sound` | 4.2856 Credits/秒 ≈ **$0.42856/秒** | $0.5357 | 20% |
93
-
94
- ## 6. 适配要点
95
-
96
- - 本项目默认**绝对不显示**:`seed`、负面提示词。APIMart 本接口**有 `negative_prompt`**,必须主动不注册、不下发(无 `seed` 字段)。
97
- - `audio` **默认 `false`**(与 Seedance 的 `generate_audio: true` 相反),且有声比无声贵 33%~50%。
98
- - `duration` 必须以数字类型下发。
99
- - 图生视频时 `aspect_ratio` 可能被图片比例覆盖——UI 上应提示或禁用。
100
- - **多镜头分镜是一整套子能力**:`multi_shot` + `shot_type` + `multi_prompt`,且分镜时长之和必须等于总时长,需要专门的编辑交互。
101
- - **引用元素(主体一致性)是另一套子能力**:每个主体 2–4 张图,prompt 中用 `@name` 引用,最多 3 个主体。
102
- - 只传尾帧会报错,必须配首帧。
103
-
104
- ## 7. 原始链接索引
105
-
106
- | 信息 | 链接 | 是否需登录 |
107
- |---|---|---|
108
- | Kling v3 视频生成 | https://docs.apimart.ai/cn/api-reference/videos/kling-v3/generation | 否 |
109
- | 获取任务状态 | https://docs.apimart.ai/cn/api-reference/tasks/status | 否 |
110
- | 定价中心(视频标签页搜 KLING-V3) | https://apimart.ai/zh/pricing | 否 |
111
- | 可灵官方视频能力地图(仅参考,不适配官方接口) | https://www.klingai.com/document-api/guides/capability-map/video | 否 |
112
- | API Key 管理 | https://apimart.ai/keys | **是** |
1
+ # Kling 3.0 · APIMart
2
+
3
+ | 项目 | 内容 |
4
+ |---|---|
5
+ | 最后更新 | 2026-08-22 |
6
+ | 模态 | 视频 |
7
+ | 供应商 | APIMart(聚合平台) |
8
+ | 平台模型 ID | `kling-v3` |
9
+ | 接口形态 | **异步任务** |
10
+ | 文档可见性 | 公开,无需登录 |
11
+ | 价格可见性 | 公开,无需登录 |
12
+ | 上游官方模型标识 | `kling-v3`(与可灵官方能力地图一致) |
13
+
14
+ ## 1. 接入协议
15
+
16
+ - **Base URL**:`https://api.apimart.ai`
17
+ - **鉴权**:`Authorization: Bearer <API_KEY>`
18
+ - **提交**:`POST /v1/videos/generations` → `{ code: 200, data: [{ status: "submitted", task_id }] }`
19
+ - **查询**:`GET /v1/tasks/{task_id}`
20
+
21
+ ## 2. 能力清单
22
+
23
+ 文生视频、图生视频(首帧 / 首尾帧)、有声视频、**多镜头分镜**、**引用元素(主体一致性)**。
24
+
25
+ ## 3. 请求参数
26
+
27
+ | 字段 | 类型 | 必填 | 默认 | 取值与说明 |
28
+ |---|---|---|---|---|
29
+ | `model` | string | 必填 | — | `kling-v3` |
30
+ | `prompt` | string | 必填 | — | 正向提示词。**建议使用英文提示词**。`multi_shot=true` 时顶层 `prompt` 可省略 |
31
+ | `negative_prompt` | string | 可选 | — | 负面提示词。**本项目规则:绝对不显示**,不下发 |
32
+ | `mode` | string | 可选 | `std` | `std`(720P)/ `pro`(1080P)/ `4k`(4K 模式) |
33
+ | `duration` | integer | 可选 | `5` | **3–15 秒**。必须是纯数字,加引号会报错 |
34
+ | `aspect_ratio` | string | 可选 | `16:9` | `16:9`、`9:16`、`1:1`。图生视频时**可能被图片实际比例覆盖** |
35
+ | `image_urls` | array | 可选 | — | **最多 2 张**:传 1 张 = 首帧;传 2 张 = 自动分配为首帧 + 尾帧。URL 必须公开可访问、**不能有防盗链** |
36
+ | `watermark` | boolean | 可选 | — | 是否添加水印 |
37
+ | `audio` | boolean | 可选 | **`false`** | 是否生成有声视频 |
38
+ | `multi_shot` | boolean | 可选 | `false` | 是否启用多镜头分镜模式 |
39
+ | `shot_type` | string | 条件 | — | `customize`(自定义)/ `intelligence`(智能)。**`multi_shot=true` 时必填** |
40
+ | `multi_prompt` | array | 条件 | — | 各分镜信息 `{ index, prompt, duration }`。**`multi_shot=true` 且 `shot_type=customize` 时必填** |
41
+ | `element_list` | array | 可选 | — | 引用元素列表,**最多 3 个主体** |
42
+ | `nsfw_check` | boolean | 可选 | `false` | 提交前内容审核 |
43
+
44
+ ### 多镜头分镜(`multi_prompt`)约束
45
+
46
+ - 最多 **6 个**分镜,最少 1 个
47
+ - 每个分镜相关内容的最大长度 **≤ 512**
48
+ - 每个分镜的时长 **不大于当前任务总时长,且不小于 1**
49
+ - **所有分镜时长之和必须等于当前任务总时长**
50
+ - `index` 从 1 连续递增
51
+
52
+ ### 引用元素(`element_list`)
53
+
54
+ 现场创建主体时 `name`、`description`、`element_input_urls` 均必填。
55
+ `element_input_urls`:每个主体**至少 2 张、最多 4 张**(第 1 张正面图 + 其余参考图)。
56
+ 在 `prompt` 中通过 **`@name`** 引用,例如 `"@element_dog 和 @element_cat 在草地上追逐玩耍"`。
57
+
58
+ ### 参数互斥与边界
59
+
60
+ - `mode=4k` 在 `kling-v3` 可用
61
+ - `image_urls` 最多 2 张
62
+ - **仅尾帧输入(只有 `last_frame`)会报错,必须配首帧**
63
+ - `multi_shot=true` 时顶层 `prompt` 可省略
64
+ - `multi_prompt` 最多 6 个分镜,`index` 从 1 连续递增
65
+
66
+ ### 功能支持矩阵(文档给出)
67
+
68
+ | 类型 | 功能 | std 5s | std 10s | std 15s | pro 5s | pro 10s |
69
+ |---|---|---|---|---|---|---|
70
+ | 文生视频 | 视频生成 | ✅ | ✅ | ✅ | ✅ | ✅ |
71
+ | 图生视频 | 视频生成 | ✅ | ✅ | ✅ | ✅ | ✅ |
72
+ | 图生视频 | 首帧 | ✅ | ✅ | ✅ | ✅ | ✅ |
73
+ | 图生视频 | 尾帧 | ✅ | ✅ | ✅ | ✅ | ✅ |
74
+
75
+ 系统会根据 `image_urls` 自动判断文生 / 图生模式。
76
+
77
+ ## 4. 响应结构
78
+
79
+ 提交返回 `{ code, data: [{ status: "submitted", task_id }] }`;轮询 `GET /v1/tasks/{task_id}`,成功后读 `result.videos[]`。
80
+
81
+ ## 5. 价格
82
+
83
+ 来源:[APIMart 定价中心](https://apimart.ai/zh/pricing) → 视频标签页 `KLING-V3`(2026-08-22,6 个档位,1 Credit ≈ $0.1)。
84
+
85
+ | 规格 | 我们的价格 | 官方价 | 节省 |
86
+ |---|---|---|---|
87
+ | 默认(std 无声) | 0.672 Credits/秒 ≈ **$0.0672/秒** | $0.084 | 20% |
88
+ | `sound`(std 有声) | 1.008 Credits/秒 ≈ **$0.1008/秒** | $0.126 | 20% |
89
+ | `pro`(1080P 无声) | 0.896 Credits/秒 ≈ **$0.0896/秒** | $0.112 | 20% |
90
+ | `pro-sound`(1080P 有声) | 1.344 Credits/秒 ≈ **$0.1344/秒** | $0.168 | 20% |
91
+ | `4k`(无声) | 4.2856 Credits/秒 ≈ **$0.42856/秒** | $0.5357 | 20% |
92
+ | `4k-sound` | 4.2856 Credits/秒 ≈ **$0.42856/秒** | $0.5357 | 20% |
93
+
94
+ ## 6. 适配要点
95
+
96
+ - 本项目默认**绝对不显示**:`seed`、负面提示词。APIMart 本接口**有 `negative_prompt`**,必须主动不注册、不下发(无 `seed` 字段)。
97
+ - `audio` **默认 `false`**(与 Seedance 的 `generate_audio: true` 相反),且有声比无声贵 33%~50%。
98
+ - `duration` 必须以数字类型下发。
99
+ - 图生视频时 `aspect_ratio` 可能被图片比例覆盖——UI 上应提示或禁用。
100
+ - **多镜头分镜是一整套子能力**:`multi_shot` + `shot_type` + `multi_prompt`,且分镜时长之和必须等于总时长,需要专门的编辑交互。
101
+ - **引用元素(主体一致性)是另一套子能力**:每个主体 2–4 张图,prompt 中用 `@name` 引用,最多 3 个主体。
102
+ - 只传尾帧会报错,必须配首帧。
103
+
104
+ ## 7. 原始链接索引
105
+
106
+ | 信息 | 链接 | 是否需登录 |
107
+ |---|---|---|
108
+ | Kling v3 视频生成 | https://docs.apimart.ai/cn/api-reference/videos/kling-v3/generation | 否 |
109
+ | 获取任务状态 | https://docs.apimart.ai/cn/api-reference/tasks/status | 否 |
110
+ | 定价中心(视频标签页搜 KLING-V3) | https://apimart.ai/zh/pricing | 否 |
111
+ | 可灵官方视频能力地图(仅参考,不适配官方接口) | https://www.klingai.com/document-api/guides/capability-map/video | 否 |
112
+ | API Key 管理 | https://apimart.ai/keys | **是** |