Poe API
GPT-4.1-mini
By
GPT-4.1 mini is a small, fast & affordable model that matches or beats GPT-4o in many intelligence and vision-related tasks. Supports 1M tokens of context.
Powered by OpenAI: gpt-4.1-mini-2025-04-14. Learn more
- OFFICIAL
Build with GPT-4.1-mini using the Poe API
Start by creating an API key, for use with any bot on Poe:
Use it in these apps
See allCode samples
Responses API
import openai
client = openai.OpenAI(
api_key = "YOUR_POE_API_KEY", # or os.getenv("POE_API_KEY")
base_url = "https://api.poe.com/v1",
)
response = client.responses.create(
model = "gpt-4.1-mini",
input = "Write a Python function where given an int array, it returns the length of the longest strictly increasing subsequence. Give the naive solution and an optimal solution."
)
print(response.output_text)See the full documentation for comprehensive guidance on getting started.
More from OpenAI
GPT-5.4-Mini
GPT-5.4-Nano
GPT-5.4-Pro
GPT-5.3-Codex-Spark
GPT-5.3-Instant
GPT-5.4
GPT-5.3-Codex
GPT-5.2-Codex
GPT-Image-1.5
GPT-5.2-Pro







