Poe API
Flux.2 [Max] is Black Forest Labs' latest, state-of-the-art model with multi-reference support, fine-grained text rendering, and other features. Supports structured JSON prompts, and allows use of hex colour codes within the prompt for precise colouring. Send images (Up to 8 images) in jpeg/png/webp format for editing.
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-Max 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-max",
messages = [{
"role": "user",
"content": "Playful kitten in a flower garden, anime style, vibrant, Ghibli-esque"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.