FG
🤖 AI & LLMsOpenAI

openai-node v3.2.1 createImageEdit() endpoint stopped working

Freshover 2 years ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

Describe the bug I've been using openai-node v3.1.0 and openai.createImageEdit() worked well. I updated to the v3.2.1 to support the createChatCompletion() method, however my createImageEdit() is not working anymore. I get Error: Request failed with status code 400. If i downgrade to 3.1.0 is starts working back. Has createImageEdit() been changed in the latest update, so my call does not satisfy the new api? will add a code snippet wtih my method which works in v3.1.0 but doesn't in v3.2.1 <img width="567" alt="Screenshot 2023-03-03 at 12 40 49" src="https://user-images.githubusercontent.com/55192345/222686888-ee00c984-2d88-46df-8f8b-ba8bbddd6e65.png"> To Reproduce 1. update from v3.1.0 to v.3.2.1 2. call createImageEdit (implementation provided in snippets section) Code snippets [code block] OS macOS Node version v18.7.0 Library version 3.2.1

Error Output

Error: Request failed with status code 400. If i downgrade to 3.1.0 is starts working back. Has createImageEdit() been changed in the latest update, so my call does not satisfy the new api? will add a code s

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
84% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: openai-node v3.2.1 createImageEdit() endpoint stopped working

Low Risk

For those who encounter issue with typescript type vary bad 400 response. You probably do not have "square" image in your call. You must provide SQUARE image. This is `3.1.0` [code block] This is `3.2.0` [code block] Both worked

84

Trust Score

3 verifications

100% success
  1. 1

    For those who encounter issue with typescript type vary bad 400 response.

    You probably do not have "square" image in your call.

Validation

Resolved in openai/openai-node GitHub issue #84. Community reactions: 2 upvotes.

Verification Summary

Worked: 3
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

openaigptllmapibug