Image edit करें
client.images.edit(params)/v1/images/editsSandBase के synchronous OpenAI Images-compatible multipart endpoint से एक या अधिक upload की गई images edit करें।
Request body
ImageEditParamsgpt-image-2, gpt-image-2.5-flare या gpt-image-2.5-sunburst में से एक।
अनुरोधित edit का text विवरण।
एक या अधिक source image files। कई images के लिए multipart field दोहराएँ।
inpainting के लिए वैकल्पिक mask image।
समर्थित होने पर लौटाई जाने वाली edited images की संख्या।
Model द्वारा समर्थित output dimensions।
Model द्वारा समर्थित output quality।
Output background setting।
समर्थित models को source image के details कितनी बारीकी से बनाए रखने चाहिए।
Output encoding, जैसे png, webp या jpeg।
0 से 100 तक output compression level।
Provider-compatible end-user identifier।
Multipart uploads
model, prompt और image को multipart/form-data के रूप में भेजें। image field दोहराने से कई source files बनी रहती हैं।
केवल synchronous
stream=true, mode=stream और mode=async अस्वीकार किए जाते हैं।
त्रुटियाँ
अमान्य multipart body, असमर्थित model, streaming mode या provider request।
API key मौजूद नहीं है या अमान्य है।
Organization या API Key की spending limit पूरी हो गई है।
API key scope इस endpoint की अनुमति नहीं देता।
Routed image-edit model उपलब्ध नहीं है।
Rate limit पार हो गई।
Request persistence या response processing विफल रही।
Provider ने अमान्य native response लौटाया।
कोई भी provider route सफल नहीं हुआ।