@henjicc/ai-sdk 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +275 -211
- package/README.md +580 -577
- package/dist/capabilities/speech-recognition/bailian/module.js +40 -26
- package/dist/capabilities/speech-recognition/bailian/parse.js +9 -2
- package/dist/capabilities/speech-recognition/bailian/presets.d.ts +9 -1
- package/dist/capabilities/speech-recognition/bailian/presets.js +7 -2
- package/dist/capabilities/speech-recognition/bailian/realtime/presets.d.ts +2 -1
- package/dist/capabilities/speech-recognition/bailian/realtime/presets.js +2 -0
- package/dist/capabilities/speech-recognition/bailian/types.d.ts +2 -0
- package/dist/capabilities/speech-recognition/bailian/upload.js +11 -58
- package/dist/capabilities/speech-recognition/index.d.ts +5 -0
- package/dist/capabilities/speech-recognition/siliconflow/presets.d.ts +2 -3
- package/dist/capabilities/speech-recognition/siliconflow/presets.js +0 -2
- package/dist/capabilities/translation/bailian/types.d.ts +3 -0
- package/dist/capabilities/translation/bailian/types.js +6 -4
- package/dist/catalog/apimart/flux-3-image.model.d.ts +3 -0
- package/dist/catalog/apimart/flux-3-image.model.js +62 -0
- package/dist/catalog/apimart/flux-3-video.model.d.ts +3 -0
- package/dist/catalog/apimart/flux-3-video.model.js +120 -0
- package/dist/catalog/apimart/gemini-omni-1.2-flash.model.d.ts +3 -0
- package/dist/catalog/apimart/gemini-omni-1.2-flash.model.js +175 -0
- package/dist/catalog/apimart/gemini-omni-flash.model.js +30 -37
- package/dist/catalog/apimart/gpt-image-2.5.model.js +1 -1
- package/dist/catalog/apimart/gpt-image-2.6.model.d.ts +3 -0
- package/dist/catalog/apimart/gpt-image-2.6.model.js +103 -0
- package/dist/catalog/apimart/gpt-image-2.model.js +1 -1
- package/dist/catalog/apimart/grok-imagine-2.0.model.js +1 -1
- package/dist/catalog/apimart/grok-imagine-video-1.5.model.d.ts +3 -0
- package/dist/catalog/apimart/grok-imagine-video-1.5.model.js +85 -0
- package/dist/catalog/apimart/happyhorse-1.1.model.d.ts +3 -0
- package/dist/catalog/apimart/happyhorse-1.1.model.js +78 -0
- package/dist/catalog/apimart/kling-3.0-omni.model.js +12 -2
- package/dist/catalog/apimart/kling-3.0-turbo.model.js +5 -2
- package/dist/catalog/apimart/kling-3.0.model.js +1 -1
- package/dist/catalog/apimart/kling-4.0.model.d.ts +3 -0
- package/dist/catalog/apimart/kling-4.0.model.js +149 -0
- package/dist/catalog/apimart/midjourney-video.model.js +31 -32
- package/dist/catalog/apimart/midjourney.model.js +11 -1
- package/dist/catalog/apimart/minimax-h3-max.model.d.ts +3 -0
- package/dist/catalog/apimart/minimax-h3-max.model.js +101 -0
- package/dist/catalog/apimart/minimax-h3.model.js +8 -3
- package/dist/catalog/apimart/nano-banana-2-lite.model.js +1 -1
- package/dist/catalog/apimart/nano-banana-2.1.model.d.ts +2 -0
- package/dist/catalog/apimart/nano-banana-2.1.model.js +49 -0
- package/dist/catalog/apimart/nano-banana-2.model.js +1 -1
- package/dist/catalog/apimart/nano-banana-pro.model.js +1 -1
- package/dist/catalog/apimart/qwen-image-3.0.model.js +1 -1
- package/dist/catalog/apimart/seedance-2.0-fast.model.js +1 -1
- package/dist/catalog/apimart/seedance-2.0-mini.model.js +4 -4
- package/dist/catalog/apimart/seedance-2.0.model.js +1 -1
- package/dist/catalog/apimart/seedance-2.5.model.js +27 -5
- package/dist/catalog/apimart/seedream-5.0-flash.model.d.ts +3 -0
- package/dist/catalog/apimart/seedream-5.0-flash.model.js +52 -0
- package/dist/catalog/apimart/seedream-5.0-lite.model.js +4 -4
- package/dist/catalog/apimart/seedream-5.0-pro.model.js +1 -1
- package/dist/catalog/apimart/veo-3.1.model.d.ts +3 -0
- package/dist/catalog/apimart/veo-3.1.model.js +132 -0
- package/dist/catalog/apimart/wan-2.7-image.model.d.ts +3 -0
- package/dist/catalog/apimart/wan-2.7-image.model.js +80 -0
- package/dist/catalog/apimart/wan-3.0.model.d.ts +3 -0
- package/dist/catalog/apimart/wan-3.0.model.js +101 -0
- package/dist/catalog/apimart/z-image-turbo.model.js +1 -1
- package/dist/catalog/audio/tts-common.d.ts +2 -1
- package/dist/catalog/audio/tts-common.js +5 -1
- package/dist/catalog/bailian/cosyvoice-v3.5.model.js +1 -1
- package/dist/catalog/bailian/minimax-h3.model.d.ts +3 -0
- package/dist/catalog/bailian/minimax-h3.model.js +95 -0
- package/dist/catalog/bailian/minimax-speech-2.8.model.js +1 -1
- package/dist/catalog/bailian/qwen-audio-3.1-tts-flash.model.js +14 -3
- package/dist/catalog/bailian/qwen-audio-3.1-tts-plus.model.d.ts +2 -0
- package/dist/catalog/bailian/qwen-audio-3.1-tts-plus.model.js +44 -0
- package/dist/catalog/bailian/qwen-image-3.0.model.js +1 -1
- package/dist/catalog/bailian/wan-3.0.model.d.ts +3 -0
- package/dist/catalog/bailian/wan-3.0.model.js +104 -0
- package/dist/catalog/bailian/z-image-turbo.model.js +1 -1
- package/dist/catalog/consumer-contract.d.ts +16 -1
- package/dist/catalog/consumer-contract.js +31 -0
- package/dist/catalog/continuation.d.ts +20 -0
- package/dist/catalog/continuation.js +41 -0
- package/dist/catalog/fal/bria-creative-upscale.model.js +1 -1
- package/dist/catalog/fal/eleven-v3-tts.model.js +1 -1
- package/dist/catalog/fal/eleven-v4-tts.model.d.ts +2 -0
- package/dist/catalog/fal/eleven-v4-tts.model.js +38 -0
- package/dist/catalog/fal/flux-3-video.model.d.ts +2 -0
- package/dist/catalog/fal/flux-3-video.model.js +187 -0
- package/dist/catalog/fal/flux-3.model.d.ts +2 -0
- package/dist/catalog/fal/flux-3.model.js +69 -0
- package/dist/catalog/fal/gemini-omni-1.2-flash.model.d.ts +2 -0
- package/dist/catalog/fal/gemini-omni-1.2-flash.model.js +129 -0
- package/dist/catalog/fal/gemini-omni-flash.model.js +1 -1
- package/dist/catalog/fal/gpt-image-2.5.model.js +1 -1
- package/dist/catalog/fal/gpt-image-2.6.model.d.ts +2 -0
- package/dist/catalog/fal/gpt-image-2.6.model.js +97 -0
- package/dist/catalog/fal/gpt-image-2.model.js +1 -1
- package/dist/catalog/fal/grok-imagine-2.0.model.js +1 -1
- package/dist/catalog/fal/grok-imagine-video-1.5.model.d.ts +2 -0
- package/dist/catalog/fal/grok-imagine-video-1.5.model.js +121 -0
- package/dist/catalog/fal/hailuo-02.model.js +8 -4
- package/dist/catalog/fal/hailuo-2.3.model.js +1 -1
- package/dist/catalog/fal/ic-light-v2.model.js +1 -1
- package/dist/catalog/fal/ideogram-upscale.model.js +1 -1
- package/dist/catalog/fal/kling-3.0-omni.model.js +1 -1
- package/dist/catalog/fal/kling-3.0-turbo.model.js +5 -2
- package/dist/catalog/fal/kling-3.0.model.js +4 -1
- package/dist/catalog/fal/kling-4.0-flash.model.d.ts +2 -0
- package/dist/catalog/fal/kling-4.0-flash.model.js +132 -0
- package/dist/catalog/fal/kling-4.0.model.d.ts +2 -0
- package/dist/catalog/fal/kling-4.0.model.js +169 -0
- package/dist/catalog/fal/kling-image-o1.model.js +1 -1
- package/dist/catalog/fal/kling-video-o1.model.js +18 -7
- package/dist/catalog/fal/kling-video-v2.6-pro.model.js +3 -2
- package/dist/catalog/fal/ltx-2.3.model.d.ts +2 -0
- package/dist/catalog/fal/ltx-2.3.model.js +223 -0
- package/dist/catalog/fal/ltx-2.model.js +2 -1
- package/dist/catalog/fal/minimax-h3-max.model.d.ts +2 -0
- package/dist/catalog/fal/minimax-h3-max.model.js +132 -0
- package/dist/catalog/fal/minimax-h3.model.js +3 -4
- package/dist/catalog/fal/minimax-speech-2.8.model.js +1 -1
- package/dist/catalog/fal/nano-banana-2.1.model.d.ts +2 -0
- package/dist/catalog/fal/nano-banana-2.1.model.js +68 -0
- package/dist/catalog/fal/nano-banana-2.model.js +1 -1
- package/dist/catalog/fal/nano-banana-pro.model.js +1 -1
- package/dist/catalog/fal/nano-banana.model.js +1 -1
- package/dist/catalog/fal/pixverse-v5.5.model.js +9 -4
- package/dist/catalog/fal/qwen-image-3.0.model.js +2 -2
- package/dist/catalog/fal/qwen3-tts-1.7b.model.js +4 -3
- package/dist/catalog/fal/seedance-2.0-fast.model.js +1 -1
- package/dist/catalog/fal/seedance-2.0-mini.model.js +1 -1
- package/dist/catalog/fal/seedance-2.0.model.js +1 -1
- package/dist/catalog/fal/seedance-2.5.model.js +5 -2
- package/dist/catalog/fal/seedance.model.js +3 -2
- package/dist/catalog/fal/seedream-5.0-lite.model.js +1 -1
- package/dist/catalog/fal/seedream-5.0-pro.model.js +1 -1
- package/dist/catalog/fal/seedream-v4.5.model.js +1 -1
- package/dist/catalog/fal/seedream-v4.model.js +1 -1
- package/dist/catalog/fal/seedvr2-image-upscale.model.js +1 -1
- package/dist/catalog/fal/topaz-image-upscale.model.js +1 -1
- package/dist/catalog/fal/topaz-transparent-upscale.model.js +1 -1
- package/dist/catalog/fal/utils/klingV4.d.ts +17 -0
- package/dist/catalog/fal/utils/klingV4.js +33 -0
- package/dist/catalog/fal/veo-3.1.model.js +5 -2
- package/dist/catalog/fal/vidu-q2.model.js +20 -8
- package/dist/catalog/fal/wan-2.5-preview.model.js +4 -1
- package/dist/catalog/fal/wan-3.0.model.d.ts +2 -0
- package/dist/catalog/fal/wan-3.0.model.js +135 -0
- package/dist/catalog/fal/z-image-turbo.model.js +10 -9
- package/dist/catalog/grsai/gpt-image-2.5.model.js +13 -31
- package/dist/catalog/grsai/gpt-image-2.6.model.d.ts +2 -0
- package/dist/catalog/grsai/gpt-image-2.6.model.js +37 -0
- package/dist/catalog/grsai/gpt-image-2.model.js +5 -2
- package/dist/catalog/grsai/nano-banana-2-lite.model.js +1 -1
- package/dist/catalog/grsai/nano-banana-2.1.model.d.ts +2 -0
- package/dist/catalog/grsai/nano-banana-2.1.model.js +29 -0
- package/dist/catalog/grsai/nano-banana-2.model.js +1 -1
- package/dist/catalog/grsai/nano-banana-pro.model.js +1 -1
- package/dist/catalog/grsai/wan-3.0.model.d.ts +2 -0
- package/dist/catalog/grsai/wan-3.0.model.js +78 -0
- package/dist/catalog/index.d.ts +1 -0
- package/dist/catalog/index.js +205 -124
- package/dist/catalog/kie/eleven-v3-dialogue.model.js +1 -1
- package/dist/catalog/kie/flux-3-klein.model.d.ts +2 -0
- package/dist/catalog/kie/flux-3-klein.model.js +58 -0
- package/dist/catalog/kie/gemini-3.1-flash-tts.model.js +7 -4
- package/dist/catalog/kie/gemini-3.8-flash-lite-tts.model.d.ts +2 -0
- package/dist/catalog/kie/gemini-3.8-flash-lite-tts.model.js +11 -0
- package/dist/catalog/kie/gemini-3.8-flash-tts.model.d.ts +2 -0
- package/dist/catalog/kie/gemini-3.8-flash-tts.model.js +11 -0
- package/dist/catalog/kie/gemini-omni-video.model.js +8 -30
- package/dist/catalog/kie/gemini38Tts.d.ts +3 -0
- package/dist/catalog/kie/gemini38Tts.js +40 -0
- package/dist/catalog/kie/gpt-image-2.5.model.js +1 -1
- package/dist/catalog/kie/gpt-image-2.6.model.d.ts +2 -0
- package/dist/catalog/kie/gpt-image-2.6.model.js +87 -0
- package/dist/catalog/kie/gpt-image-2.model.js +8 -12
- package/dist/catalog/kie/grok-imagine-2.0.model.js +1 -1
- package/dist/catalog/kie/grok-imagine-video-1.5.model.d.ts +2 -0
- package/dist/catalog/kie/grok-imagine-video-1.5.model.js +52 -0
- package/dist/catalog/kie/grok-imagine-video.model.js +7 -3
- package/dist/catalog/kie/grok-imagine.model.js +4 -2
- package/dist/catalog/kie/hailuo-02.model.js +6 -4
- package/dist/catalog/kie/hailuo-2-3.model.js +1 -1
- package/dist/catalog/kie/happyhorse-1.1.model.js +5 -2
- package/dist/catalog/kie/kling-3.0-omni.model.js +51 -23
- package/dist/catalog/kie/kling-3.0-turbo.model.js +1 -1
- package/dist/catalog/kie/kling-3.0.model.js +1 -8
- package/dist/catalog/kie/kling-4.0-flash.model.d.ts +2 -0
- package/dist/catalog/kie/kling-4.0-flash.model.js +16 -0
- package/dist/catalog/kie/kling-4.0.model.d.ts +2 -0
- package/dist/catalog/kie/kling-4.0.model.js +17 -0
- package/dist/catalog/kie/kling-v2-6.model.js +1 -1
- package/dist/catalog/kie/kling40.d.ts +21 -0
- package/dist/catalog/kie/kling40.js +129 -0
- package/dist/catalog/kie/minimax-h3.model.js +16 -21
- package/dist/catalog/kie/nano-banana-2-lite.model.js +1 -1
- package/dist/catalog/kie/nano-banana-2.1.model.d.ts +2 -0
- package/dist/catalog/kie/nano-banana-2.1.model.js +34 -0
- package/dist/catalog/kie/nano-banana-2.model.js +2 -2
- package/dist/catalog/kie/nano-banana-pro.model.js +1 -1
- package/dist/catalog/kie/qwen-image-3.0.model.js +2 -10
- package/dist/catalog/kie/seedance-1.5-pro.model.js +2 -1
- package/dist/catalog/kie/seedance-2.0-fast.model.js +5 -1
- package/dist/catalog/kie/seedance-2.0-mini.model.js +5 -1
- package/dist/catalog/kie/seedance-2.0.model.js +5 -1
- package/dist/catalog/kie/seedance-2.5.model.js +10 -20
- package/dist/catalog/kie/seedance-v1.model.js +8 -4
- package/dist/catalog/kie/seedream-4.0.model.js +1 -1
- package/dist/catalog/kie/seedream-4.5.model.js +1 -1
- package/dist/catalog/kie/seedream-5.0-lite.model.js +1 -1
- package/dist/catalog/kie/seedream-5.0-pro.model.js +1 -1
- package/dist/catalog/kie/wan-3.0-prime.model.d.ts +2 -0
- package/dist/catalog/kie/wan-3.0-prime.model.js +15 -0
- package/dist/catalog/kie/wan-3.0.model.d.ts +2 -0
- package/dist/catalog/kie/wan-3.0.model.js +15 -0
- package/dist/catalog/kie/wan30.d.ts +10 -0
- package/dist/catalog/kie/wan30.js +78 -0
- package/dist/catalog/kie/z-image.model.js +1 -1
- package/dist/catalog/modelscope/flux-1-krea-dev.model.js +4 -2
- package/dist/catalog/modelscope/majicmix-realistic.model.js +3 -2
- package/dist/catalog/modelscope/modelscope-custom.model.js +3 -2
- package/dist/catalog/modelscope/qwen-image-2512.model.d.ts +5 -0
- package/dist/catalog/modelscope/{qwen-image.model.js → qwen-image-2512.model.js} +11 -8
- package/dist/catalog/modelscope/qwen-image-edit-2511.model.d.ts +5 -0
- package/dist/catalog/modelscope/{qwen-image-edit-2509.model.js → qwen-image-edit-2511.model.js} +9 -7
- package/dist/catalog/modelscope/sdxl-14-ckpt.model.js +3 -2
- package/dist/catalog/modelscope/utils.js +2 -2
- package/dist/catalog/modelscope/z-image-turbo.model.js +3 -2
- package/dist/catalog/ppio/kling-3.0.model.js +4 -1
- package/dist/catalog/ppio/minimax-speech.model.js +2 -1
- package/dist/catalog/shared/mediaPresence.d.ts +8 -1
- package/dist/catalog/shared/mediaPresence.js +21 -1
- package/dist/catalog/shared/nanoBanana21.d.ts +11 -0
- package/dist/catalog/shared/nanoBanana21.js +30 -0
- package/dist/catalog/shared/shotList.d.ts +31 -0
- package/dist/catalog/shared/shotList.js +48 -0
- package/dist/catalog/shared/subjectElements.d.ts +36 -0
- package/dist/catalog/shared/subjectElements.js +93 -0
- package/dist/catalog/siliconflow/moss-ttsd-0.5.model.js +1 -1
- package/dist/catalog/validate.js +14 -1
- package/dist/catalog/volcengine/seedance-2.0-fast.model.d.ts +2 -0
- package/dist/catalog/volcengine/seedance-2.0-fast.model.js +11 -0
- package/dist/catalog/volcengine/seedance-2.0-mini.model.d.ts +2 -0
- package/dist/catalog/volcengine/seedance-2.0-mini.model.js +11 -0
- package/dist/catalog/volcengine/seedance-2.0.model.d.ts +2 -0
- package/dist/catalog/volcengine/seedance-2.0.model.js +11 -0
- package/dist/catalog/volcengine/seedance-2.5.model.d.ts +2 -0
- package/dist/catalog/volcengine/seedance-2.5.model.js +11 -0
- package/dist/catalog/volcengine/seedance.d.ts +17 -0
- package/dist/catalog/volcengine/seedance.js +192 -0
- package/dist/catalog/volcengine/seedream-5.0-lite.model.js +2 -1
- package/dist/catalog/volcengine/seedream-5.0.js +1 -1
- package/dist/catalog/volcengine-speech/seed-icl-2.0.model.d.ts +1 -0
- package/dist/catalog/volcengine-speech/seed-icl-2.0.model.js +52 -10
- package/dist/catalog/volcengine-speech/seed-tts-2.0-voices.d.ts +2 -0
- package/dist/catalog/volcengine-speech/seed-tts-2.0-voices.js +438 -0
- package/dist/catalog/volcengine-speech/seed-tts-2.0.model.js +4 -4
- package/dist/discovery/index.js +13 -6
- package/dist/generation/core.d.ts +6 -0
- package/dist/generation/core.js +10 -2
- package/dist/index.d.ts +8 -0
- package/dist/index.js +9 -0
- package/dist/llm/bigmodel/preset.js +2 -1
- package/dist/llm/bigmodel/profiles.js +0 -6
- package/dist/llm/chat.d.ts +8 -0
- package/dist/llm/chat.js +18 -2
- package/dist/llm/chatTypes.d.ts +6 -0
- package/dist/llm/defaults.d.ts +2 -2
- package/dist/llm/defaults.js +3 -3
- package/dist/llm/groq/preset.js +18 -2
- package/dist/llm/modelCatalog.d.ts +9 -2
- package/dist/llm/modelCatalog.js +17 -4
- package/dist/llm/modelCatalogEntries.d.ts +2 -0
- package/dist/llm/modelCatalogEntries.js +197 -42
- package/dist/llm/providerPresets.d.ts +3 -0
- package/dist/llm/providerPresets.js +145 -32
- package/dist/llm/providerReasoningRequest.js +28 -11
- package/dist/llm/siliconflow/index.js +1 -1
- package/dist/llm/siliconflow/preset.js +30 -0
- package/dist/llm/types.d.ts +6 -0
- package/dist/packs/models/{ppio/wan-2.5-preview.d.ts → apimart/flux-3-image.d.ts} +1 -1
- package/dist/packs/models/apimart/flux-3-image.js +7 -0
- package/dist/packs/models/apimart/flux-3-video.d.ts +6 -0
- package/dist/packs/models/apimart/flux-3-video.js +7 -0
- package/dist/packs/models/apimart/gemini-omni-1.2-flash.d.ts +6 -0
- package/dist/packs/models/apimart/gemini-omni-1.2-flash.js +7 -0
- package/dist/packs/models/{modelscope/qwen-image.d.ts → apimart/gpt-image-2.6.d.ts} +1 -1
- package/dist/packs/models/apimart/gpt-image-2.6.js +7 -0
- package/dist/packs/models/apimart/grok-imagine-video-1.5.d.ts +6 -0
- package/dist/packs/models/apimart/grok-imagine-video-1.5.js +7 -0
- package/dist/packs/models/apimart/happyhorse-1.1.d.ts +6 -0
- package/dist/packs/models/apimart/happyhorse-1.1.js +7 -0
- package/dist/packs/models/apimart/kling-4.0.d.ts +6 -0
- package/dist/packs/models/apimart/kling-4.0.js +7 -0
- package/dist/packs/models/apimart/minimax-h3-max.d.ts +6 -0
- package/dist/packs/models/apimart/minimax-h3-max.js +7 -0
- package/dist/packs/models/{ppio/minimax-hailuo-2.3.d.ts → apimart/nano-banana-2.1.d.ts} +1 -1
- package/dist/packs/models/{ppio/minimax-hailuo-2.3.js → apimart/nano-banana-2.1.js} +4 -4
- package/dist/packs/models/apimart/seedream-5.0-flash.d.ts +6 -0
- package/dist/packs/models/apimart/seedream-5.0-flash.js +7 -0
- package/dist/packs/models/apimart/veo-3.1.d.ts +6 -0
- package/dist/packs/models/apimart/veo-3.1.js +7 -0
- package/dist/packs/models/apimart/wan-2.7-image.d.ts +6 -0
- package/dist/packs/models/apimart/wan-2.7-image.js +7 -0
- package/dist/packs/models/apimart/wan-3.0.d.ts +6 -0
- package/dist/packs/models/apimart/wan-3.0.js +7 -0
- package/dist/packs/models/bailian/cosyvoice-v3.5.js +1 -1
- package/dist/packs/models/bailian/minimax-h3.d.ts +6 -0
- package/dist/packs/models/bailian/minimax-h3.js +7 -0
- package/dist/packs/models/bailian/minimax-speech-2.8.js +1 -1
- package/dist/packs/models/bailian/qwen-audio-3.1-tts-flash.js +1 -1
- package/dist/packs/models/bailian/qwen-audio-3.1-tts-plus.d.ts +6 -0
- package/dist/packs/models/bailian/qwen-audio-3.1-tts-plus.js +7 -0
- package/dist/packs/models/bailian/qwen-image-3.0.js +1 -1
- package/dist/packs/models/bailian/wan-3.0.d.ts +6 -0
- package/dist/packs/models/bailian/wan-3.0.js +7 -0
- package/dist/packs/models/bailian/z-image-turbo.js +1 -1
- package/dist/packs/models/fal/eleven-v4-tts.d.ts +6 -0
- package/dist/packs/models/{ppio/wan-2.5-preview.js → fal/eleven-v4-tts.js} +4 -4
- package/dist/packs/models/fal/flux-3-video.d.ts +6 -0
- package/dist/packs/models/fal/flux-3-video.js +7 -0
- package/dist/packs/models/{ppio/wan-2.6.d.ts → fal/flux-3.d.ts} +1 -1
- package/dist/packs/models/{ppio/wan-2.6.js → fal/flux-3.js} +4 -4
- package/dist/packs/models/fal/gemini-omni-1.2-flash.d.ts +6 -0
- package/dist/packs/models/fal/gemini-omni-1.2-flash.js +7 -0
- package/dist/packs/models/fal/gpt-image-2.6.d.ts +6 -0
- package/dist/packs/models/fal/gpt-image-2.6.js +7 -0
- package/dist/packs/models/fal/grok-imagine-video-1.5.d.ts +6 -0
- package/dist/packs/models/fal/grok-imagine-video-1.5.js +7 -0
- package/dist/packs/models/fal/kling-4.0-flash.d.ts +6 -0
- package/dist/packs/models/fal/kling-4.0-flash.js +7 -0
- package/dist/packs/models/fal/kling-4.0.d.ts +6 -0
- package/dist/packs/models/{ppio/wan-2.7.js → fal/kling-4.0.js} +4 -4
- package/dist/packs/models/{ppio/wan-2.7.d.ts → fal/ltx-2.3.d.ts} +1 -1
- package/dist/packs/models/fal/ltx-2.3.js +7 -0
- package/dist/packs/models/fal/minimax-h3-max.d.ts +6 -0
- package/dist/packs/models/fal/minimax-h3-max.js +7 -0
- package/dist/packs/models/fal/nano-banana-2.1.d.ts +6 -0
- package/dist/packs/models/fal/nano-banana-2.1.js +7 -0
- package/dist/packs/models/fal/wan-3.0.d.ts +6 -0
- package/dist/packs/models/fal/wan-3.0.js +7 -0
- package/dist/packs/models/grsai/gpt-image-2.6.d.ts +6 -0
- package/dist/packs/models/grsai/gpt-image-2.6.js +7 -0
- package/dist/packs/models/grsai/nano-banana-2.1.d.ts +6 -0
- package/dist/packs/models/grsai/nano-banana-2.1.js +7 -0
- package/dist/packs/models/grsai/wan-3.0.d.ts +6 -0
- package/dist/packs/models/grsai/wan-3.0.js +7 -0
- package/dist/packs/models/kie/flux-3-klein.d.ts +6 -0
- package/dist/packs/models/kie/flux-3-klein.js +7 -0
- package/dist/packs/models/kie/gemini-3.8-flash-lite-tts.d.ts +6 -0
- package/dist/packs/models/kie/gemini-3.8-flash-lite-tts.js +7 -0
- package/dist/packs/models/kie/{eleven-turbo-2.5-tts.d.ts → gemini-3.8-flash-tts.d.ts} +1 -1
- package/dist/packs/models/kie/{eleven-turbo-2.5-tts.js → gemini-3.8-flash-tts.js} +1 -1
- package/dist/packs/models/kie/gpt-image-2.6.d.ts +6 -0
- package/dist/packs/models/kie/gpt-image-2.6.js +7 -0
- package/dist/packs/models/kie/grok-imagine-video-1.5.d.ts +6 -0
- package/dist/packs/models/kie/grok-imagine-video-1.5.js +7 -0
- package/dist/packs/models/kie/kling-4.0-flash.d.ts +6 -0
- package/dist/packs/models/kie/kling-4.0-flash.js +7 -0
- package/dist/packs/models/kie/kling-4.0.d.ts +6 -0
- package/dist/packs/models/kie/kling-4.0.js +7 -0
- package/dist/packs/models/kie/nano-banana-2.1.d.ts +6 -0
- package/dist/packs/models/kie/nano-banana-2.1.js +7 -0
- package/dist/packs/models/kie/wan-3.0-prime.d.ts +6 -0
- package/dist/packs/models/kie/wan-3.0-prime.js +7 -0
- package/dist/packs/models/kie/wan-3.0.d.ts +6 -0
- package/dist/packs/models/kie/wan-3.0.js +7 -0
- package/dist/packs/models/modelscope/flux-1-krea-dev.js +1 -1
- package/dist/packs/models/modelscope/majicmix-realistic.js +1 -1
- package/dist/packs/models/modelscope/modelscope-custom.js +1 -1
- package/dist/packs/models/modelscope/qwen-image-2512.d.ts +6 -0
- package/dist/packs/models/modelscope/{qwen-image.js → qwen-image-2512.js} +2 -2
- package/dist/packs/models/modelscope/{qwen-image-edit-2509.d.ts → qwen-image-edit-2511.d.ts} +1 -1
- package/dist/packs/models/modelscope/{qwen-image-edit-2509.js → qwen-image-edit-2511.js} +2 -2
- package/dist/packs/models/modelscope/sdxl-14-ckpt.js +1 -1
- package/dist/packs/models/modelscope/z-image-turbo.js +1 -1
- package/dist/packs/models/volcengine/seedance-2.0-fast.d.ts +6 -0
- package/dist/packs/models/volcengine/seedance-2.0-fast.js +7 -0
- package/dist/packs/models/volcengine/seedance-2.0-mini.d.ts +6 -0
- package/dist/packs/models/volcengine/seedance-2.0-mini.js +7 -0
- package/dist/packs/models/volcengine/seedance-2.0.d.ts +6 -0
- package/dist/packs/models/volcengine/seedance-2.0.js +7 -0
- package/dist/packs/models/volcengine/seedance-2.5.d.ts +6 -0
- package/dist/packs/models/volcengine/seedance-2.5.js +7 -0
- package/dist/packs/models/volcengine/seedream-5.0-flash.js +1 -1
- package/dist/packs/models/volcengine/seedream-5.0-lite.js +1 -1
- package/dist/packs/models/volcengine/seedream-5.0-pro.js +1 -1
- package/dist/packs/provider-adapters/bailian.js +1 -1
- package/dist/packs/provider-adapters/modelscope.js +1 -1
- package/dist/packs/provider-adapters/volcengine.js +1 -1
- package/dist/packs/provider-packs/apimart.d.ts +1 -1
- package/dist/packs/provider-packs/apimart.js +35 -22
- package/dist/packs/provider-packs/bailian.d.ts +1 -1
- package/dist/packs/provider-packs/bailian.js +8 -5
- package/dist/packs/provider-packs/fal.d.ts +1 -1
- package/dist/packs/provider-packs/fal.js +52 -40
- package/dist/packs/provider-packs/grsai.d.ts +1 -1
- package/dist/packs/provider-packs/grsai.js +8 -5
- package/dist/packs/provider-packs/kie.d.ts +1 -1
- package/dist/packs/provider-packs/kie.js +41 -32
- package/dist/packs/provider-packs/modelscope.js +2 -2
- package/dist/packs/provider-packs/ppio.d.ts +1 -1
- package/dist/packs/provider-packs/ppio.js +2 -6
- package/dist/packs/provider-packs/volcengine.d.ts +1 -1
- package/dist/packs/provider-packs/volcengine.js +8 -4
- package/dist/pricing/index.d.ts +1 -0
- package/dist/pricing/index.js +1 -0
- package/dist/pricing/mediaContext.d.ts +6 -1
- package/dist/pricing/mediaContext.js +12 -5
- package/dist/pricing/tokenPricing.d.ts +36 -0
- package/dist/pricing/tokenPricing.js +26 -0
- package/dist/providers/bailian.d.ts +1 -1
- package/dist/providers/bailian.js +71 -4
- package/dist/providers/fal.js +11 -1
- package/dist/providers/helpers.d.ts +1 -1
- package/dist/providers/helpers.js +17 -5
- package/dist/providers/kie.js +16 -5
- package/dist/providers/metadata.js +2 -2
- package/dist/providers/openai-speech.d.ts +6 -0
- package/dist/providers/openai-speech.js +31 -0
- package/dist/providers/providerAccessErrors.d.ts +3 -0
- package/dist/providers/providerAccessErrors.js +73 -0
- package/dist/providers/siliconflow.js +2 -27
- package/dist/providers/volcengine-speech.d.ts +1 -1
- package/dist/providers/volcengine-speech.js +31 -8
- package/dist/providers/volcengine-voice-clone.d.ts +3 -0
- package/dist/providers/volcengine-voice-clone.js +138 -0
- package/dist/providers/volcengine.d.ts +1 -1
- package/dist/providers/volcengine.js +89 -11
- package/dist/runtime/retry.js +3 -0
- package/dist/tool-packs/fal-erase/models/bria-eraser.model.js +1 -1
- package/dist/tool-packs/fal-erase/models/finegrain-eraser.model.js +1 -1
- package/dist/tool-packs/fal-erase/models/flux-pro-erase.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/control-light.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/outpaint.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/photo-restoration.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/pixelcut-background-removal.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/product-photography.model.js +1 -1
- package/dist/tool-packs/fal-image-utilities/models/relighting.model.js +1 -1
- package/dist/tool-packs/fal-multi-angle/models/flux-2-multiple-angles.model.js +1 -1
- package/dist/tool-packs/fal-multi-angle/models/perspective-change.model.js +1 -1
- package/dist/tool-packs/fal-multi-angle/models/qwen-image-edit-2511-multiple-angles.model.js +1 -1
- package/dist/types/model.d.ts +68 -12
- package/dist/types/model.js +3 -0
- package/dist/types/modelTags.d.ts +142 -0
- package/dist/types/modelTags.js +44 -0
- package/dist/types/runtime.d.ts +3 -0
- package/dist/types/speechTimings.d.ts +15 -0
- package/dist/types/speechTimings.js +1 -0
- package/dist/upload/apimart-upload.d.ts +1 -1
- package/dist/upload/apimart-upload.js +37 -15
- package/dist/upload/bailian-oss-upload.d.ts +32 -0
- package/dist/upload/bailian-oss-upload.js +74 -0
- package/dist/upload/{fal-legacy.js → fal-host-fetch.js} +2 -2
- package/dist/upload/fal-transport.d.ts +6 -0
- package/dist/upload/fal-transport.js +2 -1
- package/dist/upload/index.d.ts +2 -2
- package/dist/upload/index.js +4 -7
- package/dist/upload/kie-upload.d.ts +1 -1
- package/dist/upload/kie-upload.js +34 -12
- package/dist/upload/media-binary.js +1 -0
- package/dist/upload/media-fields.js +7 -2
- package/dist/upload/preprocess-core.d.ts +2 -0
- package/dist/upload/preprocess-core.js +2 -0
- package/dist/upload/preprocess.d.ts +1 -1
- package/dist/upload/preprocess.js +12 -3
- package/dist/upload/provider-preprocessors/apimart.d.ts +1 -1
- package/dist/upload/provider-preprocessors/apimart.js +13 -5
- package/dist/upload/provider-preprocessors/bailian.d.ts +8 -0
- package/dist/upload/provider-preprocessors/bailian.js +45 -0
- package/dist/upload/provider-preprocessors/kie.d.ts +1 -1
- package/dist/upload/provider-preprocessors/kie.js +26 -9
- package/dist/upload/provider-preprocessors/ppio.d.ts +1 -2
- package/dist/upload/provider-preprocessors/ppio.js +2 -29
- package/dist/upload/provider-preprocessors/public-host.d.ts +5 -0
- package/dist/upload/provider-preprocessors/public-host.js +7 -0
- package/dist/upload/provider-preprocessors/volcengine.d.ts +5 -0
- package/dist/upload/provider-preprocessors/volcengine.js +10 -0
- package/dist/upload/public-host-upload.d.ts +7 -0
- package/dist/upload/public-host-upload.js +55 -0
- package/dist/upload/upload-response.js +12 -7
- package/docs/README.md +26 -26
- package/docs/consumers.md +150 -124
- package/docs/llm-adaptation/README.md +180 -166
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/DeepSeek.md +108 -104
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/Kimi.md +94 -76
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206/MiniMax.md +89 -84
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//345/260/217/347/261/263MiMo.md +126 -126
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//346/231/272/350/260/261GLM.md +238 -234
- 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 +131 -87
- package/docs/llm-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274Qwen.md +112 -84
- 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
- package/docs/model-adaptation/Bria-Eraser/Bria-Eraser_Fal.md +32 -32
- 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
- package/docs/model-adaptation/ControlLight/ControlLight_Fal.md +85 -85
- package/docs/model-adaptation/Eleven-v4/Eleven-v4_Fal.md +49 -0
- 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
- package/docs/model-adaptation/FLUX-3/FLUX-3_APIMart.md +65 -0
- package/docs/model-adaptation/FLUX-3/FLUX-3_Fal.md +48 -0
- package/docs/model-adaptation/FLUX-3-Klein/FLUX-3-Klein_KIE.md +38 -0
- package/docs/model-adaptation/FLUX-3-Video/FLUX-3-Video_APIMart.md +84 -0
- package/docs/model-adaptation/FLUX-3-Video/FLUX-3-Video_Fal.md +80 -0
- package/docs/model-adaptation/Finegrain-Eraser/Finegrain-Eraser_Fal.md +31 -31
- package/docs/model-adaptation/Flux-Pro-Erase/Flux-Pro-Erase_Fal.md +34 -34
- package/docs/model-adaptation/Fun-ASR/Fun-ASR_/347/231/276/347/202/274.md +47 -47
- package/docs/model-adaptation/Fun-ASR-Flash-2026-06-15/Fun-ASR-Flash-2026-06-15_/347/231/276/347/202/274.md +45 -45
- package/docs/model-adaptation/Fun-ASR-Realtime/Fun-ASR-Realtime_/347/231/276/347/202/274.md +57 -57
- 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
- package/docs/model-adaptation/GLM-5.3-Flash/GLM-5.3-Flash_/346/231/272/350/260/261.md +217 -213
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_APIMart.md +173 -173
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Fal.md +94 -94
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_Grsai.md +138 -137
- package/docs/model-adaptation/GPT-Image-2/GPT-Image-2_KIE.md +97 -93
- package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_APIMart.md +66 -66
- package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_Fal.md +55 -55
- package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_Grsai.md +59 -53
- package/docs/model-adaptation/GPT-Image-2.5/GPT-Image-2.5_KIE.md +55 -55
- package/docs/model-adaptation/GPT-Image-2.6/GPT-Image-2.6_APIMart.md +101 -0
- package/docs/model-adaptation/GPT-Image-2.6/GPT-Image-2.6_Fal.md +55 -0
- package/docs/model-adaptation/GPT-Image-2.6/GPT-Image-2.6_Grsai.md +32 -0
- package/docs/model-adaptation/GPT-Image-2.6/GPT-Image-2.6_KIE.md +51 -0
- package/docs/model-adaptation/GPT-OSS-20B/GPT-OSS-20B_Groq.md +62 -62
- package/docs/model-adaptation/Gemini-3.8-Flash-Lite-TTS/Gemini-3.8-Flash-Lite-TTS_KIE.md +22 -0
- package/docs/model-adaptation/Gemini-3.8-Flash-TTS/Gemini-3.8-Flash-TTS_KIE.md +38 -0
- package/docs/model-adaptation/Gemini-Omni-1.2-Flash/Gemini-Omni-1.2-Flash_APIMart.md +79 -0
- package/docs/model-adaptation/Gemini-Omni-1.2-Flash/Gemini-Omni-1.2-Flash_Fal.md +60 -0
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_APIMart.md +131 -124
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_Fal.md +84 -84
- package/docs/model-adaptation/Gemini-Omni-Flash/Gemini-Omni-Flash_KIE.md +132 -129
- package/docs/model-adaptation/Grok-Imagine/Grok-Imagine_KIE.md +38 -36
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_APIMart.md +250 -250
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_Fal.md +84 -84
- package/docs/model-adaptation/Grok-Imagine-2.0/Grok-Imagine-2.0_KIE.md +105 -105
- package/docs/model-adaptation/Grok-Imagine-Video-1.5/Grok-Imagine-Video-1.5_APIMart.md +68 -0
- package/docs/model-adaptation/Grok-Imagine-Video-1.5/Grok-Imagine-Video-1.5_Fal.md +47 -0
- package/docs/model-adaptation/Grok-Imagine-Video-1.5/Grok-Imagine-Video-1.5_KIE.md +37 -0
- package/docs/model-adaptation/Hailuo-02/Hailuo-02_Fal.md +95 -93
- package/docs/model-adaptation/Hailuo-02/Hailuo-02_KIE.md +58 -56
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_Fal.md +88 -88
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_KIE.md +51 -51
- package/docs/model-adaptation/HappyHorse-1.1/HappyHorse-1.1_APIMart.md +66 -0
- package/docs/model-adaptation/HappyHorse-1.1/HappyHorse-1.1_KIE.md +31 -27
- package/docs/model-adaptation/IC-Light-v2/IC-Light-v2_Fal.md +99 -99
- 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
- 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
- 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
- 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
- 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
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_APIMart.md +112 -112
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_Fal.md +91 -89
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_KIE.md +106 -106
- package/docs/model-adaptation/Kling-3.0/Kling-3.0_/346/264/276/346/254/247/344/272/221.md +120 -119
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_APIMart.md +130 -125
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_Fal.md +107 -107
- package/docs/model-adaptation/Kling-3.0-Omni/Kling-3.0-Omni_KIE.md +148 -143
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_APIMart.md +88 -85
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_Fal.md +86 -83
- package/docs/model-adaptation/Kling-3.0-Turbo/Kling-3.0-Turbo_KIE.md +84 -84
- package/docs/model-adaptation/Kling-4.0/Kling-4.0_APIMart.md +76 -0
- package/docs/model-adaptation/Kling-4.0/Kling-4.0_Fal.md +115 -0
- package/docs/model-adaptation/Kling-4.0/Kling-4.0_KIE.md +61 -0
- package/docs/model-adaptation/Kling-4.0-Flash/Kling-4.0-Flash_Fal.md +55 -0
- package/docs/model-adaptation/Kling-4.0-Flash/Kling-4.0-Flash_KIE.md +33 -0
- package/docs/model-adaptation/LTX-2.3/LTX-2.3_Fal.md +121 -0
- package/docs/model-adaptation/Midjourney/Midjourney_APIMart.md +402 -396
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_APIMart.md +237 -234
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_Fal.md +112 -108
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_KIE.md +118 -111
- package/docs/model-adaptation/MiniMax-H3/MiniMax-H3_/347/231/276/347/202/274.md +65 -0
- package/docs/model-adaptation/MiniMax-H3-Max/MiniMax-H3-Max_APIMart.md +78 -0
- package/docs/model-adaptation/MiniMax-H3-Max/MiniMax-H3-Max_Fal.md +62 -0
- package/docs/model-adaptation/MiniMax-Speech/MiniMax-Speech_/346/264/276/346/254/247/344/272/221.md +170 -170
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_APIMart.md +89 -89
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Fal.md +99 -99
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_Grsai.md +82 -82
- package/docs/model-adaptation/Nano-Banana-2/Nano-Banana-2_KIE.md +72 -70
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_APIMart.md +79 -79
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_Grsai.md +65 -65
- package/docs/model-adaptation/Nano-Banana-2-Lite/Nano-Banana-2-Lite_KIE.md +64 -64
- package/docs/model-adaptation/Nano-Banana-2.1/Nano-Banana-2.1_APIMart.md +35 -0
- package/docs/model-adaptation/Nano-Banana-2.1/Nano-Banana-2.1_Fal.md +37 -0
- package/docs/model-adaptation/Nano-Banana-2.1/Nano-Banana-2.1_Grsai.md +35 -0
- package/docs/model-adaptation/Nano-Banana-2.1/Nano-Banana-2.1_KIE.md +36 -0
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_APIMart.md +83 -83
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Fal.md +89 -89
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_Grsai.md +82 -82
- package/docs/model-adaptation/Nano-Banana-Pro/Nano-Banana-Pro_KIE.md +64 -64
- 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
- package/docs/model-adaptation/Qwen-Audio-3.1-TTS-Plus/Qwen-Audio-3.1-TTS-Plus_/347/231/276/347/202/274.md +59 -0
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_APIMart.md +117 -117
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_Fal.md +85 -84
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_KIE.md +103 -103
- package/docs/model-adaptation/Qwen-Image-3.0/Qwen-Image-3.0_/347/231/276/347/202/274.md +138 -138
- 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 -57
- package/docs/model-adaptation/Qwen-MT-Flash/Qwen-MT-Flash_/347/231/276/347/202/274.md +68 -68
- package/docs/model-adaptation/Qwen-MT-Lite/Qwen-MT-Lite_/347/231/276/347/202/274.md +40 -40
- package/docs/model-adaptation/Qwen-MT-Plus/Qwen-MT-Plus_/347/231/276/347/202/274.md +40 -40
- package/docs/model-adaptation/Qwen3-ASR-Flash/Qwen3-ASR-Flash_/347/231/276/347/202/274.md +44 -44
- package/docs/model-adaptation/Qwen3-ASR-Flash-2026-02-10/Qwen3-ASR-Flash-2026-02-10_/347/231/276/347/202/274.md +37 -37
- package/docs/model-adaptation/Qwen3-ASR-Flash-Filetrans/Qwen3-ASR-Flash-Filetrans_/347/231/276/347/202/274.md +45 -45
- package/docs/model-adaptation/Qwen3-ASR-Flash-Realtime/Qwen3-ASR-Flash-Realtime_/347/231/276/347/202/274.md +58 -58
- 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
- package/docs/model-adaptation/README.md +371 -328
- package/docs/model-adaptation/Seed-ICL-2.0/Seed-ICL-2.0_/347/201/253/345/261/261/345/274/225/346/223/216.md +65 -0
- 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
- 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 +147 -147
- 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
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_APIMart.md +121 -121
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_Fal.md +97 -97
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_KIE.md +87 -86
- package/docs/model-adaptation/Seedance-2.0/Seedance-2.0_/347/201/253/345/261/261/345/274/225/346/223/216.md +101 -0
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_APIMart.md +89 -89
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_Fal.md +95 -95
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_KIE.md +79 -78
- package/docs/model-adaptation/Seedance-2.0-Fast/Seedance-2.0-Fast_/347/201/253/345/261/261/345/274/225/346/223/216.md +98 -0
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_APIMart.md +93 -89
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_Fal.md +96 -96
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_KIE.md +79 -78
- package/docs/model-adaptation/Seedance-2.0-Mini/Seedance-2.0-Mini_/347/201/253/345/261/261/345/274/225/346/223/216.md +98 -0
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_APIMart.md +217 -212
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_Fal.md +98 -94
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_KIE.md +94 -89
- package/docs/model-adaptation/Seedance-2.5/Seedance-2.5_/347/201/253/345/261/261/345/274/225/346/223/216.md +102 -0
- package/docs/model-adaptation/Seedream-5.0-Flash/Seedream-5.0-Flash_APIMart.md +64 -0
- package/docs/model-adaptation/Seedream-5.0-Flash/Seedream-5.0-Flash_/347/201/253/345/261/261/345/274/225/346/223/216.md +18 -18
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_APIMart.md +113 -106
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_Fal.md +91 -91
- package/docs/model-adaptation/Seedream-5.0-Lite/Seedream-5.0-Lite_KIE.md +89 -89
- 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 +110 -108
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_APIMart.md +194 -194
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_Fal.md +100 -100
- package/docs/model-adaptation/Seedream-5.0-Pro/Seedream-5.0-Pro_KIE.md +141 -141
- 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
- package/docs/model-adaptation/SenseVoiceSmall/SenseVoiceSmall_/347/241/205/345/237/272/346/265/201/345/212/250.md +73 -73
- package/docs/model-adaptation/TTS-/345/244/232/344/276/233/345/272/224/345/225/206-2026-09.md +52 -6
- package/docs/model-adaptation/TTS-/346/227/266/351/227/264/346/210/263-2026-10.md +36 -0
- 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
- 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
- package/docs/model-adaptation/Veo-3.1/Veo-3.1_APIMart.md +90 -0
- package/docs/model-adaptation/Wan-2.7-Image/Wan-2.7-Image_APIMart.md +81 -0
- package/docs/model-adaptation/Wan-3.0/Wan-3.0_APIMart.md +74 -0
- package/docs/model-adaptation/Wan-3.0/Wan-3.0_Fal.md +60 -0
- package/docs/model-adaptation/Wan-3.0/Wan-3.0_Grsai.md +35 -0
- package/docs/model-adaptation/Wan-3.0/Wan-3.0_KIE.md +38 -0
- package/docs/model-adaptation/Wan-3.0/Wan-3.0_/347/231/276/347/202/274.md +96 -0
- package/docs/model-adaptation/Wan-3.0-Prime/Wan-3.0-Prime_KIE.md +20 -0
- package/docs/model-adaptation/Whisper-Large-v3/Whisper-Large-v3_Groq.md +80 -80
- package/docs/model-adaptation/Whisper-Large-v3-Turbo/Whisper-Large-v3-Turbo_Groq.md +79 -79
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_APIMart.md +88 -88
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_Fal.md +103 -95
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_KIE.md +71 -71
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/347/231/276/347/202/274.md +122 -122
- package/docs/model-adaptation/Z-Image-Turbo/Z-Image-Turbo_/351/255/224/346/220/255.md +99 -97
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/APIMart.md +240 -240
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Fal.md +190 -172
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Groq.md +136 -121
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/Grsai.md +217 -217
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206/KIE.md +159 -131
- 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
- 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
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//346/264/276/346/254/247/344/272/221.md +170 -147
- 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 +191 -183
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//347/231/276/347/202/274.md +339 -282
- 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 +180 -153
- package/docs/model-adaptation//344/276/233/345/272/224/345/225/206//351/255/224/346/220/255.md +205 -207
- package/docs/model-adaptation//346/226/207/346/241/243/351/207/207/351/233/206/346/211/213/345/206/214.md +339 -338
- 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
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Electron.md +77 -77
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/Tauri.md +81 -81
- package/docs//346/216/245/345/205/245/346/214/207/345/215/227/UXP.md +169 -169
- 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
- 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
- package/examples/form-renderer/README.md +17 -17
- package/examples/form-renderer/cli.ts +32 -32
- package/examples/form-renderer/index.ts +144 -144
- package/examples/form-renderer/package.json +16 -16
- package/examples/form-renderer/tsconfig.json +14 -14
- package/examples/llm-chat/README.md +38 -38
- package/examples/llm-chat/index.ts +100 -100
- package/examples/llm-chat/package.json +19 -19
- package/examples/llm-chat/tsconfig.json +14 -14
- package/examples/minimal-node/README.md +31 -31
- package/examples/minimal-node/index.ts +138 -138
- package/examples/minimal-node/package.json +17 -17
- package/examples/minimal-node/tsconfig.json +14 -14
- package/package.json +259 -258
- package/dist/catalog/grsai/gptImage25Sizes.d.ts +0 -1
- package/dist/catalog/grsai/gptImage25Sizes.js +0 -76
- package/dist/catalog/kie/eleven-turbo-2.5-tts.model.d.ts +0 -2
- package/dist/catalog/kie/eleven-turbo-2.5-tts.model.js +0 -29
- package/dist/catalog/modelscope/qwen-image-edit-2509.model.d.ts +0 -5
- package/dist/catalog/modelscope/qwen-image.model.d.ts +0 -5
- package/dist/catalog/ppio/minimax-hailuo-2.3.model.d.ts +0 -7
- package/dist/catalog/ppio/minimax-hailuo-2.3.model.js +0 -114
- package/dist/catalog/ppio/wan-2.5-preview.model.d.ts +0 -7
- package/dist/catalog/ppio/wan-2.5-preview.model.js +0 -198
- package/dist/catalog/ppio/wan-2.6.model.d.ts +0 -7
- package/dist/catalog/ppio/wan-2.6.model.js +0 -206
- package/dist/catalog/ppio/wan-2.7.model.d.ts +0 -2
- package/dist/catalog/ppio/wan-2.7.model.js +0 -373
- package/docs/model-adaptation/Hailuo-2.3/Hailuo-2.3_/346/264/276/346/254/247/344/272/221.md +0 -70
- package/docs/model-adaptation/TeleSpeechASR/TeleSpeechASR_/347/241/205/345/237/272/346/265/201/345/212/250.md +0 -76
- package/docs/model-adaptation/Wan-2.5-Preview/Wan-2.5-Preview_/346/264/276/346/254/247/344/272/221.md +0 -82
- package/docs/model-adaptation/Wan-2.6/Wan-2.6_/346/264/276/346/254/247/344/272/221.md +0 -84
- package/docs/model-adaptation/Wan-2.7/Wan-2.7_/346/264/276/346/254/247/344/272/221.md +0 -122
- /package/dist/upload/{fal-legacy.d.ts → fal-host-fetch.d.ts} +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { defineModel } from "../defineModel.js";
|
|
2
|
+
import { hasUploadedImage, resolveUploadedAudioDurationSeconds, resolveUploadedAudioSources, resolveUploadedImageSources, resolveUploadedVideoSources } from "../shared/mediaPresence.js";
|
|
3
|
+
// 价格与字段来源:docs/model-adaptation/LTX-2.3/LTX-2.3_Fal.md(Fal 模型页与 OpenAPI,2026-11-07 读取)
|
|
4
|
+
const RATES = {
|
|
5
|
+
fast: { '1080p': 0.06, '1440p': 0.12, '2160p': 0.24 },
|
|
6
|
+
pro: { '1080p': 0.08, '1440p': 0.16, '2160p': 0.32 }
|
|
7
|
+
};
|
|
8
|
+
// 快速档 12–20 秒只支持 1080p + 25fps,其余组合最长 10 秒。
|
|
9
|
+
const LONG_DURATIONS = [12, 14, 16, 18, 20];
|
|
10
|
+
// 音频生视频:输出视频跟随输入音频长度,音频须为 2–20 秒;读不到时长时按最长 20 秒估,宁高勿低。
|
|
11
|
+
const AUDIO_MIN_SECONDS = 2;
|
|
12
|
+
const AUDIO_MAX_SECONDS = 20;
|
|
13
|
+
function mode(params) {
|
|
14
|
+
return ['video-extension', 'retake-video', 'audio-to-video'].includes(String(params.falLtx23Mode)) ? String(params.falLtx23Mode) : 'text-image-to-video';
|
|
15
|
+
}
|
|
16
|
+
const showsAspectRatio = (params) => ['text-image-to-video', 'audio-to-video'].includes(mode(params));
|
|
17
|
+
function choice(value, values, fallback) {
|
|
18
|
+
return values.includes(value) ? value : fallback;
|
|
19
|
+
}
|
|
20
|
+
function clampSeconds(value, min, max, fallback) {
|
|
21
|
+
const number = Number(value);
|
|
22
|
+
return Number.isFinite(number) ? Math.min(max, Math.max(min, number)) : fallback;
|
|
23
|
+
}
|
|
24
|
+
export const falLtx23Model = defineModel({
|
|
25
|
+
meta: {
|
|
26
|
+
id: 'fal-ai-ltx-2.3', canonicalModelId: 'ltx-2.3', seriesId: 'ltx', seriesRank: 2.3,
|
|
27
|
+
provider: 'fal', type: 'video',
|
|
28
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'video-to-video', 'video-extension', 'audio-to-video'],
|
|
29
|
+
polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 40 }
|
|
30
|
+
},
|
|
31
|
+
inputLimits: {
|
|
32
|
+
images: { max: 2 }, videos: { max: 0 }, audios: { max: 0 },
|
|
33
|
+
rules: [
|
|
34
|
+
{ when: 'falLtx23Mode === "video-extension"', images: { max: 0 }, videos: { exact: 1 } },
|
|
35
|
+
{ when: 'falLtx23Mode === "retake-video"', images: { max: 0 }, videos: { exact: 1 } },
|
|
36
|
+
{ when: 'falLtx23Mode === "audio-to-video"', images: { max: 1 }, videos: { max: 0 }, audios: { exact: 1 } }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
requirements: [
|
|
40
|
+
{
|
|
41
|
+
id: 'fal-ltx-2.3-source-video',
|
|
42
|
+
when: 'falLtx23Mode === "video-extension" || falLtx23Mode === "retake-video"',
|
|
43
|
+
require: { videos: { exact: 1 } },
|
|
44
|
+
message: { title: '视频必需', message: '延长视频和视频重拍需要上传 1 个视频', type: 'warning' }
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
params: [
|
|
48
|
+
{
|
|
49
|
+
id: 'falLtx23Mode', type: 'dropdown', order: 1,
|
|
50
|
+
default: 'text-image-to-video',
|
|
51
|
+
options: [{ value: 'text-image-to-video' }, { value: 'video-extension' }, { value: 'retake-video' }, { value: 'audio-to-video' }]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'falLtx23AspectRatio', type: 'dropdown', order: 2,
|
|
55
|
+
default: 'smart',
|
|
56
|
+
visible: { condition: showsAspectRatio },
|
|
57
|
+
options: [{ value: 'smart' }, { value: '16:9' }, { value: '9:16' }]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'falLtx23Resolution', type: 'dropdown', order: 3,
|
|
61
|
+
default: '1080p',
|
|
62
|
+
visible: { condition: (params) => mode(params) === 'text-image-to-video' },
|
|
63
|
+
options: [{ value: '1080p' }, { value: '1440p' }, { value: '2160p' }]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'falLtx23Duration', type: 'dropdown', order: 4,
|
|
67
|
+
default: 6,
|
|
68
|
+
visible: { condition: (params) => mode(params) === 'text-image-to-video' },
|
|
69
|
+
options: [6, 8, 10, ...LONG_DURATIONS].map((value) => ({ value }))
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'falLtx23ExtendDuration', type: 'number', order: 5,
|
|
73
|
+
default: 5, min: 2, max: 20, step: 1,
|
|
74
|
+
visible: { condition: (params) => mode(params) === 'video-extension' }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'falLtx23ExtendDirection', type: 'dropdown', order: 6,
|
|
78
|
+
default: 'end',
|
|
79
|
+
visible: { condition: (params) => mode(params) === 'video-extension' },
|
|
80
|
+
options: [{ value: 'end' }, { value: 'start' }]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'falLtx23RetakeStartTime', type: 'number', order: 7,
|
|
84
|
+
default: 0, min: 0, max: 20, step: 0.5,
|
|
85
|
+
visible: { condition: (params) => mode(params) === 'retake-video' }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'falLtx23RetakeDuration', type: 'number', order: 8,
|
|
89
|
+
default: 5, min: 2, max: 20, step: 0.5,
|
|
90
|
+
visible: { condition: (params) => mode(params) === 'retake-video' }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: 'falLtx23RetakeMode', type: 'dropdown', order: 9,
|
|
94
|
+
default: 'replace_audio_and_video',
|
|
95
|
+
visible: { condition: (params) => mode(params) === 'retake-video' },
|
|
96
|
+
options: [{ value: 'replace_audio_and_video' }, { value: 'replace_video' }, { value: 'replace_audio' }]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'falLtx23Fps', type: 'dropdown', order: 10,
|
|
100
|
+
default: 25,
|
|
101
|
+
visible: { condition: (params) => mode(params) === 'text-image-to-video' },
|
|
102
|
+
options: [24, 25, 48, 50].map((value) => ({ value }))
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 'falLtx23GenerateAudio', type: 'switch', order: 11,
|
|
106
|
+
default: true,
|
|
107
|
+
visible: { condition: (params) => mode(params) === 'text-image-to-video' }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'falLtx23FastMode', type: 'switch', order: 12,
|
|
111
|
+
default: true,
|
|
112
|
+
visible: { condition: (params) => mode(params) === 'text-image-to-video' }
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
endpoints: {
|
|
116
|
+
selector: async (params) => {
|
|
117
|
+
const current = mode(params);
|
|
118
|
+
if (current === 'video-extension')
|
|
119
|
+
return 'fal-ai/ltx-2.3/extend-video';
|
|
120
|
+
if (current === 'retake-video')
|
|
121
|
+
return 'fal-ai/ltx-2.3/retake-video';
|
|
122
|
+
if (current === 'audio-to-video')
|
|
123
|
+
return 'fal-ai/ltx-2.3/audio-to-video';
|
|
124
|
+
const route = hasUploadedImage(params) ? 'image-to-video' : 'text-to-video';
|
|
125
|
+
return params.falLtx23FastMode === false ? `fal-ai/ltx-2.3/${route}` : `fal-ai/ltx-2.3/${route}/fast`;
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
request: {
|
|
129
|
+
builder: (params) => {
|
|
130
|
+
const prompt = typeof params.prompt === 'string' ? params.prompt.trim() : '';
|
|
131
|
+
const current = mode(params);
|
|
132
|
+
if (current === 'audio-to-video') {
|
|
133
|
+
const audio = resolveUploadedAudioSources(params)[0];
|
|
134
|
+
if (!audio)
|
|
135
|
+
throw new Error('LTX-2.3 音频生视频需要上传 1 段音频');
|
|
136
|
+
const image = resolveUploadedImageSources(params)[0];
|
|
137
|
+
if (!image && !prompt)
|
|
138
|
+
throw new Error('LTX-2.3 音频生视频不传首帧图时需要填写提示词');
|
|
139
|
+
const ratio = String(params.falLtx23AspectRatio || 'smart');
|
|
140
|
+
const body = {
|
|
141
|
+
audio_url: audio,
|
|
142
|
+
aspect_ratio: ratio === '9:16' || ratio === '16:9' ? ratio : 'auto'
|
|
143
|
+
};
|
|
144
|
+
if (image)
|
|
145
|
+
body.image_url = image;
|
|
146
|
+
if (prompt)
|
|
147
|
+
body.prompt = prompt;
|
|
148
|
+
return body;
|
|
149
|
+
}
|
|
150
|
+
if (current !== 'text-image-to-video') {
|
|
151
|
+
const video = resolveUploadedVideoSources(params)[0];
|
|
152
|
+
if (!video)
|
|
153
|
+
throw new Error('LTX-2.3 延长视频和视频重拍需要上传 1 个视频');
|
|
154
|
+
if (current === 'video-extension') {
|
|
155
|
+
const body = {
|
|
156
|
+
video_url: video,
|
|
157
|
+
duration: clampSeconds(params.falLtx23ExtendDuration, 2, 20, 5),
|
|
158
|
+
mode: choice(params.falLtx23ExtendDirection, ['end', 'start'], 'end')
|
|
159
|
+
};
|
|
160
|
+
if (prompt)
|
|
161
|
+
body.prompt = prompt;
|
|
162
|
+
return body;
|
|
163
|
+
}
|
|
164
|
+
if (!prompt)
|
|
165
|
+
throw new Error('LTX-2.3 视频重拍需要填写提示词');
|
|
166
|
+
return {
|
|
167
|
+
prompt,
|
|
168
|
+
video_url: video,
|
|
169
|
+
start_time: clampSeconds(params.falLtx23RetakeStartTime, 0, 20, 0),
|
|
170
|
+
duration: clampSeconds(params.falLtx23RetakeDuration, 2, 20, 5),
|
|
171
|
+
retake_mode: choice(params.falLtx23RetakeMode, ['replace_audio', 'replace_video', 'replace_audio_and_video'], 'replace_audio_and_video')
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
if (!prompt)
|
|
175
|
+
throw new Error('LTX-2.3 的提示词不能为空');
|
|
176
|
+
const fast = params.falLtx23FastMode !== false;
|
|
177
|
+
const resolution = choice(params.falLtx23Resolution, ['1080p', '1440p', '2160p'], '1080p');
|
|
178
|
+
const fps = choice(Number(params.falLtx23Fps), [24, 25, 48, 50], 25);
|
|
179
|
+
const duration = choice(Number(params.falLtx23Duration), [6, 8, 10, ...LONG_DURATIONS], 6);
|
|
180
|
+
if (duration > 10 && !(fast && resolution === '1080p' && fps === 25))
|
|
181
|
+
throw new Error('LTX-2.3 超过 10 秒只支持快速模式、1080p 和 25 FPS');
|
|
182
|
+
const images = resolveUploadedImageSources(params);
|
|
183
|
+
const ratio = String(params.falLtx23AspectRatio || 'smart');
|
|
184
|
+
const body = {
|
|
185
|
+
prompt,
|
|
186
|
+
duration,
|
|
187
|
+
resolution,
|
|
188
|
+
fps,
|
|
189
|
+
generate_audio: params.falLtx23GenerateAudio !== false
|
|
190
|
+
};
|
|
191
|
+
if (images.length > 0) {
|
|
192
|
+
body.image_url = images[0];
|
|
193
|
+
if (images.length > 1)
|
|
194
|
+
body.end_image_url = images[1];
|
|
195
|
+
body.aspect_ratio = ratio === '9:16' || ratio === '16:9' ? ratio : 'auto';
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
body.aspect_ratio = ratio === '9:16' ? '9:16' : '16:9';
|
|
199
|
+
}
|
|
200
|
+
return body;
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
pricing: {
|
|
204
|
+
currency: '$',
|
|
205
|
+
calculator: (params) => {
|
|
206
|
+
const current = mode(params);
|
|
207
|
+
if (current === 'video-extension')
|
|
208
|
+
return 0.1 * clampSeconds(params.falLtx23ExtendDuration, 2, 20, 5);
|
|
209
|
+
if (current === 'retake-video')
|
|
210
|
+
return 0.1 * clampSeconds(params.falLtx23RetakeDuration, 2, 20, 5);
|
|
211
|
+
if (current === 'audio-to-video')
|
|
212
|
+
return 0.1 * clampSeconds(resolveUploadedAudioDurationSeconds(params, AUDIO_MAX_SECONDS), AUDIO_MIN_SECONDS, AUDIO_MAX_SECONDS, AUDIO_MAX_SECONDS);
|
|
213
|
+
const rates = params.falLtx23FastMode === false ? RATES.pro : RATES.fast;
|
|
214
|
+
const resolution = choice(params.falLtx23Resolution, ['1080p', '1440p', '2160p'], '1080p');
|
|
215
|
+
return rates[resolution] * choice(Number(params.falLtx23Duration), [6, 8, 10, ...LONG_DURATIONS], 6);
|
|
216
|
+
},
|
|
217
|
+
mediaContext: [
|
|
218
|
+
{ targetParam: '__audioDurationSeconds', mediaType: 'audio', metric: 'durationSeconds', when: (params) => mode(params) === 'audio-to-video' }
|
|
219
|
+
],
|
|
220
|
+
description: '快速:1080p $0.06/秒、1440p $0.12/秒、2160p $0.24/秒;标准:$0.08/$0.16/$0.32 每秒;延长视频与视频重拍 $0.10/秒;音频生视频 $0.10/秒,按音频时长计算(视频与音频等长),读不到时长时按最长 20 秒估'
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
export default falLtx23Model;
|
|
@@ -5,7 +5,8 @@ export const ltx2Model = defineModel({
|
|
|
5
5
|
canonicalModelId: 'ltx-2',
|
|
6
6
|
provider: 'fal',
|
|
7
7
|
type: 'video',
|
|
8
|
-
|
|
8
|
+
deprecated: 'Fal 已撤下全部 LTX-2 端点(2026-11 起返回 404),由 LTX-2.3 取代',
|
|
9
|
+
tags: ['text-to-video', 'image-to-video', 'video-to-video']
|
|
9
10
|
},
|
|
10
11
|
inputLimits: {
|
|
11
12
|
images: { max: 0 },
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineModel } from "../defineModel.js";
|
|
2
|
+
import { hasUploadedImage, resolveUploadedImageSources, resolveUploadedVideoSources } from "../shared/mediaPresence.js";
|
|
3
|
+
// 价格与字段来源:docs/model-adaptation/MiniMax-H3-Max/MiniMax-H3-Max_Fal.md(Fal 模型页与 OpenAPI,2026-11-07 读取)。
|
|
4
|
+
// 计价按 2026-11-16 起的标准价;此前的限时折扣只会让实际账单更低。
|
|
5
|
+
const RATES = {
|
|
6
|
+
max: { '480P': 0.05, '768P': 0.08, '1080P': 0.16 },
|
|
7
|
+
turbo: { '480P': 0.025, '768P': 0.04, '1080P': 0.08 }
|
|
8
|
+
};
|
|
9
|
+
const RATIOS = ['21:9', '16:9', '4:3', '1:1', '3:4', '9:16'];
|
|
10
|
+
function reference(params) {
|
|
11
|
+
return params.falMiniMaxH3MaxMode === 'reference-to-video';
|
|
12
|
+
}
|
|
13
|
+
function resolution(params) {
|
|
14
|
+
return ['480P', '1080P'].includes(String(params.falMiniMaxH3MaxResolution)) ? String(params.falMiniMaxH3MaxResolution) : '768P';
|
|
15
|
+
}
|
|
16
|
+
function duration(params) {
|
|
17
|
+
const value = Math.round(Number(params.falMiniMaxH3MaxDuration));
|
|
18
|
+
return Number.isFinite(value) ? Math.min(15, Math.max(1, value)) : 5;
|
|
19
|
+
}
|
|
20
|
+
function audioSources(params) {
|
|
21
|
+
for (const candidate of [params.uploadedAudioFilePaths, params.audios, params.uploadedAudios]) {
|
|
22
|
+
if (!Array.isArray(candidate))
|
|
23
|
+
continue;
|
|
24
|
+
const sources = candidate.flatMap((item) => typeof item === 'string' && item.trim() ? [item.trim()] : []);
|
|
25
|
+
if (sources.length > 0)
|
|
26
|
+
return sources;
|
|
27
|
+
}
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
function ratio(params) {
|
|
31
|
+
const raw = String(params.falMiniMaxH3MaxAspectRatio || 'smart');
|
|
32
|
+
return RATIOS.includes(raw) ? raw : '16:9';
|
|
33
|
+
}
|
|
34
|
+
export const falMiniMaxH3MaxModel = defineModel({
|
|
35
|
+
meta: {
|
|
36
|
+
id: 'fal-ai-minimax-h3-max', canonicalModelId: 'minimax-h3-max', seriesId: 'hailuo', seriesRank: 3.1,
|
|
37
|
+
provider: 'fal', type: 'video',
|
|
38
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
39
|
+
polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 75 }
|
|
40
|
+
},
|
|
41
|
+
inputLimits: {
|
|
42
|
+
images: { max: 2 }, videos: { max: 0 }, audios: { max: 0 },
|
|
43
|
+
rules: [{ when: 'falMiniMaxH3MaxMode === "reference-to-video"', images: { max: 9 }, videos: { max: 3 }, audios: { max: 3 } }]
|
|
44
|
+
},
|
|
45
|
+
params: [
|
|
46
|
+
{
|
|
47
|
+
id: 'falMiniMaxH3MaxVersion', type: 'dropdown', order: 1,
|
|
48
|
+
default: 'max',
|
|
49
|
+
options: [{ value: 'max' }, { value: 'turbo' }]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'falMiniMaxH3MaxMode', type: 'dropdown', order: 2,
|
|
53
|
+
default: 'text-image-to-video',
|
|
54
|
+
options: [{ value: 'text-image-to-video' }, { value: 'reference-to-video' }]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'falMiniMaxH3MaxAspectRatio', type: 'dropdown', order: 3,
|
|
58
|
+
default: 'smart',
|
|
59
|
+
visible: { condition: (params) => reference(params) || !hasUploadedImage(params) },
|
|
60
|
+
options: [{ value: 'smart' }, ...RATIOS.map((value) => ({ value }))]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'falMiniMaxH3MaxResolution', type: 'dropdown', order: 4,
|
|
64
|
+
default: '768P',
|
|
65
|
+
options: [{ value: '480P' }, { value: '768P' }, { value: '1080P' }]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 'falMiniMaxH3MaxDuration', type: 'number', order: 5,
|
|
69
|
+
default: 5, min: 1, max: 15, step: 1
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'falMiniMaxH3MaxPromptExpansion', type: 'dropdown', order: 6,
|
|
73
|
+
default: 'balanced',
|
|
74
|
+
options: [{ value: 'balanced' }, { value: 'quality' }, { value: 'disabled' }]
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
endpoints: {
|
|
78
|
+
selector: async (params) => {
|
|
79
|
+
const family = params.falMiniMaxH3MaxVersion === 'turbo' ? 'minimax/h3-max-turbo' : 'minimax/h3-max';
|
|
80
|
+
if (reference(params))
|
|
81
|
+
return `${family}/reference-to-video`;
|
|
82
|
+
return hasUploadedImage(params) ? `${family}/image-to-video` : `${family}/text-to-video`;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
request: {
|
|
86
|
+
builder: (params) => {
|
|
87
|
+
const prompt = typeof params.prompt === 'string' ? params.prompt.trim().slice(0, 50000) : '';
|
|
88
|
+
if (!prompt)
|
|
89
|
+
throw new Error('MiniMax H3 Max 的提示词不能为空');
|
|
90
|
+
const images = resolveUploadedImageSources(params);
|
|
91
|
+
const body = {
|
|
92
|
+
prompt,
|
|
93
|
+
duration: duration(params),
|
|
94
|
+
resolution: resolution(params),
|
|
95
|
+
prompt_expansion_mode: ['quality', 'disabled'].includes(String(params.falMiniMaxH3MaxPromptExpansion))
|
|
96
|
+
? String(params.falMiniMaxH3MaxPromptExpansion) : 'balanced'
|
|
97
|
+
};
|
|
98
|
+
if (reference(params)) {
|
|
99
|
+
const videos = resolveUploadedVideoSources(params);
|
|
100
|
+
const audios = audioSources(params);
|
|
101
|
+
if (images.length + videos.length + audios.length > 12)
|
|
102
|
+
throw new Error('MiniMax H3 Max 的参考素材总数不能超过 12 个');
|
|
103
|
+
body.aspect_ratio = String(params.falMiniMaxH3MaxAspectRatio || 'smart') === 'smart' ? 'adaptive' : ratio(params);
|
|
104
|
+
if (images.length > 0)
|
|
105
|
+
body.reference_image_urls = images.slice(0, 9);
|
|
106
|
+
if (videos.length > 0)
|
|
107
|
+
body.reference_video_urls = videos.slice(0, 3);
|
|
108
|
+
if (audios.length > 0)
|
|
109
|
+
body.reference_audio_urls = audios.slice(0, 3);
|
|
110
|
+
return body;
|
|
111
|
+
}
|
|
112
|
+
if (images.length > 0) {
|
|
113
|
+
body.image_url = images[0];
|
|
114
|
+
if (images.length > 1)
|
|
115
|
+
body.end_image_url = images[1];
|
|
116
|
+
return body;
|
|
117
|
+
}
|
|
118
|
+
body.aspect_ratio = ratio(params);
|
|
119
|
+
return body;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
pricing: {
|
|
123
|
+
currency: '$',
|
|
124
|
+
calculator: (params) => {
|
|
125
|
+
// Turbo 的参考生视频与 Max 同价。
|
|
126
|
+
const tier = params.falMiniMaxH3MaxVersion === 'turbo' && !reference(params) ? RATES.turbo : RATES.max;
|
|
127
|
+
return tier[resolution(params)] * duration(params);
|
|
128
|
+
},
|
|
129
|
+
description: 'Max:480P/768P/1080P $0.05/$0.08/$0.16 每秒;Turbo:$0.025/$0.04/$0.08 每秒(参考生视频与 Max 同价);参考素材超出 4096 token 额度后另计;按 11 月 16 日起的标准价估算'
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
export default falMiniMaxH3MaxModel;
|
|
@@ -2,9 +2,9 @@ import { defineModel } from "../defineModel.js";
|
|
|
2
2
|
import { countUploadedImages, hasUploadedImage, resolveUploadedImageSources, resolveUploadedVideoSources } from "../shared/mediaPresence.js";
|
|
3
3
|
export const falMiniMaxH3Model = defineModel({
|
|
4
4
|
meta: {
|
|
5
|
-
id: 'fal-ai-minimax-h3', canonicalModelId: 'minimax-h3', seriesId: '
|
|
5
|
+
id: 'fal-ai-minimax-h3', canonicalModelId: 'minimax-h3', seriesId: 'hailuo', seriesRank: 3,
|
|
6
6
|
provider: 'fal', type: 'video',
|
|
7
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
7
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
8
8
|
aliases: ['minimax-h3-fal'], polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 75 }
|
|
9
9
|
},
|
|
10
10
|
inputLimits: {
|
|
@@ -105,8 +105,7 @@ export const falMiniMaxH3Model = defineModel({
|
|
|
105
105
|
prompt: typeof params.prompt === 'string' ? params.prompt.trim().slice(0, 7000) : '',
|
|
106
106
|
duration: Math.min(15, Math.max(5, Math.round(Number(params.falMiniMaxH3Duration || 5)))),
|
|
107
107
|
resolution,
|
|
108
|
-
|
|
109
|
-
prompt_expansion_mode: ['fast', 'quality'].includes(String(params.falMiniMaxH3PromptExpansionMode))
|
|
108
|
+
prompt_expansion_mode: params.falMiniMaxH3PromptExpansion === false ? 'disabled' : ['fast', 'quality'].includes(String(params.falMiniMaxH3PromptExpansionMode))
|
|
110
109
|
? String(params.falMiniMaxH3PromptExpansionMode)
|
|
111
110
|
: 'balanced',
|
|
112
111
|
enable_safety_checker: true
|
|
@@ -4,7 +4,7 @@ export const falMinimaxSpeech28Model = defineModel({
|
|
|
4
4
|
meta: {
|
|
5
5
|
id: 'fal-minimax-speech-2.8', canonicalModelId: 'minimax-speech-2.8',
|
|
6
6
|
provider: 'fal', type: 'audio',
|
|
7
|
-
tags: ['text-to-audio'
|
|
7
|
+
tags: ['text-to-audio'],
|
|
8
8
|
polling: { interval: 3000, maxAttempts: 120, expectedAttempts: 20 },
|
|
9
9
|
},
|
|
10
10
|
inputLimits: { images: { max: 0 }, videos: { max: 0 } },
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { resolveUploadedImageSources, resolveUploadedVideoSources } from '../shared/mediaPresence.js';
|
|
3
|
+
import { NANO21_RATIOS, NANO21_RESOLUTIONS, nano21Choice, nano21Count, nano21Options, nano21Prompt, nano21Ratio } from '../shared/nanoBanana21.js';
|
|
4
|
+
function pdfSource(params) {
|
|
5
|
+
const values = params.falNanoBanana21Pdf;
|
|
6
|
+
if (values === undefined)
|
|
7
|
+
return undefined;
|
|
8
|
+
if (!Array.isArray(values) || values.length > 1 || values.some(v => typeof v !== 'string'))
|
|
9
|
+
throw new Error('PDF 上下文需要上传一份文件');
|
|
10
|
+
return values.find((v) => typeof v === 'string' && v.trim().length > 0);
|
|
11
|
+
}
|
|
12
|
+
export const falNanoBanana21Model = defineModel({
|
|
13
|
+
meta: {
|
|
14
|
+
id: 'fal-ai-nano-banana-2.1', canonicalModelId: 'nano-banana-2.1', seriesId: 'nano-banana', seriesRank: 2.1,
|
|
15
|
+
provider: 'fal', type: 'image',
|
|
16
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
17
|
+
polling: { interval: 3000, maxAttempts: 200, expectedAttempts: 40 },
|
|
18
|
+
},
|
|
19
|
+
inputLimits: { images: {}, videos: { max: 1 }, audios: { max: 0 }, rules: [{ videoConstraints: { maxSizeMB: 15 } }] },
|
|
20
|
+
params: [
|
|
21
|
+
{ id: 'falNanoBanana21AspectRatio', type: 'dropdown', order: 1, default: 'smart', options: nano21Options(['smart', ...NANO21_RATIOS]) },
|
|
22
|
+
{ id: 'falNanoBanana21Resolution', type: 'dropdown', order: 2, default: '1K', options: nano21Options(NANO21_RESOLUTIONS) },
|
|
23
|
+
{ id: 'falNanoBanana21NumImages', type: 'number', order: 3, default: 1, min: 1, max: 4, step: 1 },
|
|
24
|
+
{ id: 'falNanoBanana21WebSearch', type: 'switch', order: 4, default: false },
|
|
25
|
+
{ id: 'falNanoBanana21Thinking', type: 'dropdown', order: 5, default: 'medium', options: nano21Options(['minimal', 'medium', 'high']) },
|
|
26
|
+
{ id: 'falNanoBanana21Pdf', type: 'file-upload', order: 6, default: [], valueType: 'array', maxCount: 1, accept: ['application/pdf'], maxSize: 15 * 1024 * 1024 },
|
|
27
|
+
{ id: 'falNanoBanana21SystemPrompt', type: 'text', order: 7, default: '' },
|
|
28
|
+
{ id: 'falNanoBanana21OutputFormat', type: 'dropdown', order: 8, default: 'png', options: nano21Options(['png', 'jpeg', 'webp']) },
|
|
29
|
+
{ id: 'falNanoBanana21LimitGenerations', type: 'switch', order: 9, default: true },
|
|
30
|
+
],
|
|
31
|
+
runtimeConstraints: { mediaFields: [{ field: 'pdf_url', kind: 'file' }] },
|
|
32
|
+
endpoints: { selector: async (params) => resolveUploadedImageSources(params).length || resolveUploadedVideoSources(params).length || pdfSource(params)
|
|
33
|
+
? 'google/nano-banana-2.1/edit' : 'google/nano-banana-2.1' },
|
|
34
|
+
request: { builder: params => {
|
|
35
|
+
const images = resolveUploadedImageSources(params);
|
|
36
|
+
const videos = resolveUploadedVideoSources(params);
|
|
37
|
+
if (videos.length > 1)
|
|
38
|
+
throw new Error('Nano Banana 2.1 Fal 最多支持一段参考视频(15MB)');
|
|
39
|
+
const body = {
|
|
40
|
+
prompt: nano21Prompt(params), aspect_ratio: nano21Ratio(params.falNanoBanana21AspectRatio),
|
|
41
|
+
resolution: nano21Choice(params.falNanoBanana21Resolution, NANO21_RESOLUTIONS, '1K'),
|
|
42
|
+
num_images: nano21Count(params.falNanoBanana21NumImages, 4),
|
|
43
|
+
thinking_level: nano21Choice(params.falNanoBanana21Thinking, ['minimal', 'medium', 'high'], 'medium'),
|
|
44
|
+
output_format: nano21Choice(params.falNanoBanana21OutputFormat, ['png', 'jpeg', 'webp'], 'png'),
|
|
45
|
+
enable_web_search: params.falNanoBanana21WebSearch === true,
|
|
46
|
+
limit_generations: params.falNanoBanana21LimitGenerations !== false,
|
|
47
|
+
};
|
|
48
|
+
if (images.length)
|
|
49
|
+
body.image_urls = images;
|
|
50
|
+
if (videos.length)
|
|
51
|
+
body.video_url = videos[0];
|
|
52
|
+
const pdf = pdfSource(params);
|
|
53
|
+
if (pdf)
|
|
54
|
+
body.pdf_url = pdf;
|
|
55
|
+
if (typeof params.falNanoBanana21SystemPrompt === 'string' && params.falNanoBanana21SystemPrompt.trim())
|
|
56
|
+
body.system_prompt = params.falNanoBanana21SystemPrompt;
|
|
57
|
+
return body;
|
|
58
|
+
} },
|
|
59
|
+
pricing: {
|
|
60
|
+
currency: '$', calculator: params => {
|
|
61
|
+
// Fal 官方约 100 Token 短提示词、medium 思考的代表性成本;不是按张固定收费。
|
|
62
|
+
const representative = { '1K': 0.04, '2K': 0.059, '4K': 0.134 }[String(params.falNanoBanana21Resolution ?? '1K')] ?? 0.04;
|
|
63
|
+
return (representative + resolveUploadedImageSources(params).length * 0.002) * nano21Count(params.falNanoBanana21NumImages, 4);
|
|
64
|
+
},
|
|
65
|
+
description: '按实际 Token 计费:每百万输入 $1.764、文字/思考输出 $8.823、图像输出 $35.294。短提示词与 medium 思考参考估算 1K $0.040、2K $0.059、4K $0.134;每张 1K 参考图约增 $0.002。搜索、思考没有固定附加费,视频/PDF/搜索内容及长提示词按实际用量结算。',
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
export default falNanoBanana21Model;
|
|
@@ -4,7 +4,7 @@ export const falNanoBanana2Model = defineModel({
|
|
|
4
4
|
meta: {
|
|
5
5
|
id: 'fal-ai-nano-banana-2', canonicalModelId: 'nano-banana-2', seriesId: 'nano-banana', seriesRank: 2,
|
|
6
6
|
provider: 'fal', type: 'image',
|
|
7
|
-
tags: ['text-to-image', 'image-to-image'
|
|
7
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
8
8
|
aliases: ['nano-banana-2-fal'], polling: { interval: 3000, maxAttempts: 200, expectedAttempts: 40 }
|
|
9
9
|
},
|
|
10
10
|
inputLimits: { images: { max: 14 }, videos: { max: 1 }, audios: { max: 1 } },
|
|
@@ -4,7 +4,7 @@ export const nanoBananaProModel = defineModel({
|
|
|
4
4
|
meta: {
|
|
5
5
|
id: 'fal-ai-nano-banana-pro', canonicalModelId: 'nano-banana-pro', seriesId: 'nano-banana', seriesRank: 3,
|
|
6
6
|
provider: 'fal', type: 'image',
|
|
7
|
-
tags: ['text-to-image', 'image-to-image'
|
|
7
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
8
8
|
aliases: ['nano-banana-pro-fal'], polling: { interval: 3000, maxAttempts: 200, expectedAttempts: 40 }
|
|
9
9
|
},
|
|
10
10
|
inputLimits: { images: { max: 14 }, videos: { max: 0 } },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineModel } from "../defineModel.js";
|
|
2
|
+
import { countUploadedImages } from "../shared/mediaPresence.js";
|
|
2
3
|
export const pixverseV55Model = defineModel({
|
|
3
4
|
meta: {
|
|
4
5
|
id: 'fal-ai-pixverse-v5.5',
|
|
@@ -7,7 +8,7 @@ export const pixverseV55Model = defineModel({
|
|
|
7
8
|
seriesRank: 5.5,
|
|
8
9
|
provider: 'fal',
|
|
9
10
|
type: 'video',
|
|
10
|
-
tags: ['
|
|
11
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame']
|
|
11
12
|
},
|
|
12
13
|
inputLimits: {
|
|
13
14
|
images: { max: 2 },
|
|
@@ -19,6 +20,8 @@ export const pixverseV55Model = defineModel({
|
|
|
19
20
|
order: 1,
|
|
20
21
|
type: 'dropdown',
|
|
21
22
|
default: '16:9',
|
|
23
|
+
// 单图生视频跟随图片比例(官方图生视频端点没有比例字段)。
|
|
24
|
+
visible: { condition: (params) => countUploadedImages(params) !== 1 },
|
|
22
25
|
options: [
|
|
23
26
|
{ value: 'smart' },
|
|
24
27
|
{ value: '16:9' },
|
|
@@ -85,7 +88,9 @@ export const pixverseV55Model = defineModel({
|
|
|
85
88
|
id: 'pixverseMultiClip',
|
|
86
89
|
order: 7,
|
|
87
90
|
type: 'switch',
|
|
88
|
-
default: false
|
|
91
|
+
default: false,
|
|
92
|
+
// 首尾帧转场端点没有多镜头开关。
|
|
93
|
+
visible: { condition: (params) => countUploadedImages(params) < 2 }
|
|
89
94
|
}
|
|
90
95
|
],
|
|
91
96
|
endpoints: {
|
|
@@ -116,7 +121,7 @@ export const pixverseV55Model = defineModel({
|
|
|
116
121
|
const resolution = params.pixverseResolution;
|
|
117
122
|
const duration = params.falPixverse55VideoDuration || 5;
|
|
118
123
|
const requestData = { prompt };
|
|
119
|
-
if (aspectRatio && aspectRatio !== 'smart' && aspectRatio !== 'auto') {
|
|
124
|
+
if (images.length !== 1 && aspectRatio && aspectRatio !== 'smart' && aspectRatio !== 'auto') {
|
|
120
125
|
requestData.aspect_ratio = aspectRatio;
|
|
121
126
|
}
|
|
122
127
|
if (resolution) {
|
|
@@ -130,7 +135,7 @@ export const pixverseV55Model = defineModel({
|
|
|
130
135
|
requestData.thinking_type = params.pixverseThinkingType;
|
|
131
136
|
}
|
|
132
137
|
requestData.generate_audio_switch = params.pixverseGenerateAudio !== false;
|
|
133
|
-
if (params.pixverseMultiClip !== undefined) {
|
|
138
|
+
if (images.length < 2 && params.pixverseMultiClip !== undefined) {
|
|
134
139
|
requestData.generate_multi_clip_switch = params.pixverseMultiClip;
|
|
135
140
|
}
|
|
136
141
|
if (images.length === 1) {
|
|
@@ -5,10 +5,10 @@ export const falQwenImage30Model = defineModel({
|
|
|
5
5
|
meta: {
|
|
6
6
|
id: 'fal-ai-qwen-image-3.0', canonicalModelId: 'qwen-image-3.0', seriesId: 'qwen-image', seriesRank: 3,
|
|
7
7
|
provider: 'fal', type: 'image',
|
|
8
|
-
tags: ['text-to-image', 'image-to-image'
|
|
8
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
9
9
|
aliases: ['qwen-image-3-fal'], polling: { interval: 3000, maxAttempts: 180, expectedAttempts: 35 }
|
|
10
10
|
},
|
|
11
|
-
inputLimits: { images: { max: 3 }, videos: { max: 0 } },
|
|
11
|
+
inputLimits: { images: { max: 3 }, videos: { max: 0 }, rules: [{ imageConstraints: { minShortSidePx: 384, maxLongSidePx: 2048 } }] },
|
|
12
12
|
params: [
|
|
13
13
|
{
|
|
14
14
|
id: 'falQwenImage30AspectRatio', type: 'dropdown', order: 1,
|
|
@@ -3,7 +3,7 @@ import { speechCharacterPrice, speechNumber, speechString, speechText } from '..
|
|
|
3
3
|
export const falQwen3Tts17bModel = defineModel({
|
|
4
4
|
meta: {
|
|
5
5
|
id: 'fal-qwen3-tts-1.7b', canonicalModelId: 'qwen3-tts-1.7b', provider: 'fal', type: 'audio',
|
|
6
|
-
tags: ['text-to-audio'
|
|
6
|
+
tags: ['text-to-audio'],
|
|
7
7
|
polling: { interval: 3000, maxAttempts: 120, expectedAttempts: 20 },
|
|
8
8
|
},
|
|
9
9
|
inputLimits: { images: { max: 0 }, videos: { max: 0 } },
|
|
@@ -11,7 +11,8 @@ export const falQwen3Tts17bModel = defineModel({
|
|
|
11
11
|
{ id: 'falQwen3TtsVoice', type: 'dropdown', order: 1, default: 'Vivian', options: ['Vivian', 'Serena', 'Uncle_Fu', 'Dylan', 'Eric', 'Ryan', 'Aiden', 'Ono_Anna', 'Sohee'].map(value => ({ value })) },
|
|
12
12
|
{ id: 'falQwen3TtsLanguage', type: 'dropdown', order: 2, default: 'Auto', options: ['Auto', 'English', 'Chinese', 'Spanish', 'French', 'German', 'Italian', 'Japanese', 'Korean', 'Portuguese', 'Russian'].map(value => ({ value })) },
|
|
13
13
|
{ id: 'falQwen3TtsStyle', type: 'text', order: 3, default: '' },
|
|
14
|
-
|
|
14
|
+
// 官方取值大于 0、不超过 1。旧工程存的范围外的值由展示层联动在提交前改回边界。
|
|
15
|
+
{ id: 'falQwen3TtsTemperature', type: 'number', order: 4, default: 0.9, min: 0.1, max: 1, step: 0.1 },
|
|
15
16
|
],
|
|
16
17
|
endpoints: 'fal-ai/qwen-3-tts/text-to-speech/1.7b',
|
|
17
18
|
request: {
|
|
@@ -20,7 +21,7 @@ export const falQwen3Tts17bModel = defineModel({
|
|
|
20
21
|
text: speechText(params),
|
|
21
22
|
voice: speechString(params.falQwen3TtsVoice) ?? 'Vivian',
|
|
22
23
|
language: speechString(params.falQwen3TtsLanguage) ?? 'Auto',
|
|
23
|
-
temperature: speechNumber(params.falQwen3TtsTemperature) ?? 0.9,
|
|
24
|
+
temperature: Math.min(1, Math.max(0.1, speechNumber(params.falQwen3TtsTemperature) ?? 0.9)),
|
|
24
25
|
};
|
|
25
26
|
const style = speechString(params.falQwen3TtsStyle);
|
|
26
27
|
if (style)
|
|
@@ -3,7 +3,7 @@ export const falSeedance20FastModel = defineModel({
|
|
|
3
3
|
meta: {
|
|
4
4
|
id: 'fal-ai-seedance-2.0-fast', canonicalModelId: 'seedance-2.0-fast', seriesId: 'seedance', seriesRank: 2.01,
|
|
5
5
|
provider: 'fal', type: 'video',
|
|
6
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
6
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
7
7
|
aliases: ['seedance-2-fast-fal'], polling: { interval: 3000, maxAttempts: 320, expectedAttempts: 75 }
|
|
8
8
|
},
|
|
9
9
|
inputLimits: {
|
|
@@ -3,7 +3,7 @@ export const falSeedance20MiniModel = defineModel({
|
|
|
3
3
|
meta: {
|
|
4
4
|
id: 'fal-ai-seedance-2.0-mini', canonicalModelId: 'seedance-2.0-mini', seriesId: 'seedance', seriesRank: 2.001,
|
|
5
5
|
provider: 'fal', type: 'video',
|
|
6
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
6
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
7
7
|
aliases: ['seedance-2-mini-fal'], polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 65 }
|
|
8
8
|
},
|
|
9
9
|
inputLimits: {
|
|
@@ -3,7 +3,7 @@ export const falSeedance20Model = defineModel({
|
|
|
3
3
|
meta: {
|
|
4
4
|
id: 'fal-ai-seedance-2.0', canonicalModelId: 'seedance-2.0', seriesId: 'seedance', seriesRank: 2,
|
|
5
5
|
provider: 'fal', type: 'video',
|
|
6
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
6
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
7
7
|
aliases: ['seedance-2-fal'], polling: { interval: 3000, maxAttempts: 360, expectedAttempts: 90 }
|
|
8
8
|
},
|
|
9
9
|
inputLimits: {
|