← Models
cloudflare-ai-gateway

GPT-4.1 mini

gpt-4.1-mini
Vision

Model details

Model
gpt-4.1-mini
Provider
cloudflare-ai-gateway
API
openai-responses
Base URL
https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai
Input
text, image
Reasoning
No
Context window
1,047,576
Max tokens
32,768

Pricing

USD per million tokens.

Input
$0.4
Output
$1.6
Cache read
$0.1
Cache write
$0

A reference estimate. Provider pricing and context tiers may vary.

Session cost calculator

Estimate the model requests made during an agent session.

96%
Estimated session$0.12
Uncached input
$0.03
Cache reads
$0.06
Cache writes
$0.0000
Output
$0.02
Without caching
$0.31

25 model requests

The first request starts cold unless marked otherwise. Output is billed separately from context growth. Providers differ in eligibility, context tiers, rounding, and retention.

Compatibility flags

supportsStrictMode
Yes