GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lo…
from openai import OpenAI
client = OpenAI(
base_url="https://orcarouter.ai/v1",
api_key="$ORCAROUTER_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4.1-mini",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| Input / 1M tokens | $0.400 |
| Output / 1M tokens | $1.60 |
| Cache read / 1M | $0.100 |
| Currency | USD |