Poe API
GLM-4.7-Flash, a state-of-the-art model in the 30B class, delivers a compelling balance of high performance and efficiency. Tailored for Agentic Coding, it strengthens coding proficiency, long-horizon planning, and tool synergy, securing top-tier results on public benchmarks among similarly sized open-source models. It excels in complex agent tasks with superior instruction following for tool use, while significantly elevating the frontend aesthetics and completion efficiency of long-range workflows in Artifacts and Agentic Coding.
File Support: Text, Markdown and PDF files
Context window: 200k tokens
Powered by a server managed by @novitaai. Learn more
- OFFICIAL
Build with GLM-4.7-Flash 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 = "glm-4.7-flash",
messages = [{
"role": "user",
"content": "Write a Bash script to create a new directory and change the current directory to it"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.