GPT-5.1

Models

Model details

GPT-5.1

Model
gpt-5.1
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
Yes
Context window
400,000
Max tokens
128,000
Cost / million input
$1.25
Cost / million output
$10
Cost / million cache read
$0.13
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "cloudflare-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "gpt-5.1",
          "name": "GPT-5.1",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 400000,
          "maxTokens": 128000,
          "cost": {
            "input": 1.25,
            "output": 10,
            "cacheRead": 0.13,
            "cacheWrite": 0
          }
        }
      ],
      "api": "openai-responses",
      "baseUrl": "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai"
    }
  }
}