@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
|
@@ -3,7 +3,7 @@ import { speechNumber, speechString, speechText } from '../audio/tts-common.js';
|
|
|
3
3
|
export const kieGemini31FlashTtsModel = defineModel({
|
|
4
4
|
meta: {
|
|
5
5
|
id: 'kie-gemini-3.1-flash-tts', canonicalModelId: 'gemini-3.1-flash-tts', provider: 'kie', 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 } },
|
|
@@ -17,7 +17,8 @@ export const kieGemini31FlashTtsModel = defineModel({
|
|
|
17
17
|
builder: (params) => {
|
|
18
18
|
const speakers = Array.isArray(params.kieGeminiTtsSpeakers) && params.kieGeminiTtsSpeakers.length > 0
|
|
19
19
|
? params.kieGeminiTtsSpeakers
|
|
20
|
-
|
|
20
|
+
// 官方每个说话人必填 accent,没有口音设置时用 Neutral。
|
|
21
|
+
: [{ speaker_id: 'Speaker 1', voice_name: speechString(params.kieGeminiTtsVoice) ?? 'Fenrir', accent: 'Neutral' }];
|
|
21
22
|
const dialogueTurns = Array.isArray(params.kieGeminiTtsDialogueTurns) && params.kieGeminiTtsDialogueTurns.length > 0
|
|
22
23
|
? params.kieGeminiTtsDialogueTurns
|
|
23
24
|
: [{ speaker_id: 'Speaker 1', text: speechText(params) }];
|
|
@@ -33,8 +34,10 @@ export const kieGemini31FlashTtsModel = defineModel({
|
|
|
33
34
|
},
|
|
34
35
|
},
|
|
35
36
|
pricing: {
|
|
36
|
-
currency: '$',
|
|
37
|
-
|
|
37
|
+
currency: '$', billingMode: 'estimated',
|
|
38
|
+
// 按 Google 同名模型的完整输入/输出 token 窗口预留,避免把语速猜测当硬上限。
|
|
39
|
+
calculator: () => (8192 * 0.7 + 16384 * 14) / 1_000_000,
|
|
40
|
+
description: '上限估价 $0.2351:按输入8192、输出16384 Token预留;KIE费率$0.7/$14每百万Token。依据Google同名模型窗口,实际以KIE账单为准。',
|
|
38
41
|
},
|
|
39
42
|
});
|
|
40
43
|
export default kieGemini31FlashTtsModel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { gemini38TtsDefinition } from './gemini38Tts.js';
|
|
3
|
+
export const kieGemini38FlashLiteTtsModel = defineModel({
|
|
4
|
+
meta: {
|
|
5
|
+
id: 'kie-gemini-3.8-flash-lite-tts', canonicalModelId: 'gemini-3.8-flash-lite-tts', provider: 'kie', type: 'audio',
|
|
6
|
+
tags: ['text-to-audio'],
|
|
7
|
+
polling: { interval: 3000, maxAttempts: 120, expectedAttempts: 20 },
|
|
8
|
+
},
|
|
9
|
+
...gemini38TtsDefinition('google/gemini-3-8-flash-lite-tts', 8.4, 'Flash-Lite'),
|
|
10
|
+
});
|
|
11
|
+
export default kieGemini38FlashLiteTtsModel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { gemini38TtsDefinition } from './gemini38Tts.js';
|
|
3
|
+
export const kieGemini38FlashTtsModel = defineModel({
|
|
4
|
+
meta: {
|
|
5
|
+
id: 'kie-gemini-3.8-flash-tts', canonicalModelId: 'gemini-3.8-flash-tts', provider: 'kie', type: 'audio',
|
|
6
|
+
tags: ['text-to-audio'],
|
|
7
|
+
polling: { interval: 3000, maxAttempts: 120, expectedAttempts: 20 },
|
|
8
|
+
},
|
|
9
|
+
...gemini38TtsDefinition('google/gemini-3-8-flash-tts', 12.6, 'Flash'),
|
|
10
|
+
});
|
|
11
|
+
export default kieGemini38FlashTtsModel;
|
|
@@ -7,7 +7,7 @@ export const kieGeminiOmniVideoModel = defineModel({
|
|
|
7
7
|
canonicalModelId: 'gemini-omni-video',
|
|
8
8
|
provider: 'kie',
|
|
9
9
|
type: 'video',
|
|
10
|
-
tags: ['text-to-video', 'image-to-video', '
|
|
10
|
+
tags: ['text-to-video', 'image-to-video', 'reference-mode', 'video-to-video'],
|
|
11
11
|
polling: {
|
|
12
12
|
interval: 3000,
|
|
13
13
|
maxAttempts: 180,
|
|
@@ -71,19 +71,9 @@ export const kieGeminiOmniVideoModel = defineModel({
|
|
|
71
71
|
{ value: '1080p' },
|
|
72
72
|
{ value: '4k' }
|
|
73
73
|
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: 'kieGeminiOmniVideoAudioIds',
|
|
77
|
-
type: 'textarea',
|
|
78
|
-
order: 4,
|
|
79
|
-
default: ''
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 'kieGeminiOmniVideoCharacterIds',
|
|
83
|
-
type: 'textarea',
|
|
84
|
-
order: 5,
|
|
85
|
-
default: ''
|
|
86
74
|
}
|
|
75
|
+
// audio_ids / character_ids 要先经 omni/audio、omni/character 两个端点创建资产才拿得到 ID,
|
|
76
|
+
// 本应用还没有资产创建与管理入口,用户填不出来:按“不显示且不请求”处理(界面计划 5.8,P-17)
|
|
87
77
|
],
|
|
88
78
|
endpoints: KIE_CREATE_TASK_ENDPOINT,
|
|
89
79
|
request: {
|
|
@@ -103,16 +93,9 @@ export const kieGeminiOmniVideoModel = defineModel({
|
|
|
103
93
|
const images = pickSources(params.uploadedFilePaths, params.images);
|
|
104
94
|
const videos = pickSources(params.uploadedVideoFilePaths, params.videos);
|
|
105
95
|
const hasVideo = videos.length > 0;
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const audioIds = splitIds(params.kieGeminiOmniVideoAudioIds).slice(0, 3);
|
|
110
|
-
const characterIds = splitIds(params.kieGeminiOmniVideoCharacterIds);
|
|
111
|
-
if (hasVideo && characterIds.length > 3)
|
|
112
|
-
throw new Error('Gemini Omni 带视频时最多支持 3 个角色资产');
|
|
113
|
-
const availableImageSlots = (hasVideo ? MAX_IMAGES_WITH_VIDEO : MAX_IMAGES_NO_VIDEO) - characterIds.length;
|
|
114
|
-
if (availableImageSlots < 0 || images.length > availableImageSlots) {
|
|
115
|
-
throw new Error('Gemini Omni 的图片与角色资产超过共享的 7 个槽位');
|
|
96
|
+
const availableImageSlots = hasVideo ? MAX_IMAGES_WITH_VIDEO : MAX_IMAGES_NO_VIDEO;
|
|
97
|
+
if (images.length > availableImageSlots) {
|
|
98
|
+
throw new Error(`Gemini Omni 最多支持 ${availableImageSlots} 张参考图(共享 7 个槽位,参考视频占 2 个)`);
|
|
116
99
|
}
|
|
117
100
|
const resolution = params.kieGeminiOmniVideoResolution === '1080p' || params.kieGeminiOmniVideoResolution === '4k'
|
|
118
101
|
? params.kieGeminiOmniVideoResolution
|
|
@@ -149,10 +132,6 @@ export const kieGeminiOmniVideoModel = defineModel({
|
|
|
149
132
|
if (images.length > 0) {
|
|
150
133
|
input.image_urls = images;
|
|
151
134
|
}
|
|
152
|
-
if (audioIds.length > 0)
|
|
153
|
-
input.audio_ids = audioIds;
|
|
154
|
-
if (characterIds.length > 0)
|
|
155
|
-
input.character_ids = characterIds;
|
|
156
135
|
if (hasVideo) {
|
|
157
136
|
const rawClipDuration = typeof params.__firstVideoDurationSeconds === 'number' && params.__firstVideoDurationSeconds > 0
|
|
158
137
|
? params.__firstVideoDurationSeconds
|
|
@@ -163,9 +142,8 @@ export const kieGeminiOmniVideoModel = defineModel({
|
|
|
163
142
|
const clipDuration = Math.min(10, Math.max(1, Math.round(rawClipDuration)));
|
|
164
143
|
input.video_list = [{ url: videos[0], start: 0, ends: clipDuration }];
|
|
165
144
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
145
|
+
// 官方 OpenAPI 把 duration 列为必填;带参考视频时官方忽略它,界面也隐藏,固定发 8。
|
|
146
|
+
input.duration = videos.length > 0 ? '8' : String(params.kieGeminiOmniVideoDuration || '8');
|
|
169
147
|
return {
|
|
170
148
|
model: 'gemini-omni-video',
|
|
171
149
|
input
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { speechNumber, speechString, speechText } from '../audio/tts-common.js';
|
|
2
|
+
// KIE 按 Google 官方价七折卖;Google 2026 年内半价促销,2027-01-01 起恢复原价。估价直接用原价,促销期内实际扣费更低。
|
|
3
|
+
const INPUT_RATE = 0.7;
|
|
4
|
+
/** Gemini 3.8 Flash TTS 与 Flash-Lite TTS 请求结构相同,只有模型 ID 与输出单价不同。 */
|
|
5
|
+
export function gemini38TtsDefinition(model, outputRate, name) {
|
|
6
|
+
// 按 Gemini 3.1 Flash TTS 同样的输入 8192 / 输出 16384 Token 窗口预留上限;KIE 输入单价两档相同。
|
|
7
|
+
const estimate = (8192 * INPUT_RATE + 16384 * outputRate) / 1_000_000;
|
|
8
|
+
return {
|
|
9
|
+
inputLimits: { images: { max: 0 }, videos: { max: 0 } },
|
|
10
|
+
params: [
|
|
11
|
+
{ id: 'kieGemini38TtsVoice', type: 'composite', valueType: 'string', order: 1, default: 'Fola' },
|
|
12
|
+
{ id: 'kieGemini38TtsStyle', type: 'text', order: 2, default: '' },
|
|
13
|
+
{ id: 'kieGemini38TtsTemperature', type: 'number', order: 3, default: 1, min: 0, max: 2, step: 0.1 },
|
|
14
|
+
],
|
|
15
|
+
endpoints: '/api/v1/jobs/createTask',
|
|
16
|
+
request: {
|
|
17
|
+
builder: (params) => {
|
|
18
|
+
const speakers = Array.isArray(params.kieGeminiTtsSpeakers) && params.kieGeminiTtsSpeakers.length > 0
|
|
19
|
+
? params.kieGeminiTtsSpeakers
|
|
20
|
+
: [{ speaker_id: 'Speaker 1', voice_name: speechString(params.kieGemini38TtsVoice) ?? 'Fola' }];
|
|
21
|
+
const style = speechString(params.kieGemini38TtsStyle);
|
|
22
|
+
const turn = { speaker_id: 'Speaker 1', text: speechText(params, 10000) };
|
|
23
|
+
if (style)
|
|
24
|
+
turn.style = style;
|
|
25
|
+
const dialogueTurns = Array.isArray(params.kieGeminiTtsDialogueTurns) && params.kieGeminiTtsDialogueTurns.length > 0
|
|
26
|
+
? params.kieGeminiTtsDialogueTurns
|
|
27
|
+
: [turn];
|
|
28
|
+
return {
|
|
29
|
+
model,
|
|
30
|
+
input: { speakers, dialogue_turns: dialogueTurns, temperature: speechNumber(params.kieGemini38TtsTemperature) ?? 1 },
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
pricing: {
|
|
35
|
+
currency: '$', billingMode: 'estimated',
|
|
36
|
+
calculator: () => estimate,
|
|
37
|
+
description: `上限估价 $${estimate.toFixed(4)}:按输入8192、输出16384 Token预留;KIE ${name} 原价输入$${INPUT_RATE}/输出$${outputRate}每百万Token(2026 年内跟随 Google 促销减半),实际以KIE账单为准。`,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -5,7 +5,7 @@ export const kieGptImage25Model = defineModel({
|
|
|
5
5
|
meta: {
|
|
6
6
|
id: 'kie-gpt-image-2.5', canonicalModelId: 'gpt-image-2.5', seriesId: 'gpt-image', seriesRank: 2.5,
|
|
7
7
|
provider: 'kie', type: 'image',
|
|
8
|
-
tags: ['text-to-image', 'image-to-image', '
|
|
8
|
+
tags: ['text-to-image', 'image-to-image', 'transparent-background'],
|
|
9
9
|
},
|
|
10
10
|
inputLimits: { images: { max: 16 }, videos: { max: 0 } },
|
|
11
11
|
params: [
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { hasUploadedImage, resolveUploadedImageSources } from '../shared/mediaPresence.js';
|
|
3
|
+
import { GPT25_BACKGROUNDS, GPT25_QUALITIES, GPT25_RATIOS, GPT25_RESOLUTIONS, gpt25Options, gpt25Ratio } from '../shared/gptImage25.js';
|
|
4
|
+
import { GPT25_OUTPUT_REFERENCE } from '../shared/gptImage25Pricing.js';
|
|
5
|
+
const VARIANTS = ['flare', 'sunburst', 'economy'];
|
|
6
|
+
const ECONOMY_RATIOS = ['1:1', '16:9', '9:16', '3:2', '2:3', '21:9', '4:3'];
|
|
7
|
+
const COMPLEXITIES = ['low', 'medium', 'high'];
|
|
8
|
+
function choice(value, values, fallback) {
|
|
9
|
+
if (value === undefined)
|
|
10
|
+
return fallback;
|
|
11
|
+
if (typeof value !== 'string' || !values.includes(value))
|
|
12
|
+
throw new Error(`GPT Image 2.6 参数不支持:${String(value)}`);
|
|
13
|
+
return value;
|
|
14
|
+
}
|
|
15
|
+
const variantOf = (params) => choice(params.kieGpt26Variant, VARIANTS, 'flare');
|
|
16
|
+
const isTokenBilled = (params) => variantOf(params) !== 'economy';
|
|
17
|
+
export const kieGptImage26Model = defineModel({
|
|
18
|
+
meta: {
|
|
19
|
+
id: 'kie-gpt-image-2.6', canonicalModelId: 'gpt-image-2.6', seriesId: 'gpt-image', seriesRank: 2.6,
|
|
20
|
+
provider: 'kie', type: 'image',
|
|
21
|
+
tags: ['text-to-image', 'image-to-image', 'inpainting', 'transparent-background'],
|
|
22
|
+
polling: { interval: 3000, maxAttempts: 200 },
|
|
23
|
+
},
|
|
24
|
+
inputLimits: { images: { max: 16 }, videos: { max: 0 } },
|
|
25
|
+
params: [
|
|
26
|
+
{ id: 'kieGpt26Variant', type: 'dropdown', order: 1, default: 'flare', options: gpt25Options(VARIANTS) },
|
|
27
|
+
{ id: 'kieGpt26AspectRatio', type: 'dropdown', order: 2, default: 'smart', options: gpt25Options(['smart', ...GPT25_RATIOS]) },
|
|
28
|
+
{ id: 'kieGpt26Resolution', type: 'dropdown', order: 3, default: '1K', options: gpt25Options(GPT25_RESOLUTIONS), visible: { condition: isTokenBilled } },
|
|
29
|
+
{ id: 'kieGpt26Quality', type: 'dropdown', order: 4, default: 'medium', options: gpt25Options(GPT25_QUALITIES), visible: { condition: isTokenBilled } },
|
|
30
|
+
{ id: 'kieGpt26Complexity', type: 'dropdown', order: 5, default: 'high', options: gpt25Options(COMPLEXITIES), visible: { condition: isTokenBilled } },
|
|
31
|
+
{ id: 'kieGpt26Background', type: 'dropdown', order: 6, default: 'auto', options: gpt25Options(GPT25_BACKGROUNDS) },
|
|
32
|
+
{
|
|
33
|
+
id: 'kieGpt26Mask', type: 'image-upload', order: 7, default: [], valueType: 'array', maxCount: 1, format: 'url', accept: ['image/png'],
|
|
34
|
+
visible: { condition: params => isTokenBilled(params) && hasUploadedImage(params) },
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
runtimeConstraints: { mediaFields: [{ field: 'mask_url', kind: 'image' }] },
|
|
38
|
+
endpoints: '/api/v1/jobs/createTask',
|
|
39
|
+
request: { builder: (params) => {
|
|
40
|
+
const variant = variantOf(params);
|
|
41
|
+
const economy = variant === 'economy';
|
|
42
|
+
const images = resolveUploadedImageSources(params);
|
|
43
|
+
if (images.length > 16)
|
|
44
|
+
throw new Error('GPT Image 2.6 最多支持 16 张参考图');
|
|
45
|
+
const maxPrompt = economy ? 20000 : 32000;
|
|
46
|
+
if (typeof params.prompt !== 'string' || !params.prompt.trim())
|
|
47
|
+
throw new Error('请输入 GPT Image 2.6 提示词');
|
|
48
|
+
if (params.prompt.length > maxPrompt)
|
|
49
|
+
throw new Error(`GPT Image 2.6 提示词最多 ${maxPrompt} 字符`);
|
|
50
|
+
const input = {
|
|
51
|
+
prompt: params.prompt,
|
|
52
|
+
aspect_ratio: gpt25Ratio(params, params.kieGpt26AspectRatio, economy ? ECONOMY_RATIOS : GPT25_RATIOS),
|
|
53
|
+
background: choice(params.kieGpt26Background, GPT25_BACKGROUNDS, 'auto'),
|
|
54
|
+
};
|
|
55
|
+
if (!economy) {
|
|
56
|
+
input.resolution = choice(params.kieGpt26Resolution, GPT25_RESOLUTIONS, '1K');
|
|
57
|
+
input.quality = choice(params.kieGpt26Quality, GPT25_QUALITIES, 'medium');
|
|
58
|
+
input.complexity = choice(params.kieGpt26Complexity, COMPLEXITIES, 'high');
|
|
59
|
+
}
|
|
60
|
+
if (images.length)
|
|
61
|
+
input.input_urls = images;
|
|
62
|
+
const masks = params.kieGpt26Mask === undefined ? [] : params.kieGpt26Mask;
|
|
63
|
+
if (!Array.isArray(masks) || masks.length > 1 || masks.some(m => typeof m !== 'string' || !m.trim()))
|
|
64
|
+
throw new Error('局部重绘遮罩必须是单张图片');
|
|
65
|
+
if (masks.length && !economy) {
|
|
66
|
+
if (!images.length)
|
|
67
|
+
throw new Error('局部重绘需要先添加参考图');
|
|
68
|
+
input.mask_url = masks[0];
|
|
69
|
+
}
|
|
70
|
+
return { model: `gpt-image-2-6/${variant}-${images.length ? 'image-to-image' : 'text-to-image'}`, input };
|
|
71
|
+
} },
|
|
72
|
+
pricing: {
|
|
73
|
+
currency: '$', billingMode: 'estimated',
|
|
74
|
+
calculator: (params) => {
|
|
75
|
+
if (!isTokenBilled(params))
|
|
76
|
+
return 0.025;
|
|
77
|
+
const ratio = gpt25Ratio(params, params.kieGpt26AspectRatio, GPT25_RATIOS);
|
|
78
|
+
const resolution = choice(params.kieGpt26Resolution, GPT25_RESOLUTIONS, '1K');
|
|
79
|
+
const quality = choice(params.kieGpt26Quality, GPT25_QUALITIES, 'medium');
|
|
80
|
+
const index = ['low', 'medium', 'high', 'xhigh', 'max'].indexOf(quality === 'auto' ? 'max' : quality);
|
|
81
|
+
const reference = GPT25_OUTPUT_REFERENCE[ratio + (resolution === '1K' ? '' : '@' + resolution.toLowerCase())];
|
|
82
|
+
return reference.tokens[index] * 27 / 1_000_000;
|
|
83
|
+
},
|
|
84
|
+
description: 'Economy 1K $0.025/张;Flare/Sunburst 按 Token 计费(图片输出 $27、图片输入 $7.2、文本输入 $4.5 每百万 Token),按 2.5 同尺寸输出 Token 表估算输出费,输入另计,自动质量按最高档预估',
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
export default kieGptImage26Model;
|
|
@@ -6,14 +6,7 @@ export const kieGptImage2Model = defineModel({
|
|
|
6
6
|
canonicalModelId: 'gpt-image-2',
|
|
7
7
|
provider: 'kie',
|
|
8
8
|
type: 'image',
|
|
9
|
-
tags: [
|
|
10
|
-
'text-to-image',
|
|
11
|
-
'image-to-image',
|
|
12
|
-
'supports-image-editing',
|
|
13
|
-
'supports-multi-image',
|
|
14
|
-
'supports-4k',
|
|
15
|
-
'provider-kie'
|
|
16
|
-
],
|
|
9
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
17
10
|
aliases: ['gpt-image-2-kie']
|
|
18
11
|
},
|
|
19
12
|
inputLimits: {
|
|
@@ -67,9 +60,12 @@ export const kieGptImage2Model = defineModel({
|
|
|
67
60
|
}
|
|
68
61
|
return pair[0] / pair[1];
|
|
69
62
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
// 智能比例只在当前分辨率与有无参考图下支持的比例里挑最接近的,不自己挑出平台会拒绝的组合。
|
|
64
|
+
const pickClosestRatio = (target, resolution, hasImages) => {
|
|
65
|
+
const options = ['3:1', '21:9', '2:1', '16:9', '3:2', '4:3', '5:4', '1:1', '4:5', '3:4', '2:3', '9:16', '1:2', '9:21', '1:3']
|
|
66
|
+
.filter(ratio => resolution === '1K' || (!['5:4', '4:5'].includes(ratio)
|
|
67
|
+
&& (hasImages ? !(ratio === '1:1' && resolution === '4K') : !['3:1', '1:3', '9:21'].includes(ratio))));
|
|
68
|
+
let best = options[0];
|
|
73
69
|
let bestDiff = Number.POSITIVE_INFINITY;
|
|
74
70
|
for (const ratioText of options) {
|
|
75
71
|
const ratio = parseRatio(ratioText);
|
|
@@ -102,7 +98,7 @@ export const kieGptImage2Model = defineModel({
|
|
|
102
98
|
: null;
|
|
103
99
|
const aspectRatioText = typeof rawAspectRatio === 'string' ? rawAspectRatio : '';
|
|
104
100
|
const aspectRatio = !aspectRatioText || aspectRatioText === 'smart' || aspectRatioText === 'auto'
|
|
105
|
-
? (ratioHint
|
|
101
|
+
? pickClosestRatio(ratioHint ?? 1, String(rawResolution), images.length > 0)
|
|
106
102
|
: aspectRatioText;
|
|
107
103
|
const resolution = String(rawResolution);
|
|
108
104
|
const textUnsupportedRatios = ['5:4', '4:5', '3:1', '1:3', '9:21'];
|
|
@@ -8,7 +8,7 @@ export const kieGrokImagine20Model = defineModel({
|
|
|
8
8
|
seriesRank: 2,
|
|
9
9
|
provider: 'kie',
|
|
10
10
|
type: 'image',
|
|
11
|
-
tags: ['text-to-image', 'image-to-image'
|
|
11
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
12
12
|
aliases: ['grok-imagine-image-2-kie']
|
|
13
13
|
},
|
|
14
14
|
inputLimits: {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineModel } from '../defineModel.js';
|
|
2
|
+
import { resolveKieImageSources } from './mediaSources.js';
|
|
3
|
+
const RATIOS = ['auto', '16:9', '9:16', '1:1', '4:3', '3:4', '3:2', '2:3'];
|
|
4
|
+
// 官方价格页只列 480p/720p,1080p 没有公开价格,不开放。
|
|
5
|
+
const RATES = { '480p': 0.012, '720p': 0.0225 };
|
|
6
|
+
const resolutionOf = (params) => params.kieGrokVideo15Resolution === '720p' ? '720p' : '480p';
|
|
7
|
+
const secondsOf = (params) => Math.min(15, Math.max(1, Math.round(Number(params.kieGrokVideo15Duration ?? 8) || 8)));
|
|
8
|
+
export const kieGrokImagineVideo15Model = defineModel({
|
|
9
|
+
meta: {
|
|
10
|
+
id: 'kie-grok-imagine-video-1.5', canonicalModelId: 'grok-imagine-video-1.5', seriesId: 'grok-imagine-video', seriesRank: 1.5,
|
|
11
|
+
provider: 'kie', type: 'video',
|
|
12
|
+
tags: ['image-to-video'],
|
|
13
|
+
promptLanguage: 'en',
|
|
14
|
+
polling: { interval: 3000, maxAttempts: 200, expectedAttempts: 40 },
|
|
15
|
+
},
|
|
16
|
+
// 官方 schema 把 image_urls 列为必填且最多 1 张。
|
|
17
|
+
inputLimits: { images: { exact: 1 }, videos: { max: 0 } },
|
|
18
|
+
requirements: [{
|
|
19
|
+
id: 'kie-grok-video-1.5-image', require: { images: { exact: 1 } },
|
|
20
|
+
message: { title: '图片必需', message: 'Grok Imagine Video 1.5 需要上传 1 张图片。', type: 'warning' },
|
|
21
|
+
}],
|
|
22
|
+
params: [
|
|
23
|
+
{ id: 'kieGrokVideo15AspectRatio', type: 'dropdown', order: 1, default: 'auto', options: RATIOS.map(value => ({ value })) },
|
|
24
|
+
{ id: 'kieGrokVideo15Resolution', type: 'dropdown', order: 2, default: '480p', options: Object.keys(RATES).map(value => ({ value })) },
|
|
25
|
+
{ id: 'kieGrokVideo15Duration', type: 'number', order: 3, default: 8, min: 1, max: 15, step: 1 },
|
|
26
|
+
],
|
|
27
|
+
endpoints: '/api/v1/jobs/createTask',
|
|
28
|
+
request: { builder: (params) => {
|
|
29
|
+
const images = resolveKieImageSources(params);
|
|
30
|
+
if (images.length !== 1)
|
|
31
|
+
throw new Error('Grok Imagine Video 1.5 需要 1 张图片');
|
|
32
|
+
const prompt = typeof params.prompt === 'string' ? params.prompt : '';
|
|
33
|
+
if (prompt.length > 4096)
|
|
34
|
+
throw new Error('Grok Imagine Video 1.5 提示词最多 4096 字符');
|
|
35
|
+
const ratio = String(params.kieGrokVideo15AspectRatio ?? 'auto');
|
|
36
|
+
const input = {
|
|
37
|
+
image_urls: images,
|
|
38
|
+
aspect_ratio: RATIOS.includes(ratio) ? ratio : 'auto',
|
|
39
|
+
resolution: resolutionOf(params),
|
|
40
|
+
duration: secondsOf(params),
|
|
41
|
+
};
|
|
42
|
+
if (prompt)
|
|
43
|
+
input.prompt = prompt;
|
|
44
|
+
return { model: 'grok-imagine-video-1-5-preview', input };
|
|
45
|
+
} },
|
|
46
|
+
pricing: {
|
|
47
|
+
currency: '$',
|
|
48
|
+
calculator: params => RATES[resolutionOf(params)] * secondsOf(params),
|
|
49
|
+
description: '480p $0.012/秒,720p $0.0225/秒(含同步生成的音频)',
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
export default kieGrokImagineVideo15Model;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineModel } from "../defineModel.js";
|
|
2
|
-
import { resolveKieImageSources } from './mediaSources.js';
|
|
2
|
+
import { hasUploadedImage, resolveKieImageSources } from './mediaSources.js';
|
|
3
3
|
const KIE_CREATE_TASK_ENDPOINT = '/api/v1/jobs/createTask';
|
|
4
4
|
export const kieGrokImagineVideoModel = defineModel({
|
|
5
5
|
meta: {
|
|
@@ -7,7 +7,8 @@ export const kieGrokImagineVideoModel = defineModel({
|
|
|
7
7
|
canonicalModelId: 'grok-imagine-video',
|
|
8
8
|
provider: 'kie',
|
|
9
9
|
type: 'video',
|
|
10
|
-
tags: ['text-to-video', 'image-to-video'
|
|
10
|
+
tags: ['text-to-video', 'image-to-video'],
|
|
11
|
+
promptLanguage: 'en',
|
|
11
12
|
aliases: ['grok-imagine-video-kie'],
|
|
12
13
|
polling: {
|
|
13
14
|
interval: 3000,
|
|
@@ -24,6 +25,8 @@ export const kieGrokImagineVideoModel = defineModel({
|
|
|
24
25
|
id: 'kieGrokImagineVideoAspectRatio',
|
|
25
26
|
type: 'dropdown',
|
|
26
27
|
order: 1,
|
|
28
|
+
// 图生视频的比例跟随图片,不发送。
|
|
29
|
+
visible: { condition: (params) => !hasUploadedImage(params) },
|
|
27
30
|
default: '2:3',
|
|
28
31
|
options: [
|
|
29
32
|
{ value: '2:3' },
|
|
@@ -79,7 +82,8 @@ export const kieGrokImagineVideoModel = defineModel({
|
|
|
79
82
|
const model = hasImages
|
|
80
83
|
? 'grok-imagine/image-to-video'
|
|
81
84
|
: 'grok-imagine/text-to-video';
|
|
82
|
-
|
|
85
|
+
// 官方图生视频端点的 duration 是字符串,文生视频端点是数字。
|
|
86
|
+
const input = { prompt, duration: hasImages ? String(duration) : duration, resolution };
|
|
83
87
|
if (!hasImages && aspectRatio) {
|
|
84
88
|
input.aspect_ratio = aspectRatio;
|
|
85
89
|
}
|
|
@@ -6,7 +6,7 @@ export const kieGrokImagineModel = defineModel({
|
|
|
6
6
|
canonicalModelId: 'grok-imagine-image',
|
|
7
7
|
provider: 'kie',
|
|
8
8
|
type: 'image',
|
|
9
|
-
tags: ['text-to-image', '
|
|
9
|
+
tags: ['text-to-image', 'image-to-image'],
|
|
10
10
|
aliases: ['grok-imagine-kie']
|
|
11
11
|
},
|
|
12
12
|
inputLimits: {
|
|
@@ -54,6 +54,7 @@ export const kieGrokImagineModel = defineModel({
|
|
|
54
54
|
id: 'kieGrokImagineAspectRatio',
|
|
55
55
|
type: 'dropdown',
|
|
56
56
|
order: 3,
|
|
57
|
+
visible: { condition: 'kieGrokImagineMode !== "image-to-image"' },
|
|
57
58
|
default: '1:1',
|
|
58
59
|
options: [
|
|
59
60
|
{ value: '1:1' },
|
|
@@ -76,7 +77,8 @@ export const kieGrokImagineModel = defineModel({
|
|
|
76
77
|
const aspectRatio = params.kieGrokImagineAspectRatio || params.aspect_ratio;
|
|
77
78
|
const mode = params.kieGrokImagineMode === 'image-to-image' ? 'image-to-image' : 'text-to-image';
|
|
78
79
|
const input = { prompt };
|
|
79
|
-
|
|
80
|
+
// 图生图接口没有比例字段(官方 OpenAPI),比例跟随原图。
|
|
81
|
+
if (mode !== 'image-to-image' && aspectRatio && aspectRatio !== 'smart' && aspectRatio !== 'auto') {
|
|
80
82
|
input.aspect_ratio = aspectRatio;
|
|
81
83
|
}
|
|
82
84
|
if (mode === 'image-to-image') {
|
|
@@ -8,8 +8,10 @@ function resolveHailuo02Spec(params) {
|
|
|
8
8
|
let resolution = requestedResolution === '512P' || requestedResolution === '1080P'
|
|
9
9
|
? requestedResolution
|
|
10
10
|
: '768P';
|
|
11
|
-
//
|
|
12
|
-
|
|
11
|
+
// 512P 只属于 Standard 单图图生视频:文生视频固定 768P;MiniMax 首尾帧不支持 512P
|
|
12
|
+
// (官方首尾帧文档原文;KIE 文档未写,带尾帧的 512P 请求在 KIE 内部失败 500,2026-11-08 实调),
|
|
13
|
+
// 两种情况都按 768P 请求和计价。
|
|
14
|
+
if (images.length !== 1 && resolution === '512P') {
|
|
13
15
|
resolution = '768P';
|
|
14
16
|
}
|
|
15
17
|
// 1080P 只有 6 秒 Pro 档,历史工程的 10s + 1080P 回收到合法的 10s + 768P。
|
|
@@ -31,7 +33,7 @@ export const kieHailuo02Model = defineModel({
|
|
|
31
33
|
seriesRank: 2.0,
|
|
32
34
|
provider: 'kie',
|
|
33
35
|
type: 'video',
|
|
34
|
-
tags: ['text-to-video', 'image-to-video', 'start-end-frame'
|
|
36
|
+
tags: ['text-to-video', 'image-to-video', 'start-end-frame'],
|
|
35
37
|
aliases: ['hailuo-02-kie'],
|
|
36
38
|
polling: {
|
|
37
39
|
interval: 3000,
|
|
@@ -119,7 +121,7 @@ export const kieHailuo02Model = defineModel({
|
|
|
119
121
|
return 0.285;
|
|
120
122
|
return (resolution === '512P' ? 0.01 : 0.025) * duration;
|
|
121
123
|
},
|
|
122
|
-
description: 'Standard
|
|
124
|
+
description: 'Standard:文生与首尾帧固定 768P $0.025/秒,单图图生 768P $0.025/秒、512P $0.010/秒;Pro(1080P 固定 6 秒):$0.285/条'
|
|
123
125
|
}
|
|
124
126
|
});
|
|
125
127
|
export default kieHailuo02Model;
|
|
@@ -12,12 +12,15 @@ export const kieHappyHorse11Model = defineModel({
|
|
|
12
12
|
meta: {
|
|
13
13
|
id: 'kie-happyhorse-1.1', canonicalModelId: 'happyhorse-1.1', seriesId: 'happyhorse', seriesRank: 1.1,
|
|
14
14
|
provider: 'kie', type: 'video',
|
|
15
|
-
tags: ['text-to-video', 'image-to-video', 'reference-mode'
|
|
15
|
+
tags: ['text-to-video', 'image-to-video', 'reference-mode'],
|
|
16
16
|
polling: { interval: 5000, maxAttempts: 180, expectedAttempts: 60 },
|
|
17
17
|
},
|
|
18
18
|
inputLimits: {
|
|
19
19
|
images: { max: 1 }, videos: { max: 0 }, audios: { max: 0 },
|
|
20
|
-
rules: [
|
|
20
|
+
rules: [
|
|
21
|
+
{ imageConstraints: { minShortSidePx: 300, minAspectRatio: 0.4, maxAspectRatio: 2.5 } },
|
|
22
|
+
{ when: 'kieHappyHorse11Mode === "reference-to-video"', images: { min: 1, max: 9 }, imageConstraints: { minShortSidePx: 400 } },
|
|
23
|
+
],
|
|
21
24
|
},
|
|
22
25
|
params: [
|
|
23
26
|
{ id: 'kieHappyHorse11Mode', type: 'dropdown', order: 1, default: 'text-image-to-video',
|