Poe API
Runway's Gen-4 Turbo model creates best-in-class, controllable, and high-fidelity video generations based on your prompts. Both text inputs (max 1000 characters) and image inputs are supported, but we recommend using image inputs for best results. Use --aspect_ratio (16:9, 1:1, 9:16, landscape, portrait) for landscape/portrait videos. Use --duration (5, 10) to specify video length in seconds. Full prompting guide here: https://help.runwayml.com/hc/en-us/articles/39789879462419-Gen-4-Video-Prompting-Guide
Powered by a server managed by @runwayml. Learn more
- OFFICIAL
Build with Runway-Gen-4-Turbo 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 = "runway-gen-4-turbo",
messages = [{
"role": "user",
"content": "A mouthwatering shot of a cheeseburger and french fries for a commercial"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.