Poe API
Kling 2.1 Master: The premium endpoint for Kling 2.1, designed for top-tier image-to-video generation with unparalleled motion fluidity, cinematic visuals, and exceptional prompt precision.
Optional parameters:
- Negative prompt. Type things to avoid in generated images
- CFG Scale. To send a classifier-free guidance scale between 0.0 and 1.0. This is set to 0.5 as default
- Set aspect ratio. Select from (16:9, 1:1, 9:16). It is set to 16:9 aspect ratio as default.
- Set Duration. Select from (5 seconds or 10 seconds) to specify video length in seconds. Set to 5 seconds as default.
Powered by a server managed by @fal. Learn more
- OFFICIAL
Build with Kling-2.1-Master using the Poe API
Start by creating an API key, for use with any bot on Poe:
Code samples
python
import openai
client = openai.OpenAI(
api_key = "YOUR_POE_API_KEY", # or os.getenv("POE_API_KEY")
base_url = "https://api.poe.com/v1",
)
chat = client.chat.completions.create(
model = "kling-2.1-master",
messages = [{
"role": "user",
"content": "A man walking through a forest, 1980s horror film style"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.