Skip to content

Providers / OpenAI Codex (ChatGPT plan) · All access methods for openai/gpt-image-2

GPT-Image-2

openai-codex/gpt-image-2 Subscription models.dev2026-11-30

Type image · Released 2026-04-21

Context window
Unknown
Maximum output
Unknown
Price
$5 / –
Input / output, per 1M tokens
API list price of openai/gpt-image-2
Cache lifetime, short
Unknown
Cache lifetime, long
Unknown

Limits

LimitValue
Context window
The most input one request can carry, in tokens
Unknown
Maximum output
The most one response can hold. A maximum, not a default
Unknown

Limit evaluations tokens

DateRoute and clientContextInput acceptedInput refusedOutput limitRequested output acceptedEvidence
No limit evaluation on this entry.

Price

$5 input·– output per 1M tokens

API list prices of openai/gpt-image-2, as a reference. This entry is a subscription and is not paid per token.

ChargeRate
Input$5 / 1M tokens
OutputUnknown
Reasoning outputUnknown
Cache read$1.25 / 1M tokens
Cache writeUnknown
Image input$8 / 1M tokens
Image output$30 / 1M tokens
Image cache read$2 / 1M tokens

Conditional rates

ConditionRatesApplies to
No conditional rates recorded.
Other prices in the source, not shown above (0)

No other prices

Request controls

ControlSupportRequest fieldAccepted valuesDefaultConditions
Service tierUnknownUnknownUnknownUnknownUnknown

Source: Unknown

Prompt caching

LifetimeValue
Cache lifetime, short
Without asking for a lifetime, or with the shortest one
Unknown
Cache lifetime, long
When the request asks for a longer lifetime
Unknown

Cache evaluations

The cache evaluations of this entry, by retention
LifetimeClientTime since the prompt was cached · served from the cache, in percent, with hits/checks
At once2.5 min5 min7.5 min10 min15 min20 min25 min30 min40 min50 min1 h1 h 151 h 302 h4 h8 h12 h24 h
Short retentionNo evaluation
Long retentionNo evaluation

Checks served from the cache, in percent and as hits/checks, by time since the prompt was cached100 All67 Half or more33 Fewer0 None· Not checked at that ageMethodology

Cache modes

ModeSupportedMin. tokensBreakpointsTargets
Automatic implicit Unknown Unknown Unknown Unknown
Manual explicit Unknown Unknown Unknown Unknown

Source: models.dev · Cache modes

Retention

ControlSupportRequest fieldAccepted valuesDefaultConditions
Cache retentionUnknownUnknownUnknownUnknownUnknown

Source: Unknown

How Pi calls the model

Pi's model catalog does not list this entry.

Fetched 2026-11-30 from pi.dev/api/models

Provenance

ProvenanceValue
Sourcemodels.dev2026-11-30
Inherited fromNot inherited
CorrectionsNo corrections
EvidenceNo evidence

Data

GET /api/v1/entries/openai-codex/gpt-image-2

Show the full entry as published
{
  "id": "gpt-image-2",
  "name": "GPT-Image-2",
  "description": "Image model for prompt-driven generation, editing, and visual design workflows",
  "type": "image",
  "family": "gpt-image",
  "canonical_id": "openai/gpt-image-2",
  "release_date": "2026-04-21",
  "limit": {
    "context": 0,
    "output": 0
  },
  "capabilities": {
    "temperature": false,
    "top_k": false,
    "top_p": false,
    "system_updates": false,
    "effort_updates": false,
    "tools": {
      "supported": false
    },
    "reasoning": {
      "supported": false
    }
  },
  "cost": {
    "text": {
      "input": {
        "price": 0,
        "cache": {
          "read": 0
        }
      }
    },
    "image": {
      "input": {
        "price": 0,
        "cache": {
          "read": 0
        }
      },
      "output": {
        "price": 0
      }
    }
  },
  "modalities": {
    "input": [
      "text",
      "image/jpeg",
      "image/png",
      "image/webp"
    ],
    "output": [
      "image/png",
      "image/jpeg",
      "image/webp"
    ]
  },
  "api": {
    "images": {
      "base_url": "https://chatgpt.com/backend-api/codex",
      "sdk": {
        "aisdk": "@ai-sdk/openai",
        "opencodeai": "@opencode/ai/providers/openai/images"
      }
    }
  },
  "open_weights": false,
  "last_updated": "2026-04-21",
  "recommended_api": "images",
  "providers_dev": {
    "origin": "upstream",
    "access": "subscription",
    "provenance": [],
    "inherited": null,
    "cache": {
      "documented": {
        "support": "unknown",
        "modes": {
          "implicit": {
            "support": "unknown",
            "min_tokens": null,
            "max_breakpoints": null,
            "targets": null
          },
          "explicit": {
            "support": "unknown",
            "min_tokens": null,
            "max_breakpoints": null,
            "targets": null
          }
        }
      },
      "retention": {
        "support": "unknown",
        "parameter": null,
        "accepted_values": null,
        "default": null,
        "profiles": [],
        "conditions": [],
        "evidence": []
      },
      "lifetime": {
        "short": {
          "safe_s": null,
          "basis": "none",
          "source": null,
          "date": null,
          "documented_s": null,
          "measured_s": null,
          "documented_status": null,
          "clients": 0,
          "evaluations": 0,
          "checks": 0,
          "hits": 0,
          "checks_inside": null,
          "hits_inside": null,
          "tested_from_s": null,
          "first_miss_s": null
        },
        "long": {
          "safe_s": null,
          "basis": "none",
          "source": null,
          "date": null,
          "documented_s": null,
          "measured_s": null,
          "documented_status": null,
          "clients": 0,
          "evaluations": 0,
          "checks": 0,
          "hits": 0,
          "checks_inside": null,
          "hits_inside": null,
          "tested_from_s": null,
          "first_miss_s": null
        },
        "lifetimes": []
      },
      "evaluations": [],
      "findings": []
    },
    "pricing": {
      "coverage": "partial",
      "billing": "reference",
      "reference_ref": "openai/gpt-image-2",
      "rules": [
        {
          "id": "cost.text.input.price",
          "when": null,
          "meter": "text.input",
          "operation": "set",
          "amount": 5,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.text.input.price",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.text.input.cache.read",
          "when": null,
          "meter": "text.cache_read",
          "operation": "set",
          "amount": 1.25,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.text.input.cache.read",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.image.input.price",
          "when": null,
          "meter": "image.input",
          "operation": "set",
          "amount": 8,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.image.input.price",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.image.input.cache.read",
          "when": null,
          "meter": "image.cache_read",
          "operation": "set",
          "amount": 2,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.image.input.cache.read",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.image.output.price",
          "when": null,
          "meter": "image.output",
          "operation": "set",
          "amount": 30,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.image.output.price",
          "period": null,
          "resulting_rates": null
        }
      ],
      "rule_order": "listed",
      "unparsed": [],
      "evidence": [
        {
          "kind": "documented",
          "url": "https://models.dev",
          "date": "2026-11-30",
          "note": "The cost models.dev records for openai/gpt-image-2: the API list price this subscription entry refers to. Rules are in the order models.dev applies them."
        }
      ]
    },
    "request_controls": {
      "coverage": "unknown",
      "items": [
        {
          "id": "cache.retention",
          "support": "unknown",
          "when": null,
          "bindings": null,
          "options": null,
          "default": null,
          "conditions": [],
          "evidence": []
        },
        {
          "id": "service_tier",
          "support": "unknown",
          "when": null,
          "bindings": null,
          "options": null,
          "default": null,
          "conditions": [],
          "evidence": []
        }
      ]
    },
    "limits": {
      "measured": [],
      "from_measurement": [],
      "input_window": {
        "tokens": null,
        "basis": "none",
        "bound": null,
        "scope": null,
        "source": null,
        "date": null,
        "documented_tokens": null,
        "documented_field": null,
        "documented_source": null,
        "documented_date": null,
        "documented_status": null,
        "measured_tokens": null,
        "measured_bound": null,
        "measured_kind": null,
        "measured_refused": null,
        "measured_date": null,
        "clients": 0,
        "evaluations": 0,
        "measurements": []
      }
    },
    "safe": {
      "input_window": {
        "value": null,
        "unit": "tokens",
        "at_least": false,
        "scope": null,
        "window_tokens": null,
        "source": null,
        "date": null,
        "agreement": "none",
        "sources": [],
        "unknown_reason": null
      },
      "max_output": {
        "value": null,
        "unit": "tokens",
        "at_least": false,
        "scope": null,
        "window_tokens": null,
        "source": null,
        "date": null,
        "agreement": "none",
        "sources": [],
        "unknown_reason": null
      },
      "cache_short": {
        "value": null,
        "unit": "seconds",
        "at_least": false,
        "scope": null,
        "window_tokens": null,
        "source": null,
        "date": null,
        "agreement": "none",
        "sources": [],
        "unknown_reason": null
      },
      "cache_long": {
        "value": null,
        "unit": "seconds",
        "at_least": false,
        "scope": null,
        "window_tokens": null,
        "source": null,
        "date": null,
        "agreement": "none",
        "sources": [],
        "unknown_reason": null
      },
      "price": {
        "source": "models.dev",
        "date": "2026-11-30",
        "agreement": "single",
        "differs": [],
        "sources": [
          {
            "source": "models.dev",
            "withheld": false,
            "input": 5,
            "output": null,
            "cache_read": 1.25,
            "cache_write": null,
            "cache_write_lifetimes": [],
            "tiers": [],
            "date": "2026-11-30",
            "evidence_url": null
          }
        ]
      },
      "differing": []
    },
    "evidence": [],
    "verified": null,
    "pi": null
  }
}