Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ partial void PrepareOpenaiImagesGenerationsArguments(
ref string? xDeepinfraSource,
ref string? userAgent,
ref string? xiApiKey,
global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request);
global::DeepInfra.OpenAIImagesGenerationsIn request);
partial void PrepareOpenaiImagesGenerationsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? xDeepinfraSource,
string? userAgent,
string? xiApiKey,
global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request);
global::DeepInfra.OpenAIImagesGenerationsIn request);
partial void ProcessOpenaiImagesGenerationsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -38,7 +38,7 @@ partial void ProcessOpenaiImagesGenerationsResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerationsAsync(
global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request,
global::DeepInfra.OpenAIImagesGenerationsIn request,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
Expand Down Expand Up @@ -100,7 +100,7 @@ partial void ProcessOpenaiImagesGenerationsResponseContent(
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/x-www-form-urlencoded");
mediaType: "application/json");
__httpRequest.Content = __httpRequestContent;

PrepareRequest(
Expand Down Expand Up @@ -242,25 +242,58 @@ partial void ProcessOpenaiImagesGenerationsResponseContent(
/// <param name="xDeepinfraSource"></param>
/// <param name="userAgent"></param>
/// <param name="xiApiKey"></param>
/// <param name="inp"></param>
/// <param name="prompt"></param>
/// <param name="model"></param>
/// <param name="model">
/// The model to use for image generation.<br/>
/// Example: black-forest-labs/FLUX-1-schnell
/// </param>
/// <param name="n">
/// The number of images to generate.<br/>
/// Default Value: 1
/// </param>
/// <param name="responseFormat"></param>
/// <param name="size">
/// The size of the generated images. Available sizes depend on the model.<br/>
/// Default Value: 1024x1024
/// </param>
/// <param name="user">
/// A unique identifier representing your end-user, which can help to monitor and detect abuse.
/// </param>
/// <param name="prompt">
/// A text description of desired image(s).<br/>
/// Example: A photo of an astronaut riding a horse on Mars.
/// </param>
/// <param name="quality">
/// The quality of the image that will be generated.
/// </param>
/// <param name="style">
/// The style of the generated images.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerationsAsync(
string prompt,
string model,
string prompt,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
global::DeepInfra.OpenAIImagesGenerationsIn? inp = default,
int? n = default,
global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default,
string? size = default,
string? user = default,
string? quality = default,
string? style = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost
var __request = new global::DeepInfra.OpenAIImagesGenerationsIn
{
Inp = inp,
Prompt = prompt,
Model = model,
N = n,
ResponseFormat = responseFormat,
Size = size,
User = user,
Prompt = prompt,
Quality = quality,
Style = style,
};

return await OpenaiImagesGenerationsAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ partial void PrepareOpenaiImagesGenerations2Arguments(
ref string? xDeepinfraSource,
ref string? userAgent,
ref string? xiApiKey,
global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request);
global::DeepInfra.OpenAIImagesGenerationsIn request);
partial void PrepareOpenaiImagesGenerations2Request(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? xDeepinfraSource,
string? userAgent,
string? xiApiKey,
global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request);
global::DeepInfra.OpenAIImagesGenerationsIn request);
partial void ProcessOpenaiImagesGenerations2Response(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -38,7 +38,7 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerations2Async(
global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request,
global::DeepInfra.OpenAIImagesGenerationsIn request,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
Expand Down Expand Up @@ -100,7 +100,7 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent(
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/x-www-form-urlencoded");
mediaType: "application/json");
__httpRequest.Content = __httpRequestContent;

PrepareRequest(
Expand Down Expand Up @@ -242,25 +242,58 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent(
/// <param name="xDeepinfraSource"></param>
/// <param name="userAgent"></param>
/// <param name="xiApiKey"></param>
/// <param name="inp"></param>
/// <param name="prompt"></param>
/// <param name="model"></param>
/// <param name="model">
/// The model to use for image generation.<br/>
/// Example: black-forest-labs/FLUX-1-schnell
/// </param>
/// <param name="n">
/// The number of images to generate.<br/>
/// Default Value: 1
/// </param>
/// <param name="responseFormat"></param>
/// <param name="size">
/// The size of the generated images. Available sizes depend on the model.<br/>
/// Default Value: 1024x1024
/// </param>
/// <param name="user">
/// A unique identifier representing your end-user, which can help to monitor and detect abuse.
/// </param>
/// <param name="prompt">
/// A text description of desired image(s).<br/>
/// Example: A photo of an astronaut riding a horse on Mars.
/// </param>
/// <param name="quality">
/// The quality of the image that will be generated.
/// </param>
/// <param name="style">
/// The style of the generated images.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerations2Async(
string prompt,
string model,
string prompt,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
global::DeepInfra.OpenAIImagesGenerationsIn? inp = default,
int? n = default,
global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default,
string? size = default,
string? user = default,
string? quality = default,
string? style = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost
var __request = new global::DeepInfra.OpenAIImagesGenerationsIn
{
Inp = inp,
Prompt = prompt,
Model = model,
N = n,
ResponseFormat = responseFormat,
Size = size,
User = user,
Prompt = prompt,
Quality = quality,
Style = style,
};

return await OpenaiImagesGenerations2Async(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial interface IDeepInfraClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerationsAsync(
global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request,
global::DeepInfra.OpenAIImagesGenerationsIn request,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
Expand All @@ -28,18 +28,46 @@ public partial interface IDeepInfraClient
/// <param name="xDeepinfraSource"></param>
/// <param name="userAgent"></param>
/// <param name="xiApiKey"></param>
/// <param name="inp"></param>
/// <param name="prompt"></param>
/// <param name="model"></param>
/// <param name="model">
/// The model to use for image generation.<br/>
/// Example: black-forest-labs/FLUX-1-schnell
/// </param>
/// <param name="n">
/// The number of images to generate.<br/>
/// Default Value: 1
/// </param>
/// <param name="responseFormat"></param>
/// <param name="size">
/// The size of the generated images. Available sizes depend on the model.<br/>
/// Default Value: 1024x1024
/// </param>
/// <param name="user">
/// A unique identifier representing your end-user, which can help to monitor and detect abuse.
/// </param>
/// <param name="prompt">
/// A text description of desired image(s).<br/>
/// Example: A photo of an astronaut riding a horse on Mars.
/// </param>
/// <param name="quality">
/// The quality of the image that will be generated.
/// </param>
/// <param name="style">
/// The style of the generated images.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerationsAsync(
string prompt,
string model,
string prompt,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
global::DeepInfra.OpenAIImagesGenerationsIn? inp = default,
int? n = default,
global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default,
string? size = default,
string? user = default,
string? quality = default,
string? style = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial interface IDeepInfraClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerations2Async(
global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request,
global::DeepInfra.OpenAIImagesGenerationsIn request,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
Expand All @@ -28,18 +28,46 @@ public partial interface IDeepInfraClient
/// <param name="xDeepinfraSource"></param>
/// <param name="userAgent"></param>
/// <param name="xiApiKey"></param>
/// <param name="inp"></param>
/// <param name="prompt"></param>
/// <param name="model"></param>
/// <param name="model">
/// The model to use for image generation.<br/>
/// Example: black-forest-labs/FLUX-1-schnell
/// </param>
/// <param name="n">
/// The number of images to generate.<br/>
/// Default Value: 1
/// </param>
/// <param name="responseFormat"></param>
/// <param name="size">
/// The size of the generated images. Available sizes depend on the model.<br/>
/// Default Value: 1024x1024
/// </param>
/// <param name="user">
/// A unique identifier representing your end-user, which can help to monitor and detect abuse.
/// </param>
/// <param name="prompt">
/// A text description of desired image(s).<br/>
/// Example: A photo of an astronaut riding a horse on Mars.
/// </param>
/// <param name="quality">
/// The quality of the image that will be generated.
/// </param>
/// <param name="style">
/// The style of the generated images.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.OpenAIImagesOut> OpenaiImagesGenerations2Async(
string prompt,
string model,
string prompt,
string? xDeepinfraSource = default,
string? userAgent = default,
string? xiApiKey = default,
global::DeepInfra.OpenAIImagesGenerationsIn? inp = default,
int? n = default,
global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default,
string? size = default,
string? user = default,
string? quality = default,
string? style = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading