Poe API
FLUX.1 Kontext [max] is a new premium model from Black Forest Labs that brings maximum performance across all aspects. Send a prompt to generate an image, or send an image along with an instruction to edit the image. Use `--aspect` to set the aspect ratio for text-to-image-generation. Available aspect ratio (21:9, 16:9, 4:3, 1:1, 3:4, 9:16, & 9:21)
Powered by a server managed by @fal. Learn more
- OFFICIAL
Build with Flux-Kontext-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-kontext-max",
messages = [{
"role": "user",
"content": "Alien landscape, in the style of classic science fiction book covers from the 1960s"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.