litellm - 💡(How to fix) Fix [Bug]: Cannot use image generation in ChatGPT Subscription

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

i get error: Enable JavaScript and cookies to continue and 403 cloudflare like this https://github.com/BerriAI/litellm/issues/27175 the error is the same in both cases

Code Example

model_list:
  - model_name: chatgpt/gpt-5.4
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.4
  - model_name: chatgpt/gpt-5.4-pro
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.4-pro
  - model_name: chatgpt/gpt-5.3-codex
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-codex
  - model_name: chatgpt/gpt-5.3-codex-spark
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-codex-spark
  - model_name: chatgpt/gpt-5.3-instant
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-instant
  - model_name: chatgpt/gpt-5.3-chat-latest
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-chat-latest
  - model_name: chatgpt/gpt-image-1
    litellm_params:
      model: chatgpt/gpt-image-1
  - model_name: chatgpt/gpt-image-1.5
    litellm_params:
      model: chatgpt/gpt-image-1.5
  - model_name: chatgpt/gpt-image-2
    litellm_params:
      model: chatgpt/gpt-image-2

---

curl -v -X POST 'http://localhost:4000/v1/images/generations' -H 'Content-Type: application/json' -H 'Authorization: Bearer **************' -d '{
    "model": "chatgpt/gpt-image-2",
    "prompt": "Cute cat",
    "n": 1,
    "size": "1024x1024"
}'

---
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

Cannot use image generation in ChatGPT Subscription i get error: Enable JavaScript and cookies to continue and 403 cloudflare like this https://github.com/BerriAI/litellm/issues/27175

Steps to Reproduce

  1. config.yml
model_list:
  - model_name: chatgpt/gpt-5.4
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.4
  - model_name: chatgpt/gpt-5.4-pro
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.4-pro
  - model_name: chatgpt/gpt-5.3-codex
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-codex
  - model_name: chatgpt/gpt-5.3-codex-spark
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-codex-spark
  - model_name: chatgpt/gpt-5.3-instant
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-instant
  - model_name: chatgpt/gpt-5.3-chat-latest
    model_info:
      mode: responses
    litellm_params:
      model: chatgpt/gpt-5.3-chat-latest
  - model_name: chatgpt/gpt-image-1
    litellm_params:
      model: chatgpt/gpt-image-1
  - model_name: chatgpt/gpt-image-1.5
    litellm_params:
      model: chatgpt/gpt-image-1.5
  - model_name: chatgpt/gpt-image-2
    litellm_params:
      model: chatgpt/gpt-image-2
  1. try 2.1 curl
curl -v -X POST 'http://localhost:4000/v1/images/generations' -H 'Content-Type: application/json' -H 'Authorization: Bearer **************' -d '{
    "model": "chatgpt/gpt-image-2",
    "prompt": "Cute cat",
    "n": 1,
    "size": "1024x1024"
}'

2.2 openwebui

the error is the same in both cases

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

1.83.10

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Cannot use image generation in ChatGPT Subscription