@@ -7,7 +7,7 @@ public partial class GenerateClient
77 {
88
99
10- private static readonly global ::Ideogram . EndPointSecurityRequirement s_PostEditImageV2V3SecurityRequirement0 =
10+ private static readonly global ::Ideogram . EndPointSecurityRequirement s_PostV1EditImageSecurityRequirement0 =
1111 new global ::Ideogram . EndPointSecurityRequirement
1212 {
1313 Authorizations = new global ::Ideogram . EndPointAuthorizationRequirement [ ]
@@ -21,28 +21,28 @@ public partial class GenerateClient
2121 } ,
2222 } ,
2323 } ;
24- private static readonly global ::Ideogram . EndPointSecurityRequirement [ ] s_PostEditImageV2V3SecurityRequirements =
24+ private static readonly global ::Ideogram . EndPointSecurityRequirement [ ] s_PostV1EditImageSecurityRequirements =
2525 new global ::Ideogram . EndPointSecurityRequirement [ ]
26- { s_PostEditImageV2V3SecurityRequirement0 ,
26+ { s_PostV1EditImageSecurityRequirement0 ,
2727 } ;
28- partial void PreparePostEditImageV2V3Arguments (
28+ partial void PreparePostV1EditImageArguments (
2929 global ::System . Net . Http . HttpClient httpClient ,
30- global ::Ideogram . EditImageV2RequestV3 request ) ;
31- partial void PreparePostEditImageV2V3Request (
30+ global ::Ideogram . V1EditImagesRequest request ) ;
31+ partial void PreparePostV1EditImageRequest (
3232 global ::System . Net . Http . HttpClient httpClient ,
3333 global ::System . Net . Http . HttpRequestMessage httpRequestMessage ,
34- global ::Ideogram . EditImageV2RequestV3 request ) ;
35- partial void ProcessPostEditImageV2V3Response (
34+ global ::Ideogram . V1EditImagesRequest request ) ;
35+ partial void ProcessPostV1EditImageResponse (
3636 global ::System . Net . Http . HttpClient httpClient ,
3737 global ::System . Net . Http . HttpResponseMessage httpResponseMessage ) ;
3838
39- partial void ProcessPostEditImageV2V3ResponseContent (
39+ partial void ProcessPostV1EditImageResponseContent (
4040 global ::System . Net . Http . HttpClient httpClient ,
4141 global ::System . Net . Http . HttpResponseMessage httpResponseMessage ,
4242 ref string content ) ;
4343
4444 /// <summary>
45- /// Edit with Ideogram V2 <br/>
45+ /// Edit images with a prompt <br/>
4646 /// Edit one or more images using a text prompt. Provide images via file upload<br/>
4747 /// or Ideogram image URLs, and describe the desired edit in your prompt.<br/>
4848 /// Supported image formats include JPEG, PNG, and WebP.<br/>
@@ -52,25 +52,25 @@ partial void ProcessPostEditImageV2V3ResponseContent(
5252 /// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
5353 /// <param name="cancellationToken">The token to cancel the operation with</param>
5454 /// <exception cref="global::Ideogram.ApiException"></exception>
55- public async global ::System . Threading . Tasks . Task < global ::Ideogram . EditImageGenerationResponseV3 > PostEditImageV2V3Async (
55+ public async global ::System . Threading . Tasks . Task < global ::Ideogram . V1EditImagesResponse > PostV1EditImageAsync (
5656
57- global ::Ideogram . EditImageV2RequestV3 request ,
57+ global ::Ideogram . V1EditImagesRequest request ,
5858 global ::Ideogram . AutoSDKRequestOptions ? requestOptions = default ,
5959 global ::System . Threading . CancellationToken cancellationToken = default )
6060 {
6161 request = request ?? throw new global ::System . ArgumentNullException ( nameof ( request ) ) ;
6262
6363 PrepareArguments (
6464 client : HttpClient ) ;
65- PreparePostEditImageV2V3Arguments (
65+ PreparePostV1EditImageArguments (
6666 httpClient : HttpClient ,
6767 request : request ) ;
6868
6969
7070 var __authorizations = global ::Ideogram . EndPointSecurityResolver . ResolveAuthorizations (
7171 availableAuthorizations : Authorizations ,
72- securityRequirements : s_PostEditImageV2V3SecurityRequirements ,
73- operationName : "PostEditImageV2V3Async " ) ;
72+ securityRequirements : s_PostV1EditImageSecurityRequirements ,
73+ operationName : "PostV1EditImageAsync " ) ;
7474
7575 using var __timeoutCancellationTokenSource = global ::Ideogram . AutoSDKRequestOptionsSupport . CreateTimeoutCancellationTokenSource (
7676 clientOptions : Options ,
@@ -89,7 +89,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
8989 global ::System . Net . Http . HttpRequestMessage __CreateHttpRequest ( )
9090 {
9191 var __pathBuilder = new global ::Ideogram . PathBuilder (
92- path : "/v1/ideogram-v3/instructional- edit" ,
92+ path : "/v1/edit" ,
9393 baseUri : HttpClient . BaseAddress ) ;
9494 var __path = __pathBuilder . ToString ( ) ;
9595 __path = global ::Ideogram . AutoSDKRequestOptionsSupport . AppendQueryParameters (
@@ -198,7 +198,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
198198 PrepareRequest (
199199 client : HttpClient ,
200200 request : __httpRequest ) ;
201- PreparePostEditImageV2V3Request (
201+ PreparePostV1EditImageRequest (
202202 httpClient : HttpClient ,
203203 httpRequestMessage : __httpRequest ,
204204 request : request ) ;
@@ -218,9 +218,9 @@ partial void ProcessPostEditImageV2V3ResponseContent(
218218 await global ::Ideogram . AutoSDKRequestOptionsSupport . OnBeforeRequestAsync (
219219 clientOptions : Options ,
220220 context : global ::Ideogram . AutoSDKRequestOptionsSupport . CreateHookContext (
221- operationId : "PostEditImageV2V3 " ,
222- methodName : "PostEditImageV2V3Async " ,
223- pathTemplate : "\" /v1/ideogram-v3/instructional- edit\" " ,
221+ operationId : "PostV1EditImage " ,
222+ methodName : "PostV1EditImageAsync " ,
223+ pathTemplate : "\" /v1/edit\" " ,
224224 httpMethod : "POST" ,
225225 baseUri : BaseUri ,
226226 request : __httpRequest ! ,
@@ -245,9 +245,9 @@ partial void ProcessPostEditImageV2V3ResponseContent(
245245 await global ::Ideogram . AutoSDKRequestOptionsSupport . OnAfterErrorAsync (
246246 clientOptions : Options ,
247247 context : global ::Ideogram . AutoSDKRequestOptionsSupport . CreateHookContext (
248- operationId : "PostEditImageV2V3 " ,
249- methodName : "PostEditImageV2V3Async " ,
250- pathTemplate : "\" /v1/ideogram-v3/instructional- edit\" " ,
248+ operationId : "PostV1EditImage " ,
249+ methodName : "PostV1EditImageAsync " ,
250+ pathTemplate : "\" /v1/edit\" " ,
251251 httpMethod : "POST" ,
252252 baseUri : BaseUri ,
253253 request : __httpRequest ! ,
@@ -280,9 +280,9 @@ partial void ProcessPostEditImageV2V3ResponseContent(
280280 await global ::Ideogram . AutoSDKRequestOptionsSupport . OnAfterErrorAsync (
281281 clientOptions : Options ,
282282 context : global ::Ideogram . AutoSDKRequestOptionsSupport . CreateHookContext (
283- operationId : "PostEditImageV2V3 " ,
284- methodName : "PostEditImageV2V3Async " ,
285- pathTemplate : "\" /v1/ideogram-v3/instructional- edit\" " ,
283+ operationId : "PostV1EditImage " ,
284+ methodName : "PostV1EditImageAsync " ,
285+ pathTemplate : "\" /v1/edit\" " ,
286286 httpMethod : "POST" ,
287287 baseUri : BaseUri ,
288288 request : __httpRequest ! ,
@@ -319,17 +319,17 @@ partial void ProcessPostEditImageV2V3ResponseContent(
319319 ProcessResponse (
320320 client : HttpClient ,
321321 response : __response ) ;
322- ProcessPostEditImageV2V3Response (
322+ ProcessPostV1EditImageResponse (
323323 httpClient : HttpClient ,
324324 httpResponseMessage : __response ) ;
325325 if ( __response . IsSuccessStatusCode )
326326 {
327327 await global ::Ideogram . AutoSDKRequestOptionsSupport . OnAfterSuccessAsync (
328328 clientOptions : Options ,
329329 context : global ::Ideogram . AutoSDKRequestOptionsSupport . CreateHookContext (
330- operationId : "PostEditImageV2V3 " ,
331- methodName : "PostEditImageV2V3Async " ,
332- pathTemplate : "\" /v1/ideogram-v3/instructional- edit\" " ,
330+ operationId : "PostV1EditImage " ,
331+ methodName : "PostV1EditImageAsync " ,
332+ pathTemplate : "\" /v1/edit\" " ,
333333 httpMethod : "POST" ,
334334 baseUri : BaseUri ,
335335 request : __httpRequest ! ,
@@ -347,9 +347,9 @@ partial void ProcessPostEditImageV2V3ResponseContent(
347347 await global ::Ideogram . AutoSDKRequestOptionsSupport . OnAfterErrorAsync (
348348 clientOptions : Options ,
349349 context : global ::Ideogram . AutoSDKRequestOptionsSupport . CreateHookContext (
350- operationId : "PostEditImageV2V3 " ,
351- methodName : "PostEditImageV2V3Async " ,
352- pathTemplate : "\" /v1/ideogram-v3/instructional- edit\" " ,
350+ operationId : "PostV1EditImage " ,
351+ methodName : "PostV1EditImageAsync " ,
352+ pathTemplate : "\" /v1/edit\" " ,
353353 httpMethod : "POST" ,
354354 baseUri : BaseUri ,
355355 request : __httpRequest ! ,
@@ -578,7 +578,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
578578 client : HttpClient ,
579579 response : __response ,
580580 content : ref __content ) ;
581- ProcessPostEditImageV2V3ResponseContent (
581+ ProcessPostV1EditImageResponseContent (
582582 httpClient : HttpClient ,
583583 httpResponseMessage : __response ,
584584 content : ref __content ) ;
@@ -588,7 +588,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
588588 __response . EnsureSuccessStatusCode ( ) ;
589589
590590 return
591- global ::Ideogram . EditImageGenerationResponseV3 . FromJson ( __content , JsonSerializerContext ) ??
591+ global ::Ideogram . V1EditImagesResponse . FromJson ( __content , JsonSerializerContext ) ??
592592 throw new global ::System . InvalidOperationException ( $ "Response deserialization failed for \" { __content } \" ") ;
593593 }
594594 catch ( global ::System . Exception __ex )
@@ -618,7 +618,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
618618 ) . ConfigureAwait ( false ) ;
619619
620620 return
621- await global ::Ideogram . EditImageGenerationResponseV3 . FromJsonStreamAsync ( __content , JsonSerializerContext ) . ConfigureAwait ( false ) ??
621+ await global ::Ideogram . V1EditImagesResponse . FromJsonStreamAsync ( __content , JsonSerializerContext ) . ConfigureAwait ( false ) ??
622622 throw new global ::System . InvalidOperationException ( "Response deserialization failed." ) ;
623623 }
624624 catch ( global ::System . Exception __ex )
@@ -658,7 +658,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
658658 }
659659 }
660660 /// <summary>
661- /// Edit with Ideogram V2 <br/>
661+ /// Edit images with a prompt <br/>
662662 /// Edit one or more images using a text prompt. Provide images via file upload<br/>
663663 /// or Ideogram image URLs, and describe the desired edit in your prompt.<br/>
664664 /// Supported image formats include JPEG, PNG, and WebP.<br/>
@@ -700,7 +700,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
700700 /// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
701701 /// <param name="cancellationToken">The token to cancel the operation with</param>
702702 /// <exception cref="global::System.InvalidOperationException"></exception>
703- public async global ::System . Threading . Tasks . Task < global ::Ideogram . EditImageGenerationResponseV3 > PostEditImageV2V3Async (
703+ public async global ::System . Threading . Tasks . Task < global ::Ideogram . V1EditImagesResponse > PostV1EditImageAsync (
704704 string prompt ,
705705 global ::System . Collections . Generic . IList < byte [ ] > ? images = default ,
706706 global ::System . Collections . Generic . IList < string > ? imageUrls = default ,
@@ -713,7 +713,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
713713 global ::Ideogram . AutoSDKRequestOptions ? requestOptions = default ,
714714 global ::System . Threading . CancellationToken cancellationToken = default )
715715 {
716- var __request = new global ::Ideogram . EditImageV2RequestV3
716+ var __request = new global ::Ideogram . V1EditImagesRequest
717717 {
718718 Prompt = prompt ,
719719 Images = images ,
@@ -726,7 +726,7 @@ partial void ProcessPostEditImageV2V3ResponseContent(
726726 TransparentBackground = transparentBackground ,
727727 } ;
728728
729- return await PostEditImageV2V3Async (
729+ return await PostV1EditImageAsync (
730730 request : __request ,
731731 requestOptions : requestOptions ,
732732 cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
0 commit comments