Poe API
Flux.2 [Flex] is Black Forest Lab's latest model, with Multi-Reference Support, Fine-grained text rendering, and other features. Supports structured JSON prompts, and allows use of hex color codes within the prompt for precise coloring.
Send images in jpeg/png/webp format for editing. Total megapixels (input + output) should not exceed 14 megapixels.
Optional parameters:
`--aspect` to set aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16
Powered by a server managed by @fal. Learn more
- OFFICIAL
Build with FLUX-2-Flex 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 = "flux-2-flex",
messages = [{
"role": "user",
"content": "Woman in a dreamlike garden, inspired by Frida Kahlo's self-portraits"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.