@runwayml/sdk 4.13.1 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/character-performance.d.mts +17 -0
  12. package/resources/character-performance.d.mts.map +1 -1
  13. package/resources/character-performance.d.ts +17 -0
  14. package/resources/character-performance.d.ts.map +1 -1
  15. package/resources/generate/audio.d.mts +46 -24
  16. package/resources/generate/audio.d.mts.map +1 -1
  17. package/resources/generate/audio.d.ts +46 -24
  18. package/resources/generate/audio.d.ts.map +1 -1
  19. package/resources/generate/audio.js.map +1 -1
  20. package/resources/generate/audio.mjs.map +1 -1
  21. package/resources/generate/generate.d.mts +2 -2
  22. package/resources/generate/generate.d.mts.map +1 -1
  23. package/resources/generate/generate.d.ts +2 -2
  24. package/resources/generate/generate.d.ts.map +1 -1
  25. package/resources/generate/generate.js.map +1 -1
  26. package/resources/generate/generate.mjs.map +1 -1
  27. package/resources/generate/image.d.mts +21 -0
  28. package/resources/generate/image.d.mts.map +1 -1
  29. package/resources/generate/image.d.ts +21 -0
  30. package/resources/generate/image.d.ts.map +1 -1
  31. package/resources/generate/index.d.mts +1 -1
  32. package/resources/generate/index.d.mts.map +1 -1
  33. package/resources/generate/index.d.ts +1 -1
  34. package/resources/generate/index.d.ts.map +1 -1
  35. package/resources/generate/index.js.map +1 -1
  36. package/resources/generate/index.mjs +1 -1
  37. package/resources/generate/index.mjs.map +1 -1
  38. package/resources/generate/video.d.mts +21 -0
  39. package/resources/generate/video.d.mts.map +1 -1
  40. package/resources/generate/video.d.ts +21 -0
  41. package/resources/generate/video.d.ts.map +1 -1
  42. package/resources/image-to-video.d.mts +118 -27
  43. package/resources/image-to-video.d.mts.map +1 -1
  44. package/resources/image-to-video.d.ts +118 -27
  45. package/resources/image-to-video.d.ts.map +1 -1
  46. package/resources/image-upscale.d.mts +17 -0
  47. package/resources/image-upscale.d.mts.map +1 -1
  48. package/resources/image-upscale.d.ts +17 -0
  49. package/resources/image-upscale.d.ts.map +1 -1
  50. package/resources/index.d.mts +2 -2
  51. package/resources/index.d.mts.map +1 -1
  52. package/resources/index.d.ts +2 -2
  53. package/resources/index.d.ts.map +1 -1
  54. package/resources/index.js +1 -1
  55. package/resources/index.js.map +1 -1
  56. package/resources/index.mjs +1 -1
  57. package/resources/index.mjs.map +1 -1
  58. package/resources/organization/index.d.mts +3 -0
  59. package/resources/organization/index.d.mts.map +1 -0
  60. package/resources/organization/index.d.ts +3 -0
  61. package/resources/organization/index.d.ts.map +1 -0
  62. package/resources/organization/index.js +9 -0
  63. package/resources/organization/index.js.map +1 -0
  64. package/resources/organization/index.mjs +4 -0
  65. package/resources/organization/index.mjs.map +1 -0
  66. package/resources/organization/organization.d.mts +154 -0
  67. package/resources/organization/organization.d.mts.map +1 -0
  68. package/resources/organization/organization.d.ts +154 -0
  69. package/resources/organization/organization.d.ts.map +1 -0
  70. package/resources/organization/organization.js +32 -0
  71. package/resources/organization/organization.js.map +1 -0
  72. package/resources/organization/organization.mjs +27 -0
  73. package/resources/organization/organization.mjs.map +1 -0
  74. package/resources/organization/webapp/audit-logs.d.mts +216 -0
  75. package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
  76. package/resources/organization/webapp/audit-logs.d.ts +216 -0
  77. package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
  78. package/resources/organization/webapp/audit-logs.js +30 -0
  79. package/resources/organization/webapp/audit-logs.js.map +1 -0
  80. package/resources/organization/webapp/audit-logs.mjs +26 -0
  81. package/resources/organization/webapp/audit-logs.mjs.map +1 -0
  82. package/resources/organization/webapp/index.d.mts +3 -0
  83. package/resources/organization/webapp/index.d.mts.map +1 -0
  84. package/resources/organization/webapp/index.d.ts +3 -0
  85. package/resources/organization/webapp/index.d.ts.map +1 -0
  86. package/resources/organization/webapp/index.js +9 -0
  87. package/resources/organization/webapp/index.js.map +1 -0
  88. package/resources/organization/webapp/index.mjs +4 -0
  89. package/resources/organization/webapp/index.mjs.map +1 -0
  90. package/resources/organization/webapp/webapp.d.mts +73 -0
  91. package/resources/organization/webapp/webapp.d.mts.map +1 -0
  92. package/resources/organization/webapp/webapp.d.ts +73 -0
  93. package/resources/organization/webapp/webapp.d.ts.map +1 -0
  94. package/resources/organization/webapp/webapp.js +30 -0
  95. package/resources/organization/webapp/webapp.js.map +1 -0
  96. package/resources/organization/webapp/webapp.mjs +25 -0
  97. package/resources/organization/webapp/webapp.mjs.map +1 -0
  98. package/resources/organization/webapp.d.mts +2 -0
  99. package/resources/organization/webapp.d.mts.map +1 -0
  100. package/resources/organization/webapp.d.ts +2 -0
  101. package/resources/organization/webapp.d.ts.map +1 -0
  102. package/resources/organization/webapp.js +6 -0
  103. package/resources/organization/webapp.js.map +1 -0
  104. package/resources/organization/webapp.mjs +3 -0
  105. package/resources/organization/webapp.mjs.map +1 -0
  106. package/resources/organization.d.mts +1 -149
  107. package/resources/organization.d.mts.map +1 -1
  108. package/resources/organization.d.ts +1 -149
  109. package/resources/organization.d.ts.map +1 -1
  110. package/resources/organization.js +2 -20
  111. package/resources/organization.js.map +1 -1
  112. package/resources/organization.mjs +1 -18
  113. package/resources/organization.mjs.map +1 -1
  114. package/resources/recipes.d.mts +119 -0
  115. package/resources/recipes.d.mts.map +1 -1
  116. package/resources/recipes.d.ts +119 -0
  117. package/resources/recipes.d.ts.map +1 -1
  118. package/resources/routers.d.mts +194 -1
  119. package/resources/routers.d.mts.map +1 -1
  120. package/resources/routers.d.ts +194 -1
  121. package/resources/routers.d.ts.map +1 -1
  122. package/resources/routers.js +10 -0
  123. package/resources/routers.js.map +1 -1
  124. package/resources/routers.mjs +10 -0
  125. package/resources/routers.mjs.map +1 -1
  126. package/resources/sound-effect.d.mts +17 -0
  127. package/resources/sound-effect.d.mts.map +1 -1
  128. package/resources/sound-effect.d.ts +17 -0
  129. package/resources/sound-effect.d.ts.map +1 -1
  130. package/resources/speech-to-speech.d.mts +17 -0
  131. package/resources/speech-to-speech.d.mts.map +1 -1
  132. package/resources/speech-to-speech.d.ts +17 -0
  133. package/resources/speech-to-speech.d.ts.map +1 -1
  134. package/resources/tasks.d.mts +90 -0
  135. package/resources/tasks.d.mts.map +1 -1
  136. package/resources/tasks.d.ts +90 -0
  137. package/resources/tasks.d.ts.map +1 -1
  138. package/resources/text-to-image.d.mts +22 -0
  139. package/resources/text-to-image.d.mts.map +1 -1
  140. package/resources/text-to-image.d.ts +22 -0
  141. package/resources/text-to-image.d.ts.map +1 -1
  142. package/resources/text-to-speech.d.mts +77 -1
  143. package/resources/text-to-speech.d.mts.map +1 -1
  144. package/resources/text-to-speech.d.ts +77 -1
  145. package/resources/text-to-speech.d.ts.map +1 -1
  146. package/resources/text-to-video.d.mts +170 -17
  147. package/resources/text-to-video.d.mts.map +1 -1
  148. package/resources/text-to-video.d.ts +170 -17
  149. package/resources/text-to-video.d.ts.map +1 -1
  150. package/resources/video-to-video.d.mts +199 -7
  151. package/resources/video-to-video.d.mts.map +1 -1
  152. package/resources/video-to-video.d.ts +199 -7
  153. package/resources/video-to-video.d.ts.map +1 -1
  154. package/resources/video-upscale.d.mts +17 -0
  155. package/resources/video-upscale.d.mts.map +1 -1
  156. package/resources/video-upscale.d.ts +17 -0
  157. package/resources/video-upscale.d.ts.map +1 -1
  158. package/resources/voice-dubbing.d.mts +17 -0
  159. package/resources/voice-dubbing.d.mts.map +1 -1
  160. package/resources/voice-dubbing.d.ts +17 -0
  161. package/resources/voice-dubbing.d.ts.map +1 -1
  162. package/resources/voice-isolation.d.mts +17 -0
  163. package/resources/voice-isolation.d.mts.map +1 -1
  164. package/resources/voice-isolation.d.ts +17 -0
  165. package/resources/voice-isolation.d.ts.map +1 -1
  166. package/src/client.ts +12 -6
  167. package/src/resources/character-performance.ts +19 -0
  168. package/src/resources/generate/audio.ts +57 -27
  169. package/src/resources/generate/generate.ts +3 -1
  170. package/src/resources/generate/image.ts +24 -0
  171. package/src/resources/generate/index.ts +7 -1
  172. package/src/resources/generate/video.ts +24 -0
  173. package/src/resources/image-to-video.ts +147 -27
  174. package/src/resources/image-upscale.ts +19 -0
  175. package/src/resources/index.ts +4 -1
  176. package/src/resources/organization/index.ts +14 -0
  177. package/src/resources/organization/organization.ts +307 -0
  178. package/src/resources/organization/webapp/audit-logs.ts +440 -0
  179. package/src/resources/organization/webapp/index.ts +16 -0
  180. package/src/resources/organization/webapp/webapp.ts +118 -0
  181. package/src/resources/organization/webapp.ts +3 -0
  182. package/src/resources/organization.ts +1 -283
  183. package/src/resources/recipes.ts +133 -0
  184. package/src/resources/routers.ts +247 -0
  185. package/src/resources/sound-effect.ts +19 -0
  186. package/src/resources/speech-to-speech.ts +19 -0
  187. package/src/resources/tasks.ts +102 -0
  188. package/src/resources/text-to-image.ts +25 -0
  189. package/src/resources/text-to-speech.ts +142 -1
  190. package/src/resources/text-to-video.ts +208 -17
  191. package/src/resources/video-to-video.ts +246 -7
  192. package/src/resources/video-upscale.ts +19 -0
  193. package/src/resources/voice-dubbing.ts +19 -0
  194. package/src/resources/voice-isolation.ts +19 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
@@ -1,285 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- export class Organization extends APIResource {
8
- /**
9
- * Get usage tier and credit balance information about the organization associated
10
- * with the API key used to make the request.
11
- */
12
- retrieve(options?: RequestOptions): APIPromise<OrganizationRetrieveResponse> {
13
- return this._client.get('/v1/organization', options);
14
- }
15
-
16
- /**
17
- * Fetch credit usage data broken down by model and day for the organization
18
- * associated with the API key used to make the request. Up to 90 days of data can
19
- * be queried at a time.
20
- */
21
- retrieveUsage(
22
- body: OrganizationRetrieveUsageParams | null | undefined = {},
23
- options?: RequestOptions,
24
- ): APIPromise<OrganizationRetrieveUsageResponse> {
25
- return this._client.post('/v1/organization/usage', { body, ...options });
26
- }
27
- }
28
-
29
- export interface OrganizationRetrieveResponse {
30
- /**
31
- * The number of credits remaining in the organization account.
32
- */
33
- creditBalance: number;
34
-
35
- /**
36
- * Limits associated with the organization's tier.
37
- */
38
- tier: OrganizationRetrieveResponse.Tier;
39
-
40
- /**
41
- * Usage data for the organization.
42
- */
43
- usage: OrganizationRetrieveResponse.Usage;
44
- }
45
-
46
- export namespace OrganizationRetrieveResponse {
47
- /**
48
- * Limits associated with the organization's tier.
49
- */
50
- export interface Tier {
51
- /**
52
- * The maximum number of credits that can be purchased in a month.
53
- */
54
- maxMonthlyCreditSpend: number;
55
-
56
- /**
57
- * An object containing model-specific limits. Each key represents a model.
58
- */
59
- models: { [key: string]: Tier.Models };
60
- }
61
-
62
- export namespace Tier {
63
- /**
64
- * Limits associated with the model.
65
- */
66
- export interface Models {
67
- /**
68
- * The maximum number of generations that can be run concurrently for this model.
69
- */
70
- maxConcurrentGenerations: number;
71
-
72
- /**
73
- * The maximum number of generations that can be created each day for this model.
74
- */
75
- maxDailyGenerations: number;
76
- }
77
- }
78
-
79
- /**
80
- * Usage data for the organization.
81
- */
82
- export interface Usage {
83
- models: { [key: string]: Usage.Models };
84
- }
85
-
86
- export namespace Usage {
87
- /**
88
- * Usage data for the model.
89
- */
90
- export interface Models {
91
- /**
92
- * The number of generations that have been run for this model in the past day.
93
- */
94
- dailyGenerations: number;
95
- }
96
- }
97
- }
98
-
99
- export interface OrganizationRetrieveUsageResponse {
100
- /**
101
- * The list of models with usage during the queried time range.
102
- */
103
- models: Array<
104
- | 'gen4.5'
105
- | 'gen3a_turbo'
106
- | 'gen4_turbo'
107
- | 'gen4_image'
108
- | 'gen4_image_turbo'
109
- | 'gpt_image_2'
110
- | 'act_two'
111
- | 'gen4_aleph'
112
- | 'veo3'
113
- | 'veo3.1'
114
- | 'veo3.1_fast'
115
- | 'gemini_2.5_flash'
116
- | 'gemini_image3_pro'
117
- | 'gemini_image3.1_flash'
118
- | 'seedream5_pro'
119
- | 'seedream5_lite'
120
- | 'gemini_omni_flash'
121
- | 'eleven_multilingual_v2'
122
- | 'seed_audio'
123
- | 'eleven_v3'
124
- | 'eleven_text_to_sound_v2'
125
- | 'eleven_voice_isolation'
126
- | 'eleven_voice_dubbing'
127
- | 'eleven_multilingual_sts_v2'
128
- | 'eleven_scribe_v2'
129
- | 'gwm1_avatars'
130
- | 'gwm1_avatar_async_audio_to_video'
131
- | 'gwm1_avatar_async_text_to_video'
132
- | 'voice_processing'
133
- | 'seedance2'
134
- | 'seedance2_fast'
135
- | 'seedance2_mini'
136
- | 'magnific_precision_upscaler_v2'
137
- | 'magnific_video_upscaler_creative'
138
- | 'kling2.5_turbo_pro'
139
- | 'kling3.0_pro'
140
- | 'kling3.0_4k'
141
- | 'kling3.0_standard'
142
- | 'klingO3_pro'
143
- | 'klingO3_standard'
144
- | 'klingO3_4k'
145
- | 'happyhorse_1_0'
146
- | 'aleph2'
147
- | 'product_swap'
148
- | 'product_ad'
149
- | 'multi_shot_video'
150
- | 'product_ugc'
151
- | 'marketing_stock_image'
152
- | 'product_campaign_image'
153
- | 'ad_localization'
154
- >;
155
-
156
- results: Array<OrganizationRetrieveUsageResponse.Result>;
157
-
158
- /**
159
- * Reserved for future use.
160
- */
161
- apiKeys?: Array<string>;
162
-
163
- /**
164
- * Reserved for future use.
165
- */
166
- resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
167
- }
168
-
169
- export namespace OrganizationRetrieveUsageResponse {
170
- export interface Result {
171
- /**
172
- * The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
173
- * UTC.
174
- */
175
- date: string;
176
-
177
- /**
178
- * The credits used per model for the given date.
179
- */
180
- usedCredits: Array<Result.UsedCredit>;
181
- }
182
-
183
- export namespace Result {
184
- export interface UsedCredit {
185
- /**
186
- * The net number of credits spent on the model. May be negative if refunds
187
- * exceeded charges on this day.
188
- */
189
- amount: number;
190
-
191
- /**
192
- * The model that credits were spent on.
193
- */
194
- model:
195
- | 'gen4.5'
196
- | 'gen3a_turbo'
197
- | 'gen4_turbo'
198
- | 'gen4_image'
199
- | 'gen4_image_turbo'
200
- | 'gpt_image_2'
201
- | 'act_two'
202
- | 'gen4_aleph'
203
- | 'veo3'
204
- | 'veo3.1'
205
- | 'veo3.1_fast'
206
- | 'gemini_2.5_flash'
207
- | 'gemini_image3_pro'
208
- | 'gemini_image3.1_flash'
209
- | 'seedream5_pro'
210
- | 'seedream5_lite'
211
- | 'gemini_omni_flash'
212
- | 'eleven_multilingual_v2'
213
- | 'seed_audio'
214
- | 'eleven_v3'
215
- | 'eleven_text_to_sound_v2'
216
- | 'eleven_voice_isolation'
217
- | 'eleven_voice_dubbing'
218
- | 'eleven_multilingual_sts_v2'
219
- | 'eleven_scribe_v2'
220
- | 'gwm1_avatars'
221
- | 'gwm1_avatar_async_audio_to_video'
222
- | 'gwm1_avatar_async_text_to_video'
223
- | 'voice_processing'
224
- | 'seedance2'
225
- | 'seedance2_fast'
226
- | 'seedance2_mini'
227
- | 'magnific_precision_upscaler_v2'
228
- | 'magnific_video_upscaler_creative'
229
- | 'kling2.5_turbo_pro'
230
- | 'kling3.0_pro'
231
- | 'kling3.0_4k'
232
- | 'kling3.0_standard'
233
- | 'klingO3_pro'
234
- | 'klingO3_standard'
235
- | 'klingO3_4k'
236
- | 'happyhorse_1_0'
237
- | 'aleph2'
238
- | 'product_swap'
239
- | 'product_ad'
240
- | 'multi_shot_video'
241
- | 'product_ugc'
242
- | 'marketing_stock_image'
243
- | 'product_campaign_image'
244
- | 'ad_localization';
245
- }
246
- }
247
-
248
- export interface ResultsByAPIKey {
249
- date: string;
250
-
251
- usedCredits: Array<ResultsByAPIKey.UsedCredit>;
252
- }
253
-
254
- export namespace ResultsByAPIKey {
255
- export interface UsedCredit {
256
- amount: number;
257
-
258
- apiKeyId: string;
259
- }
260
- }
261
- }
262
-
263
- export interface OrganizationRetrieveUsageParams {
264
- /**
265
- * The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive.
266
- * If unspecified, it will default to thirty days after the start date. Must be
267
- * less than or equal to 90 days after the start date. All dates are in UTC.
268
- */
269
- beforeDate?: string;
270
-
271
- /**
272
- * The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
273
- * unspecified, it will default to 30 days before the current date. All dates are
274
- * in UTC.
275
- */
276
- startDate?: string;
277
- }
278
-
279
- export declare namespace Organization {
280
- export {
281
- type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
282
- type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse,
283
- type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams,
284
- };
285
- }
3
+ export * from './organization/index';
@@ -101,6 +101,25 @@ export interface RecipeAdLocalizationResponse {
101
101
  * The ID of the task that was created. Use this to retrieve the task later.
102
102
  */
103
103
  id: string;
104
+
105
+ /**
106
+ * The maximum credits this task may charge. The final amount may be lower after
107
+ * the task completes.
108
+ */
109
+ estimatedCost: RecipeAdLocalizationResponse.EstimatedCost;
110
+ }
111
+
112
+ export namespace RecipeAdLocalizationResponse {
113
+ /**
114
+ * The maximum credits this task may charge. The final amount may be lower after
115
+ * the task completes.
116
+ */
117
+ export interface EstimatedCost {
118
+ /**
119
+ * Estimated cost of the generation in credits.
120
+ */
121
+ credits: number;
122
+ }
104
123
  }
105
124
 
106
125
  export interface RecipeMarketingStockImageResponse {
@@ -108,6 +127,25 @@ export interface RecipeMarketingStockImageResponse {
108
127
  * The ID of the task that was created. Use this to retrieve the task later.
109
128
  */
110
129
  id: string;
130
+
131
+ /**
132
+ * The maximum credits this task may charge. The final amount may be lower after
133
+ * the task completes.
134
+ */
135
+ estimatedCost: RecipeMarketingStockImageResponse.EstimatedCost;
136
+ }
137
+
138
+ export namespace RecipeMarketingStockImageResponse {
139
+ /**
140
+ * The maximum credits this task may charge. The final amount may be lower after
141
+ * the task completes.
142
+ */
143
+ export interface EstimatedCost {
144
+ /**
145
+ * Estimated cost of the generation in credits.
146
+ */
147
+ credits: number;
148
+ }
111
149
  }
112
150
 
113
151
  export interface RecipeMultiShotVideoResponse {
@@ -115,6 +153,25 @@ export interface RecipeMultiShotVideoResponse {
115
153
  * The ID of the task that was created. Use this to retrieve the task later.
116
154
  */
117
155
  id: string;
156
+
157
+ /**
158
+ * The maximum credits this task may charge. The final amount may be lower after
159
+ * the task completes.
160
+ */
161
+ estimatedCost: RecipeMultiShotVideoResponse.EstimatedCost;
162
+ }
163
+
164
+ export namespace RecipeMultiShotVideoResponse {
165
+ /**
166
+ * The maximum credits this task may charge. The final amount may be lower after
167
+ * the task completes.
168
+ */
169
+ export interface EstimatedCost {
170
+ /**
171
+ * Estimated cost of the generation in credits.
172
+ */
173
+ credits: number;
174
+ }
118
175
  }
119
176
 
120
177
  export interface RecipeProductAdResponse {
@@ -122,6 +179,25 @@ export interface RecipeProductAdResponse {
122
179
  * The ID of the task that was created. Use this to retrieve the task later.
123
180
  */
124
181
  id: string;
182
+
183
+ /**
184
+ * The maximum credits this task may charge. The final amount may be lower after
185
+ * the task completes.
186
+ */
187
+ estimatedCost: RecipeProductAdResponse.EstimatedCost;
188
+ }
189
+
190
+ export namespace RecipeProductAdResponse {
191
+ /**
192
+ * The maximum credits this task may charge. The final amount may be lower after
193
+ * the task completes.
194
+ */
195
+ export interface EstimatedCost {
196
+ /**
197
+ * Estimated cost of the generation in credits.
198
+ */
199
+ credits: number;
200
+ }
125
201
  }
126
202
 
127
203
  export interface RecipeProductCampaignImageResponse {
@@ -129,6 +205,25 @@ export interface RecipeProductCampaignImageResponse {
129
205
  * The ID of the task that was created. Use this to retrieve the task later.
130
206
  */
131
207
  id: string;
208
+
209
+ /**
210
+ * The maximum credits this task may charge. The final amount may be lower after
211
+ * the task completes.
212
+ */
213
+ estimatedCost: RecipeProductCampaignImageResponse.EstimatedCost;
214
+ }
215
+
216
+ export namespace RecipeProductCampaignImageResponse {
217
+ /**
218
+ * The maximum credits this task may charge. The final amount may be lower after
219
+ * the task completes.
220
+ */
221
+ export interface EstimatedCost {
222
+ /**
223
+ * Estimated cost of the generation in credits.
224
+ */
225
+ credits: number;
226
+ }
132
227
  }
133
228
 
134
229
  export interface RecipeProductSwapResponse {
@@ -136,6 +231,25 @@ export interface RecipeProductSwapResponse {
136
231
  * The ID of the task that was created. Use this to retrieve the task later.
137
232
  */
138
233
  id: string;
234
+
235
+ /**
236
+ * The maximum credits this task may charge. The final amount may be lower after
237
+ * the task completes.
238
+ */
239
+ estimatedCost: RecipeProductSwapResponse.EstimatedCost;
240
+ }
241
+
242
+ export namespace RecipeProductSwapResponse {
243
+ /**
244
+ * The maximum credits this task may charge. The final amount may be lower after
245
+ * the task completes.
246
+ */
247
+ export interface EstimatedCost {
248
+ /**
249
+ * Estimated cost of the generation in credits.
250
+ */
251
+ credits: number;
252
+ }
139
253
  }
140
254
 
141
255
  export interface RecipeProductUgcResponse {
@@ -143,6 +257,25 @@ export interface RecipeProductUgcResponse {
143
257
  * The ID of the task that was created. Use this to retrieve the task later.
144
258
  */
145
259
  id: string;
260
+
261
+ /**
262
+ * The maximum credits this task may charge. The final amount may be lower after
263
+ * the task completes.
264
+ */
265
+ estimatedCost: RecipeProductUgcResponse.EstimatedCost;
266
+ }
267
+
268
+ export namespace RecipeProductUgcResponse {
269
+ /**
270
+ * The maximum credits this task may charge. The final amount may be lower after
271
+ * the task completes.
272
+ */
273
+ export interface EstimatedCost {
274
+ /**
275
+ * Estimated cost of the generation in credits.
276
+ */
277
+ credits: number;
278
+ }
146
279
  }
147
280
 
148
281
  export interface RecipeAdLocalizationParams {