@@ -82,6 +82,7 @@ type ImageEditRequest struct {
82
82
Image * os.File `json:"image,omitempty"`
83
83
Mask * os.File `json:"mask,omitempty"`
84
84
Prompt string `json:"prompt,omitempty"`
85
+ Model string `json:"model,omitempty"`
85
86
N int `json:"n,omitempty"`
86
87
Size string `json:"size,omitempty"`
87
88
ResponseFormat string `json:"response_format,omitempty"`
@@ -131,7 +132,7 @@ func (c *Client) CreateEditImage(ctx context.Context, request ImageEditRequest)
131
132
return
132
133
}
133
134
134
- req , err := c .newRequest (ctx , http .MethodPost , c .fullURL ("/images/edits" ),
135
+ req , err := c .newRequest (ctx , http .MethodPost , c .fullURL ("/images/edits" , request . Model ),
135
136
withBody (body ), withContentType (builder .FormDataContentType ()))
136
137
if err != nil {
137
138
return
@@ -144,6 +145,7 @@ func (c *Client) CreateEditImage(ctx context.Context, request ImageEditRequest)
144
145
// ImageVariRequest represents the request structure for the image API.
145
146
type ImageVariRequest struct {
146
147
Image * os.File `json:"image,omitempty"`
148
+ Model string `json:"model,omitempty"`
147
149
N int `json:"n,omitempty"`
148
150
Size string `json:"size,omitempty"`
149
151
ResponseFormat string `json:"response_format,omitempty"`
@@ -181,7 +183,7 @@ func (c *Client) CreateVariImage(ctx context.Context, request ImageVariRequest)
181
183
return
182
184
}
183
185
184
- req , err := c .newRequest (ctx , http .MethodPost , c .fullURL ("/images/variations" ),
186
+ req , err := c .newRequest (ctx , http .MethodPost , c .fullURL ("/images/variations" , request . Model ),
185
187
withBody (body ), withContentType (builder .FormDataContentType ()))
186
188
if err != nil {
187
189
return
0 commit comments