Unreal OpenAI API 1.0.0
ImageTypes.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Provider/OpenAIOptional.h"
7#include "ImageTypes.generated.h"
8
9UENUM(BlueprintType)
10enum class EImageModelEnum : uint8
11{
12 DALL_E_2,
13 DALL_E_3
14};
15
16UENUM(BlueprintType)
17enum class EImageSizeDalle2 : uint8
18{
19 Size_256x256,
20 Size_512x512,
21 Size_1024x1024
22};
23
24UENUM(BlueprintType)
25enum EImageSizeDalle3 : uint8
26{
27 Size_1024x1024,
28 Size_1792x1024,
29 Size_1024x1792
30};
31
32UENUM(BlueprintType)
33enum EOpenAIImageQuality
34{
35 Standard,
36 HD
37};
38
39UENUM(BlueprintType)
40enum EOpenAIImageStyle
41{
42 // Vivid causes the model to lean towards generating hyper - real and dramatic images.
43 Vivid,
44 // Natural causes the model to produce more natural, less hyper - real looking images.
45 Natural
46};
47
48UENUM(BlueprintType)
49enum class EOpenAIImageFormat : uint8
50{
51 URL,
52 B64_JSON
53};
54
56// REQUEST TYPES
58
59USTRUCT(BlueprintType)
61{
62 GENERATED_BODY()
63
64
67 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
68 FString Prompt;
69
74 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
75 FString Model{"dall-e-2"};
76
81 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
82 int32 N{1};
83
88 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
89 FString Quality{"standard"};
90
95 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
96 FString Response_Format{"url"};
97
102 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
103 FString Size{"1024x1024"};
104
112 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
113 FString Style{"vivid"};
114
118 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
120};
121
122USTRUCT(BlueprintType)
124{
125 GENERATED_BODY()
126
127
131 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
132 FString Image;
133
137 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
138 FString Prompt;
139
144 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
145 FString Mask;
146
151 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
152 FString Model{"dall-e-2"};
153
157 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
158 int32 N{1};
159
163 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
164 FString Size{"1024x1024"};
165
171 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
172 FString Response_Format{"url"};
173
177 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
179};
180
181USTRUCT(BlueprintType)
183{
184 GENERATED_BODY()
185
186
190 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
191 FString Image;
192
197 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
198 FString Model{"dall-e-2"};
199
204 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
205 int32 N{1};
206
212 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
213 FString Response_Format{"url"};
214
218 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
219 FString Size{"1024x1024"};
220
224 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
226};
227
229// RESPONSE TYPES
231
235USTRUCT(BlueprintType)
237{
238 GENERATED_BODY()
239
240
243 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
244 FString B64_JSON;
245
249 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
250 FString URL;
251
255 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
256 FString Revised_Prompt;
257};
258
259USTRUCT(BlueprintType)
261{
262 GENERATED_BODY()
263
264 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
265 int32 Created{};
266
267 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
268 TArray<FImageObject> Data;
269};
270
271USTRUCT(BlueprintType)
273{
274 GENERATED_BODY()
275};
276
277USTRUCT(BlueprintType)
279{
280 GENERATED_BODY()
281};
Definition: OpenAI.Build.cs:6
Definition: ImageTypes.h:273
Definition: ImageTypes.h:237
Definition: ImageTypes.h:261
Definition: ImageTypes.h:279
Definition: ImageTypes.h:124
Definition: ImageTypes.h:61
Definition: ImageTypes.h:183
Definition: OpenAIOptional.h:10