Poe API
Seedream 4.0 is ByteDance's latest and best text-to-image model, capable of impressive high fidelity image generation, with great text-rendering ability. Seedream 4.0 can also take in multiple images as references and combine them together or edit them to return an output.
Optional parameters:
Set aspect ratio. Select from (One of `16:9`, `4:3`, `1:1`, `3:4`, `9:16`).
Powered by a server managed by @Bytedance. Learn more
- OFFICIAL
Build with Seedream-4.0 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 = "seedream-4.0",
messages = [{
"role": "user",
"content": "Quiet village during cherry blossom season, Japanese ukiyo-e style"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.