@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineModel } from "../defineModel.js";
|
|
2
|
-
import { hasUploadedVideo } from './mediaSources.js';
|
|
2
|
+
import { hasUploadedImage, hasUploadedVideo } from './mediaSources.js';
|
|
3
3
|
const KIE_CREATE_TASK_ENDPOINT = '/api/v1/jobs/createTask';
|
|
4
4
|
export const kieKling30OmniModel = defineModel({
|
|
5
5
|
meta: {
|
|
@@ -9,18 +9,7 @@ export const kieKling30OmniModel = defineModel({
|
|
|
9
9
|
seriesRank: 3.02,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: [
|
|
13
|
-
'text-to-video',
|
|
14
|
-
'image-to-video',
|
|
15
|
-
'video-to-video',
|
|
16
|
-
'supports-video-editing',
|
|
17
|
-
'reference-mode',
|
|
18
|
-
'multi-mode-switch',
|
|
19
|
-
'mixed-upload-mode',
|
|
20
|
-
'supports-audio-generation',
|
|
21
|
-
'supports-4k',
|
|
22
|
-
'provider-kie'
|
|
23
|
-
],
|
|
12
|
+
tags: ['text-to-video', 'image-to-video', 'reference-mode', 'video-to-video'],
|
|
24
13
|
polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 90 }
|
|
25
14
|
},
|
|
26
15
|
inputLimits: {
|
|
@@ -34,13 +23,17 @@ export const kieKling30OmniModel = defineModel({
|
|
|
34
23
|
},
|
|
35
24
|
{
|
|
36
25
|
when: 'kieKling30OmniMode === "transformation"',
|
|
37
|
-
images: { max:
|
|
26
|
+
images: { max: 4 },
|
|
38
27
|
videos: { exact: 1 }
|
|
39
28
|
},
|
|
40
29
|
{
|
|
41
30
|
when: 'kieKling30OmniMode === "reference-to-video"',
|
|
42
31
|
images: { max: 7 },
|
|
43
32
|
videos: { max: 1 }
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
imageConstraints: { minShortSidePx: 300, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
36
|
+
videoConstraints: { minShortSidePx: 700, maxLongSidePx: 4553, maxPixels: 8_294_400, minAspectRatio: 0.4, maxAspectRatio: 2 }
|
|
44
37
|
}
|
|
45
38
|
]
|
|
46
39
|
},
|
|
@@ -83,6 +76,9 @@ export const kieKling30OmniModel = defineModel({
|
|
|
83
76
|
id: 'kieKling30OmniAspectRatio',
|
|
84
77
|
type: 'dropdown',
|
|
85
78
|
order: 2,
|
|
79
|
+
// 图生视频、只带视频的风格转换由构建器固定发 auto,比例跟随素材。
|
|
80
|
+
visible: { condition: (params) => params.kieKling30OmniMode !== 'image-to-video'
|
|
81
|
+
&& !(['transformation', 'reference-to-video'].includes(String(params.kieKling30OmniMode)) && hasUploadedVideo(params) && !hasUploadedImage(params)) },
|
|
86
82
|
default: 'smart',
|
|
87
83
|
options: [
|
|
88
84
|
{ value: 'smart' },
|
|
@@ -106,6 +102,8 @@ export const kieKling30OmniModel = defineModel({
|
|
|
106
102
|
id: 'kieKling30OmniDuration',
|
|
107
103
|
type: 'dropdown',
|
|
108
104
|
order: 4,
|
|
105
|
+
// 只带视频的风格转换与参考生视频时长跟随视频,不发送。
|
|
106
|
+
visible: { condition: (params) => !(['transformation', 'reference-to-video'].includes(String(params.kieKling30OmniMode)) && hasUploadedVideo(params) && !hasUploadedImage(params)) },
|
|
109
107
|
default: '5',
|
|
110
108
|
options: Array.from({ length: 13 }, (_, index) => {
|
|
111
109
|
const value = String(index + 3);
|
|
@@ -116,6 +114,8 @@ export const kieKling30OmniModel = defineModel({
|
|
|
116
114
|
id: 'kieKling30OmniAudio',
|
|
117
115
|
type: 'switch',
|
|
118
116
|
order: 5,
|
|
117
|
+
// 带参考视频的参考生视频官方只允许关闭音频。
|
|
118
|
+
visible: { condition: (params) => !(params.kieKling30OmniMode === 'reference-to-video' && hasUploadedVideo(params)) },
|
|
119
119
|
default: false
|
|
120
120
|
}
|
|
121
121
|
],
|
|
@@ -160,7 +160,7 @@ export const kieKling30OmniModel = defineModel({
|
|
|
160
160
|
aspect_ratio: aspectRatio,
|
|
161
161
|
audio: params.kieKling30OmniAudio === true
|
|
162
162
|
};
|
|
163
|
-
if (!input.prompt
|
|
163
|
+
if (!input.prompt)
|
|
164
164
|
throw new Error('Kling 3.0 Omni 的提示词不能为空');
|
|
165
165
|
if (mode === 'image-to-video') {
|
|
166
166
|
input.aspect_ratio = 'auto';
|
|
@@ -168,14 +168,37 @@ export const kieKling30OmniModel = defineModel({
|
|
|
168
168
|
input.image_urls = [images[0]];
|
|
169
169
|
return { model: 'kling-3.0-omni/image-to-video', input };
|
|
170
170
|
}
|
|
171
|
+
// 官方 OpenAPI 的风格转换与参考生视频按“只带视频 / 视频加图 / 只带图”分成互斥的几种请求体,
|
|
172
|
+
// 多余字段会被拒绝:只带视频时不传时长和图,比例只能 auto;视频加图时最多 4 张图;带视频的参考生视频不能开音频。
|
|
173
|
+
if (videos.length > 0 && images.length > 4)
|
|
174
|
+
throw new Error('Kling 3.0 Omni 带参考视频时最多 4 张参考图');
|
|
175
|
+
if (mode === 'reference-to-video' && images.length + videos.length === 0)
|
|
176
|
+
throw new Error('Kling 3.0 Omni 参考生视频至少需要一张参考图或一段参考视频');
|
|
171
177
|
if (mode === 'transformation') {
|
|
178
|
+
const transformation = { prompt: input.prompt, resolution: input.resolution, audio: input.audio };
|
|
172
179
|
if (videos[0])
|
|
173
|
-
|
|
174
|
-
if (images.length > 0)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
transformation.video_urls = [videos[0]];
|
|
181
|
+
if (images.length > 0) {
|
|
182
|
+
transformation.image_urls = images;
|
|
183
|
+
transformation.duration = String(input.duration);
|
|
184
|
+
transformation.aspect_ratio = aspectRatio;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
transformation.aspect_ratio = 'auto';
|
|
188
|
+
}
|
|
189
|
+
return { model: 'kling-3.0-omni/transformation', input: transformation };
|
|
190
|
+
}
|
|
191
|
+
if (mode === 'reference-to-video' && videos.length > 0) {
|
|
192
|
+
const reference = { prompt: input.prompt, resolution: input.resolution, video_urls: [videos[0]], audio: false };
|
|
193
|
+
if (images.length > 0) {
|
|
194
|
+
reference.image_urls = images;
|
|
195
|
+
reference.duration = input.duration;
|
|
196
|
+
reference.aspect_ratio = aspectRatio;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
reference.aspect_ratio = 'auto';
|
|
200
|
+
}
|
|
201
|
+
return { model: 'kling-3.0-omni/reference-to-video', input: reference };
|
|
179
202
|
}
|
|
180
203
|
if (mode === 'reference-to-video') {
|
|
181
204
|
if (images.length > 0)
|
|
@@ -190,9 +213,14 @@ export const kieKling30OmniModel = defineModel({
|
|
|
190
213
|
pricing: {
|
|
191
214
|
currency: '$',
|
|
192
215
|
calculator: (params) => {
|
|
193
|
-
const duration = Math.min(15, Math.max(3, Number(params.kieKling30OmniDuration || 5)));
|
|
194
|
-
const resolution = String(params.kieKling30OmniResolution || '720p');
|
|
195
216
|
const hasVideoInput = hasUploadedVideo(params);
|
|
217
|
+
// 只带视频的风格转换与参考生视频不发时长,输出跟随视频,按视频时长估价。
|
|
218
|
+
const followsVideo = hasVideoInput && !hasUploadedImage(params) && ['transformation', 'reference-to-video'].includes(String(params.kieKling30OmniMode));
|
|
219
|
+
const videoSeconds = typeof params.__firstVideoDurationSeconds === 'number' && params.__firstVideoDurationSeconds > 0 ? params.__firstVideoDurationSeconds : 10;
|
|
220
|
+
const duration = followsVideo
|
|
221
|
+
? Math.min(10, Math.max(3, Math.ceil(videoSeconds)))
|
|
222
|
+
: Math.min(15, Math.max(3, Number(params.kieKling30OmniDuration || 5)));
|
|
223
|
+
const resolution = String(params.kieKling30OmniResolution || '720p');
|
|
196
224
|
if (resolution === '4k')
|
|
197
225
|
return duration * 0.335;
|
|
198
226
|
if (hasVideoInput || params.kieKling30OmniMode === 'transformation') {
|
|
@@ -9,7 +9,7 @@ export const kieKling30TurboModel = defineModel({
|
|
|
9
9
|
seriesRank: 3.01,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: ['text-to-video', 'image-to-video'
|
|
12
|
+
tags: ['text-to-video', 'image-to-video'],
|
|
13
13
|
polling: { interval: 3000, maxAttempts: 240, expectedAttempts: 70 }
|
|
14
14
|
},
|
|
15
15
|
inputLimits: {
|
|
@@ -8,14 +8,7 @@ export const kieKling30Model = defineModel({
|
|
|
8
8
|
seriesRank: 3,
|
|
9
9
|
provider: 'kie',
|
|
10
10
|
type: 'video',
|
|
11
|
-
tags: [
|
|
12
|
-
'text-to-video',
|
|
13
|
-
'image-to-video',
|
|
14
|
-
'start-end-frame',
|
|
15
|
-
'supports-audio-generation',
|
|
16
|
-
'supports-4k',
|
|
17
|
-
'provider-kie'
|
|
18
|
-
],
|
|
11
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame'],
|
|
19
12
|
polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 90 }
|
|
20
13
|
},
|
|
21
14
|
inputLimits: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { kling40Definition } from './kling40.js';
|
|
3
|
+
export const kieKling40FlashModel = defineModel({
|
|
4
|
+
meta: {
|
|
5
|
+
id: 'kie-kling-4.0-flash', canonicalModelId: 'kling-video-4.0-flash', seriesId: 'kling-video', seriesRank: 4.01,
|
|
6
|
+
provider: 'kie', type: 'video',
|
|
7
|
+
tags: ['text-to-video', 'image-to-video', 'reference-mode'],
|
|
8
|
+
polling: { interval: 3000, maxAttempts: 300, expectedAttempts: 60 },
|
|
9
|
+
},
|
|
10
|
+
...kling40Definition({
|
|
11
|
+
idPrefix: 'kieKling40Flash', modelPrefix: 'kling-4.0/flash-', name: 'Kling 4.0 Flash',
|
|
12
|
+
maxDuration: 20, firstFrameOnly: true, elementTypeField: true, resolutions: ['720p'],
|
|
13
|
+
rates: { '720p': { base: 0.085, withVideo: 0.0565 } },
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
export default kieKling40FlashModel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { kling40Definition } from './kling40.js';
|
|
3
|
+
export const kieKling40Model = defineModel({
|
|
4
|
+
meta: {
|
|
5
|
+
id: 'kie-kling-4.0', canonicalModelId: 'kling-video-4.0', seriesId: 'kling-video', seriesRank: 4,
|
|
6
|
+
provider: 'kie', type: 'video',
|
|
7
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
8
|
+
polling: { interval: 3000, maxAttempts: 400, expectedAttempts: 100 },
|
|
9
|
+
},
|
|
10
|
+
...kling40Definition({
|
|
11
|
+
idPrefix: 'kieKling40', modelPrefix: 'kling-4.0/', name: 'Kling 4.0',
|
|
12
|
+
maxDuration: 30, firstFrameOnly: false, elementTypeField: false, resolutions: ['720p', '1080p'],
|
|
13
|
+
imageConstraints: { minShortSidePx: 300, maxLongSidePx: 65536, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
14
|
+
rates: { '720p': { base: 0.1425, withVideo: 0.085 }, '1080p': { base: 0.2125, withVideo: 0.1275 } },
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
export default kieKling40Model;
|
|
@@ -9,7 +9,7 @@ export const kieKlingV26Model = defineModel({
|
|
|
9
9
|
seriesRank: 2.6,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: ['text-to-video', 'image-to-video', 'motion-control'
|
|
12
|
+
tags: ['text-to-video', 'image-to-video', 'motion-control'],
|
|
13
13
|
aliases: ['kling-v2-6-kie'],
|
|
14
14
|
polling: {
|
|
15
15
|
interval: 3000,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ModelRuntimeDefinition, RuntimeImageConstraints } from '../../types/model.js';
|
|
2
|
+
/** Kling 4.0 标准版与 Flash 共用 keyframe-to-video / reference-to-video 两个端点,差别只在档位与上限。 */
|
|
3
|
+
export interface Kling40Variant {
|
|
4
|
+
idPrefix: string;
|
|
5
|
+
modelPrefix: string;
|
|
6
|
+
name: string;
|
|
7
|
+
maxDuration: number;
|
|
8
|
+
/** Flash 只接受首帧,不支持中间帧与尾帧。 */
|
|
9
|
+
firstFrameOnly: boolean;
|
|
10
|
+
/** Flash 的元素用 `type` 区分图片与视频,标准版没有这个字段。 */
|
|
11
|
+
elementTypeField: boolean;
|
|
12
|
+
resolutions: string[];
|
|
13
|
+
/** 每秒美元价:keyframe 与无视频参考同价,带参考视频另一档。 */
|
|
14
|
+
rates: Record<string, {
|
|
15
|
+
base: number;
|
|
16
|
+
withVideo: number;
|
|
17
|
+
}>;
|
|
18
|
+
/** 官方文档写明的图片尺寸要求;未写明的变体不声明,交给平台判断。 */
|
|
19
|
+
imageConstraints?: RuntimeImageConstraints;
|
|
20
|
+
}
|
|
21
|
+
export declare function kling40Definition(variant: Kling40Variant): Omit<ModelRuntimeDefinition, 'meta'>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { hasUploadedImage, hasUploadedVideo, resolveKieImageSources, resolveKieVideoSources } from './mediaSources.js';
|
|
2
|
+
import { resolveUploadedVideoDurationSeconds } from '../shared/mediaPresence.js';
|
|
3
|
+
import { buildKieSubjectElements, subjectElementVideoSeconds } from '../shared/subjectElements.js';
|
|
4
|
+
const RATIOS = ['16:9', '9:16', '1:1', '21:9'];
|
|
5
|
+
const MODES = ['text-image-to-video', 'reference-to-video'];
|
|
6
|
+
function param(params, prefix, key) {
|
|
7
|
+
return params[`${prefix}${key}`];
|
|
8
|
+
}
|
|
9
|
+
function nearestRatio(params) {
|
|
10
|
+
const hint = typeof params.__firstImageRatio === 'number' && Number.isFinite(params.__firstImageRatio) && params.__firstImageRatio > 0
|
|
11
|
+
? params.__firstImageRatio : 16 / 9;
|
|
12
|
+
return RATIOS.reduce((best, next) => {
|
|
13
|
+
const value = (ratio) => { const [w, h] = ratio.split(':').map(Number); return w / h; };
|
|
14
|
+
return Math.abs(value(next) - hint) < Math.abs(value(best) - hint) ? next : best;
|
|
15
|
+
}, '16:9');
|
|
16
|
+
}
|
|
17
|
+
export function kling40Definition(variant) {
|
|
18
|
+
const p = variant.idPrefix;
|
|
19
|
+
const isReference = (params) => param(params, p, 'Mode') === 'reference-to-video';
|
|
20
|
+
const clampedSeconds = (params) => Math.min(variant.maxDuration, Math.max(3, Number(param(params, p, 'Duration') ?? 5) || 5));
|
|
21
|
+
const duration = (params) => {
|
|
22
|
+
const value = Number(param(params, p, 'Duration') ?? 5);
|
|
23
|
+
if (!Number.isInteger(value) || value < 3 || value > variant.maxDuration)
|
|
24
|
+
throw new Error(`${variant.name} 时长须为 3–${variant.maxDuration} 秒`);
|
|
25
|
+
return value;
|
|
26
|
+
};
|
|
27
|
+
const resolution = (params) => {
|
|
28
|
+
const value = String(param(params, p, 'Resolution') ?? variant.resolutions[0]);
|
|
29
|
+
return variant.resolutions.includes(value) ? value : variant.resolutions[0];
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
inputLimits: {
|
|
33
|
+
images: { max: variant.firstFrameOnly ? 1 : 10 },
|
|
34
|
+
videos: { max: 0 },
|
|
35
|
+
rules: [
|
|
36
|
+
{ when: `${p}Mode === "reference-to-video"`, images: { max: 10 }, videos: { max: 5 } },
|
|
37
|
+
...(variant.imageConstraints ? [{ imageConstraints: variant.imageConstraints }] : []),
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
// 关键帧张数随时长变:每秒 1 张再加首帧,最多 10 张(官方按秒数限制)。写成提交前提示而不是数量上限:
|
|
41
|
+
// 上限会让画布在缩短时长后把关键帧序列悄悄换成参考生视频。
|
|
42
|
+
requirements: variant.firstFrameOnly ? [] : [3, 4, 5, 6, 7, 8].map(seconds => ({
|
|
43
|
+
id: `${p}-keyframes-${seconds}s`,
|
|
44
|
+
when: `${p}Mode !== "reference-to-video" && ${p}Duration === "${seconds}"`,
|
|
45
|
+
require: { images: { max: seconds + 1 } },
|
|
46
|
+
message: { title: '关键帧太多', message: `${variant.name} ${seconds} 秒最多使用 ${seconds + 1} 张关键帧`, type: 'warning' },
|
|
47
|
+
})),
|
|
48
|
+
params: [
|
|
49
|
+
{ id: `${p}Mode`, type: 'dropdown', order: 1, default: 'text-image-to-video', options: MODES.map(value => ({ value })) },
|
|
50
|
+
// 关键帧模式下有图时画面比例跟随首帧,请求不带比例,界面也不显示。
|
|
51
|
+
{ id: `${p}AspectRatio`, type: 'dropdown', order: 2, default: 'smart', options: ['smart', ...RATIOS].map(value => ({ value })), visible: { condition: params => isReference(params) || !hasUploadedImage(params) } },
|
|
52
|
+
...(variant.resolutions.length > 1
|
|
53
|
+
? [{ id: `${p}Resolution`, type: 'dropdown', order: 3, default: variant.resolutions[0], options: variant.resolutions.map(value => ({ value })) }]
|
|
54
|
+
: []),
|
|
55
|
+
{
|
|
56
|
+
id: `${p}Duration`, type: 'dropdown', order: 4, default: '5',
|
|
57
|
+
options: Array.from({ length: variant.maxDuration - 2 }, (_, index) => ({ value: String(index + 3) })),
|
|
58
|
+
},
|
|
59
|
+
{ id: `${p}KeepOriginalSound`, type: 'switch', order: 5, default: false, visible: { condition: params => isReference(params) && hasUploadedVideo(params) } },
|
|
60
|
+
{ id: `${p}Elements`, type: 'composite', order: 6, valueType: 'array', default: [], visible: { condition: isReference } },
|
|
61
|
+
],
|
|
62
|
+
endpoints: '/api/v1/jobs/createTask',
|
|
63
|
+
request: {
|
|
64
|
+
builder: (params) => {
|
|
65
|
+
const prompt = typeof params.prompt === 'string' ? params.prompt.trim() : '';
|
|
66
|
+
if (!prompt)
|
|
67
|
+
throw new Error(`${variant.name} 的提示词不能为空`);
|
|
68
|
+
if (prompt.length > 8000)
|
|
69
|
+
throw new Error(`${variant.name} 提示词最多 8000 字符`);
|
|
70
|
+
const seconds = duration(params);
|
|
71
|
+
const images = resolveKieImageSources(params);
|
|
72
|
+
const rawRatio = String(param(params, p, 'AspectRatio') ?? 'smart');
|
|
73
|
+
const input = { prompt, duration: seconds, resolution: resolution(params) };
|
|
74
|
+
if (isReference(params)) {
|
|
75
|
+
const videos = resolveKieVideoSources(params);
|
|
76
|
+
if (images.length > 10)
|
|
77
|
+
throw new Error(`${variant.name} 最多 10 张参考图`);
|
|
78
|
+
if (videos.length > 5)
|
|
79
|
+
throw new Error(`${variant.name} 最多 5 段参考视频`);
|
|
80
|
+
const elements = buildKieSubjectElements(param(params, p, 'Elements'), variant.name, { sendType: variant.elementTypeField });
|
|
81
|
+
const videoElementCount = elements.filter(element => typeof element.video_url === 'string').length;
|
|
82
|
+
if (videos.length + videoElementCount > 5)
|
|
83
|
+
throw new Error(`${variant.name} 参考视频与视频元素合计最多 5 个`);
|
|
84
|
+
if (images.length + videos.length + elements.length > 15)
|
|
85
|
+
throw new Error(`${variant.name} 参考图、参考视频与元素合计最多 15 个`);
|
|
86
|
+
if (images.length)
|
|
87
|
+
input.image_urls = images;
|
|
88
|
+
if (elements.length)
|
|
89
|
+
input.elements = elements;
|
|
90
|
+
if (videos.length) {
|
|
91
|
+
input.video_urls = videos;
|
|
92
|
+
input.keep_original_sound = param(params, p, 'KeepOriginalSound') === true;
|
|
93
|
+
}
|
|
94
|
+
input.aspect_ratio = RATIOS.includes(rawRatio) ? rawRatio : (images.length || videos.length ? 'auto' : '16:9');
|
|
95
|
+
return { model: `${variant.modelPrefix}reference-to-video`, input };
|
|
96
|
+
}
|
|
97
|
+
// 有帧时画面比例跟随首帧,比例只在纯文生视频时生效。
|
|
98
|
+
const maxFrames = variant.firstFrameOnly ? 1 : Math.min(clampedSeconds(params) + 1, 10);
|
|
99
|
+
if (images.length > maxFrames)
|
|
100
|
+
throw new Error(`${variant.name} ${seconds} 秒最多使用 ${maxFrames} 张关键帧`);
|
|
101
|
+
if (images.length === 0)
|
|
102
|
+
input.aspect_ratio = RATIOS.includes(rawRatio) ? rawRatio : nearestRatio(params);
|
|
103
|
+
if (images[0])
|
|
104
|
+
input.first_frame_url = images[0];
|
|
105
|
+
if (images.length > 1) {
|
|
106
|
+
input.last_frame_url = images[images.length - 1];
|
|
107
|
+
if (images.length > 2)
|
|
108
|
+
input.keyframe_urls = images.slice(1, -1);
|
|
109
|
+
}
|
|
110
|
+
return { model: `${variant.modelPrefix}keyframe-to-video`, input };
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
pricing: {
|
|
114
|
+
currency: '$',
|
|
115
|
+
calculator: (params) => {
|
|
116
|
+
const rate = variant.rates[resolution(params)];
|
|
117
|
+
const seconds = clampedSeconds(params);
|
|
118
|
+
const elementSeconds = subjectElementVideoSeconds(param(params, p, 'Elements'));
|
|
119
|
+
if (!isReference(params) || (!hasUploadedVideo(params) && elementSeconds === 0))
|
|
120
|
+
return rate.base * seconds;
|
|
121
|
+
// 带视频输入(参考视频或视频元素)时输入时长也计费:输入不超过输出按输出 2 倍计,否则按输入加输出。
|
|
122
|
+
const input = resolveUploadedVideoDurationSeconds(params, 5) + elementSeconds;
|
|
123
|
+
return rate.withVideo * Math.max(seconds * 2, input + seconds);
|
|
124
|
+
},
|
|
125
|
+
description: Object.entries(variant.rates)
|
|
126
|
+
.map(([res, rate]) => `${res} $${rate.base}/秒,带参考视频或视频元素 $${rate.withVideo}/秒`).join(';') + ';带视频输入时按输入加输出时长计费(至少为输出的 2 倍)',
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import { defineModel } from "../defineModel.js";
|
|
2
|
-
import { countUploadedImages,
|
|
2
|
+
import { countUploadedImages, hasUploadedImage } from './mediaSources.js';
|
|
3
|
+
import { resolveUploadedVideoDurationSeconds } from '../shared/mediaPresence.js';
|
|
3
4
|
const KIE_CREATE_TASK_ENDPOINT = '/api/v1/jobs/createTask';
|
|
4
5
|
export const kieMiniMaxH3Model = defineModel({
|
|
5
6
|
meta: {
|
|
6
7
|
id: 'kie-minimax-h3',
|
|
7
8
|
canonicalModelId: 'minimax-h3',
|
|
8
|
-
seriesId: '
|
|
9
|
+
seriesId: 'hailuo',
|
|
9
10
|
seriesRank: 3,
|
|
10
11
|
provider: 'kie',
|
|
11
12
|
type: 'video',
|
|
12
|
-
tags: [
|
|
13
|
-
'text-to-video',
|
|
14
|
-
'image-to-video',
|
|
15
|
-
'start-end-frame',
|
|
16
|
-
'reference-mode',
|
|
17
|
-
'multi-mode-switch',
|
|
18
|
-
'mixed-upload-mode',
|
|
19
|
-
'supports-audio-generation',
|
|
20
|
-
'provider-kie'
|
|
21
|
-
],
|
|
13
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
22
14
|
polling: { interval: 5000, maxAttempts: 180, expectedAttempts: 60 }
|
|
23
15
|
},
|
|
24
16
|
inputLimits: {
|
|
@@ -31,6 +23,10 @@ export const kieMiniMaxH3Model = defineModel({
|
|
|
31
23
|
images: { max: 9 },
|
|
32
24
|
videos: { max: 3 },
|
|
33
25
|
audios: { max: 3 }
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
imageConstraints: { minShortSidePx: 256, maxLongSidePx: 5760, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
29
|
+
videoConstraints: { minShortSidePx: 256, maxLongSidePx: 5760, minAspectRatio: 0.4, maxAspectRatio: 2.5 }
|
|
34
30
|
}
|
|
35
31
|
]
|
|
36
32
|
},
|
|
@@ -126,9 +122,11 @@ export const kieMiniMaxH3Model = defineModel({
|
|
|
126
122
|
return { model: 'minimax-h3/reference-to-video', input };
|
|
127
123
|
}
|
|
128
124
|
if (images.length > 0) {
|
|
129
|
-
|
|
125
|
+
// KIE 图生视频的字段是 first_frame_url / last_frame_url(APIMart 叫 first_frame_image);
|
|
126
|
+
// 字段名不认识时平台把请求当成文生视频,报“aspect_ratio is required for text-to-video”(2026-11-08 实调)。
|
|
127
|
+
input.first_frame_url = images[0];
|
|
130
128
|
if (images[1])
|
|
131
|
-
input.
|
|
129
|
+
input.last_frame_url = images[1];
|
|
132
130
|
return { model: 'minimax-h3/image-to-video', input };
|
|
133
131
|
}
|
|
134
132
|
input.aspect_ratio = aspectRatio;
|
|
@@ -139,15 +137,12 @@ export const kieMiniMaxH3Model = defineModel({
|
|
|
139
137
|
currency: '$',
|
|
140
138
|
calculator: (params) => {
|
|
141
139
|
const duration = Math.min(15, Math.max(4, Number(params.kieMiniMaxH3Duration || 6)));
|
|
142
|
-
const rate = params.kieMiniMaxH3Resolution === '2K' ? 0.
|
|
143
|
-
const
|
|
144
|
-
? Math.max(0, params.__firstVideoDurationSeconds)
|
|
145
|
-
: 0;
|
|
146
|
-
const billedSeconds = duration + firstVideoDuration * countUploadedVideos(params);
|
|
140
|
+
const rate = params.kieMiniMaxH3Resolution === '2K' ? 0.065 : 0.04;
|
|
141
|
+
const billedSeconds = duration + resolveUploadedVideoDurationSeconds(params);
|
|
147
142
|
const extraImages = Math.max(0, countUploadedImages(params) - 5);
|
|
148
|
-
return billedSeconds * rate + extraImages * 0.
|
|
143
|
+
return billedSeconds * rate + extraImages * 0.02;
|
|
149
144
|
},
|
|
150
|
-
description: '768P $0.
|
|
145
|
+
description: '768P $0.04/秒,2K $0.065/秒;输入视频时长同价计费,前 5 张参考图免费,之后 $0.02/张'
|
|
151
146
|
}
|
|
152
147
|
});
|
|
153
148
|
export default kieMiniMaxH3Model;
|
|
@@ -11,7 +11,7 @@ export const kieNanoBanana2LiteModel = defineModel({
|
|
|
11
11
|
seriesRank: 2,
|
|
12
12
|
provider: 'kie',
|
|
13
13
|
type: 'image',
|
|
14
|
-
tags: ['text-to-image', 'image-to-image'
|
|
14
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
15
15
|
aliases: ['nano-banana-2-lite-kie']
|
|
16
16
|
},
|
|
17
17
|
inputLimits: {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { resolveUploadedImageSources } from '../shared/mediaPresence.js';
|
|
3
|
+
import { NANO21_RATIOS, NANO21_RESOLUTIONS, nano21Choice, nano21Options, nano21Prompt, nano21Ratio } from '../shared/nanoBanana21.js';
|
|
4
|
+
export const kieNanoBanana21Model = defineModel({
|
|
5
|
+
meta: {
|
|
6
|
+
id: 'kie-nano-banana-2.1', canonicalModelId: 'nano-banana-2.1', seriesId: 'nano-banana', seriesRank: 2.1,
|
|
7
|
+
provider: 'kie', type: 'image',
|
|
8
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
9
|
+
polling: { interval: 3000, maxAttempts: 200, expectedAttempts: 40 },
|
|
10
|
+
},
|
|
11
|
+
inputLimits: { images: { max: 10 }, videos: { max: 0 }, audios: { max: 0 } },
|
|
12
|
+
params: [
|
|
13
|
+
{ id: 'kieNanoBanana21AspectRatio', type: 'dropdown', order: 1, default: 'smart', options: nano21Options(['smart', ...NANO21_RATIOS]) },
|
|
14
|
+
{ id: 'kieNanoBanana21Resolution', type: 'dropdown', order: 2, default: '1K', options: nano21Options(NANO21_RESOLUTIONS) },
|
|
15
|
+
{ id: 'kieNanoBanana21OutputFormat', type: 'dropdown', order: 3, default: 'jpg', options: nano21Options(['jpg', 'png']) },
|
|
16
|
+
],
|
|
17
|
+
endpoints: '/api/v1/jobs/createTask',
|
|
18
|
+
request: { builder: params => {
|
|
19
|
+
const images = resolveUploadedImageSources(params);
|
|
20
|
+
if (images.length > 10)
|
|
21
|
+
throw new Error('Nano Banana 2.1 KIE 最多支持 10 张参考图');
|
|
22
|
+
return { model: 'nano-banana-2-1', input: {
|
|
23
|
+
prompt: nano21Prompt(params, 20000), image_input: images,
|
|
24
|
+
aspect_ratio: nano21Ratio(params.kieNanoBanana21AspectRatio),
|
|
25
|
+
resolution: nano21Choice(params.kieNanoBanana21Resolution, NANO21_RESOLUTIONS, '1K'),
|
|
26
|
+
output_format: nano21Choice(params.kieNanoBanana21OutputFormat, ['jpg', 'png'], 'jpg'),
|
|
27
|
+
} };
|
|
28
|
+
} },
|
|
29
|
+
pricing: {
|
|
30
|
+
currency: '$', calculator: params => ({ '1K': 0.02, '2K': 0.03, '4K': 0.045 }[String(params.kieNanoBanana21Resolution ?? '1K')] ?? 0.02),
|
|
31
|
+
description: '1K $0.02/张、2K $0.03/张、4K $0.045/张(4/6/9 credits,$0.005/credit)',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default kieNanoBanana21Model;
|
|
@@ -11,11 +11,11 @@ export const kieNanoBanana2Model = defineModel({
|
|
|
11
11
|
seriesRank: 2,
|
|
12
12
|
provider: 'kie',
|
|
13
13
|
type: 'image',
|
|
14
|
-
tags: ['text-to-image', 'image-to-image'
|
|
14
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
15
15
|
aliases: ['nano-banana-2-kie']
|
|
16
16
|
},
|
|
17
17
|
inputLimits: {
|
|
18
|
-
images: { max:
|
|
18
|
+
images: { max: 10 },
|
|
19
19
|
videos: { max: 0 }
|
|
20
20
|
},
|
|
21
21
|
params: [
|
|
@@ -9,7 +9,7 @@ export const kieNanoBananaProModel = defineModel({
|
|
|
9
9
|
seriesRank: 2,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'image',
|
|
12
|
-
tags: ['text-to-image', 'image-to-image'
|
|
12
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
13
13
|
aliases: ['nano-banana-pro-kie']
|
|
14
14
|
},
|
|
15
15
|
inputLimits: {
|
|
@@ -12,15 +12,7 @@ export const kieQwenImage30Model = defineModel({
|
|
|
12
12
|
seriesRank: 3,
|
|
13
13
|
provider: 'kie',
|
|
14
14
|
type: 'image',
|
|
15
|
-
tags: [
|
|
16
|
-
'text-to-image',
|
|
17
|
-
'image-to-image',
|
|
18
|
-
'supports-image-editing',
|
|
19
|
-
'supports-multi-image',
|
|
20
|
-
'max-images-3',
|
|
21
|
-
'supports-prompt-expansion',
|
|
22
|
-
'provider-kie'
|
|
23
|
-
],
|
|
15
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
24
16
|
aliases: ['qwen-image-3-kie']
|
|
25
17
|
},
|
|
26
18
|
inputLimits: {
|
|
@@ -102,7 +94,7 @@ export const kieQwenImage30Model = defineModel({
|
|
|
102
94
|
const isPro = params.kieQwenImage30Variant === 'pro';
|
|
103
95
|
return {
|
|
104
96
|
model: isPro
|
|
105
|
-
? (images.length > 0 ? 'qwen3/pro-image-to-image' : 'qwen3-
|
|
97
|
+
? (images.length > 0 ? 'qwen3/pro-image-to-image' : 'qwen3/pro-text-to-image')
|
|
106
98
|
: (images.length > 0 ? 'qwen3/image-to-image' : 'qwen3/text-to-image'),
|
|
107
99
|
input
|
|
108
100
|
};
|
|
@@ -9,7 +9,8 @@ export const kieSeedance15ProModel = defineModel({
|
|
|
9
9
|
seriesRank: 1.5,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
|
|
12
|
+
deprecated: 'KIE 已下架 Seedance 1.5 Pro(文档与价格页均已移除)',
|
|
13
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame'],
|
|
13
14
|
polling: {
|
|
14
15
|
interval: 3000,
|
|
15
16
|
maxAttempts: 180,
|
|
@@ -9,7 +9,7 @@ export const kieSeedance20FastModel = defineModel({
|
|
|
9
9
|
seriesRank: 2.0,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
12
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
13
13
|
polling: {
|
|
14
14
|
interval: 3000,
|
|
15
15
|
maxAttempts: 180,
|
|
@@ -26,6 +26,10 @@ export const kieSeedance20FastModel = defineModel({
|
|
|
26
26
|
images: { max: 9 },
|
|
27
27
|
videos: { max: 3 },
|
|
28
28
|
audios: { max: 3 }
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
imageConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
32
|
+
videoConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minPixels: 409_600, maxPixels: 927_408, minAspectRatio: 0.4, maxAspectRatio: 2.5 }
|
|
29
33
|
}
|
|
30
34
|
]
|
|
31
35
|
},
|
|
@@ -9,7 +9,7 @@ export const kieSeedance20MiniModel = defineModel({
|
|
|
9
9
|
seriesRank: 2.0,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
12
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
13
13
|
polling: {
|
|
14
14
|
interval: 3000,
|
|
15
15
|
maxAttempts: 180,
|
|
@@ -26,6 +26,10 @@ export const kieSeedance20MiniModel = defineModel({
|
|
|
26
26
|
images: { max: 9 },
|
|
27
27
|
videos: { max: 3 },
|
|
28
28
|
audios: { max: 3 }
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
imageConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
32
|
+
videoConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minPixels: 409_600, maxPixels: 927_408, minAspectRatio: 0.4, maxAspectRatio: 2.5 }
|
|
29
33
|
}
|
|
30
34
|
]
|
|
31
35
|
},
|
|
@@ -9,7 +9,7 @@ export const kieSeedance20Model = defineModel({
|
|
|
9
9
|
seriesRank: 2.0,
|
|
10
10
|
provider: 'kie',
|
|
11
11
|
type: 'video',
|
|
12
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'
|
|
12
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame', 'reference-mode'],
|
|
13
13
|
polling: {
|
|
14
14
|
interval: 3000,
|
|
15
15
|
maxAttempts: 180,
|
|
@@ -26,6 +26,10 @@ export const kieSeedance20Model = defineModel({
|
|
|
26
26
|
images: { max: 9 },
|
|
27
27
|
videos: { max: 3 },
|
|
28
28
|
audios: { max: 3 }
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
imageConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minAspectRatio: 0.4, maxAspectRatio: 2.5 },
|
|
32
|
+
videoConstraints: { minShortSidePx: 300, maxLongSidePx: 6000, minPixels: 409_600, maxPixels: 927_408, minAspectRatio: 0.4, maxAspectRatio: 2.5 }
|
|
29
33
|
}
|
|
30
34
|
]
|
|
31
35
|
},
|