@hedra/sdk 5.2.0 → 5.3.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 (122) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/api/resources/billing/client/Client.js +3 -3
  4. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/jobs/client/Client.d.ts +183 -0
  6. package/dist/cjs/api/resources/jobs/client/Client.js +594 -99
  7. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.ts +20 -0
  8. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.js +3 -0
  9. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.ts +20 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.js +3 -0
  11. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.ts +18 -0
  12. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.js +3 -0
  13. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.ts +18 -0
  14. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.js +3 -0
  15. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.ts +18 -0
  16. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.js +3 -0
  17. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.d.ts +17 -0
  18. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKrea2.js +3 -0
  19. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +6 -0
  20. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  21. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  22. package/dist/cjs/api/resources/models/client/Client.js +7 -7
  23. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  24. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  25. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreative.d.ts +21 -0
  26. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreative.js +13 -0
  27. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.ts +23 -0
  28. package/dist/cjs/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.js +3 -0
  29. package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.d.ts +21 -0
  30. package/dist/cjs/api/types/InputFlux3VideoUpscalerPrecise.js +13 -0
  31. package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.ts +23 -0
  32. package/dist/cjs/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.js +3 -0
  33. package/dist/cjs/api/types/InputGeminiOmniFlash11.d.ts +42 -0
  34. package/dist/cjs/api/types/InputGeminiOmniFlash11.js +19 -0
  35. package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.d.ts +23 -0
  36. package/dist/cjs/api/types/InputGeminiOmniFlash11EndImage.js +3 -0
  37. package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.d.ts +20 -0
  38. package/dist/cjs/api/types/InputGeminiOmniFlash11ImagesItem.js +3 -0
  39. package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.d.ts +23 -0
  40. package/dist/cjs/api/types/InputGeminiOmniFlash11SourceVideo.js +3 -0
  41. package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.d.ts +23 -0
  42. package/dist/cjs/api/types/InputGeminiOmniFlash11StartImage.js +3 -0
  43. package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.d.ts +20 -0
  44. package/dist/cjs/api/types/InputGeminiOmniFlash11VideosItem.js +3 -0
  45. package/dist/cjs/api/types/InputGptImage25Flare.d.ts +59 -0
  46. package/dist/cjs/api/types/InputGptImage25Flare.js +34 -0
  47. package/dist/cjs/api/types/InputGptImage25FlareImagesItem.d.ts +20 -0
  48. package/dist/cjs/api/types/InputGptImage25FlareImagesItem.js +3 -0
  49. package/dist/cjs/api/types/InputGptImage25Sunburst.d.ts +59 -0
  50. package/dist/cjs/api/types/InputGptImage25Sunburst.js +34 -0
  51. package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.d.ts +20 -0
  52. package/dist/cjs/api/types/InputGptImage25SunburstImagesItem.js +3 -0
  53. package/dist/cjs/api/types/InputKrea2.d.ts +52 -0
  54. package/dist/cjs/api/types/InputKrea2.js +30 -0
  55. package/dist/cjs/api/types/InputKrea2ImagesItem.d.ts +20 -0
  56. package/dist/cjs/api/types/InputKrea2ImagesItem.js +3 -0
  57. package/dist/cjs/api/types/index.d.ts +16 -0
  58. package/dist/cjs/api/types/index.js +16 -0
  59. package/dist/cjs/version.d.ts +1 -1
  60. package/dist/cjs/version.js +1 -1
  61. package/dist/esm/BaseClient.d.mts +2 -2
  62. package/dist/esm/BaseClient.mjs +3 -3
  63. package/dist/esm/api/resources/billing/client/Client.mjs +3 -3
  64. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  65. package/dist/esm/api/resources/jobs/client/Client.d.mts +183 -0
  66. package/dist/esm/api/resources/jobs/client/Client.mjs +594 -99
  67. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.d.mts +20 -0
  68. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerCreative.mjs +2 -0
  69. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.d.mts +20 -0
  70. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyFlux3VideoUpscalerPrecise.mjs +2 -0
  71. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.d.mts +18 -0
  72. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGeminiOmniFlash11.mjs +2 -0
  73. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.d.mts +18 -0
  74. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Flare.mjs +2 -0
  75. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.d.mts +18 -0
  76. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage25Sunburst.mjs +2 -0
  77. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.d.mts +17 -0
  78. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKrea2.mjs +2 -0
  79. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +6 -0
  80. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  81. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  82. package/dist/esm/api/resources/models/client/Client.mjs +7 -7
  83. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  84. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  85. package/dist/esm/api/types/InputFlux3VideoUpscalerCreative.d.mts +21 -0
  86. package/dist/esm/api/types/InputFlux3VideoUpscalerCreative.mjs +10 -0
  87. package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.d.mts +23 -0
  88. package/dist/esm/api/types/InputFlux3VideoUpscalerCreativeSourceVideo.mjs +2 -0
  89. package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.d.mts +21 -0
  90. package/dist/esm/api/types/InputFlux3VideoUpscalerPrecise.mjs +10 -0
  91. package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.d.mts +23 -0
  92. package/dist/esm/api/types/InputFlux3VideoUpscalerPreciseSourceVideo.mjs +2 -0
  93. package/dist/esm/api/types/InputGeminiOmniFlash11.d.mts +42 -0
  94. package/dist/esm/api/types/InputGeminiOmniFlash11.mjs +16 -0
  95. package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.d.mts +23 -0
  96. package/dist/esm/api/types/InputGeminiOmniFlash11EndImage.mjs +2 -0
  97. package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.d.mts +20 -0
  98. package/dist/esm/api/types/InputGeminiOmniFlash11ImagesItem.mjs +2 -0
  99. package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.d.mts +23 -0
  100. package/dist/esm/api/types/InputGeminiOmniFlash11SourceVideo.mjs +2 -0
  101. package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.d.mts +23 -0
  102. package/dist/esm/api/types/InputGeminiOmniFlash11StartImage.mjs +2 -0
  103. package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.d.mts +20 -0
  104. package/dist/esm/api/types/InputGeminiOmniFlash11VideosItem.mjs +2 -0
  105. package/dist/esm/api/types/InputGptImage25Flare.d.mts +59 -0
  106. package/dist/esm/api/types/InputGptImage25Flare.mjs +31 -0
  107. package/dist/esm/api/types/InputGptImage25FlareImagesItem.d.mts +20 -0
  108. package/dist/esm/api/types/InputGptImage25FlareImagesItem.mjs +2 -0
  109. package/dist/esm/api/types/InputGptImage25Sunburst.d.mts +59 -0
  110. package/dist/esm/api/types/InputGptImage25Sunburst.mjs +31 -0
  111. package/dist/esm/api/types/InputGptImage25SunburstImagesItem.d.mts +20 -0
  112. package/dist/esm/api/types/InputGptImage25SunburstImagesItem.mjs +2 -0
  113. package/dist/esm/api/types/InputKrea2.d.mts +52 -0
  114. package/dist/esm/api/types/InputKrea2.mjs +27 -0
  115. package/dist/esm/api/types/InputKrea2ImagesItem.d.mts +20 -0
  116. package/dist/esm/api/types/InputKrea2ImagesItem.mjs +2 -0
  117. package/dist/esm/api/types/index.d.mts +16 -0
  118. package/dist/esm/api/types/index.mjs +16 -0
  119. package/dist/esm/version.d.mts +1 -1
  120. package/dist/esm/version.mjs +1 -1
  121. package/package.json +2 -2
  122. package/reference.md +429 -0
package/reference.md CHANGED
@@ -1368,6 +1368,152 @@ await client.jobs.submitFlux3({
1368
1368
  </dl>
1369
1369
 
1370
1370
 
1371
+ </dd>
1372
+ </dl>
1373
+ </details>
1374
+
1375
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitFlux3VideoUpscalerCreative</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
1376
+ <dl>
1377
+ <dd>
1378
+
1379
+ #### 📝 Description
1380
+
1381
+ <dl>
1382
+ <dd>
1383
+
1384
+ <dl>
1385
+ <dd>
1386
+
1387
+ Super-resolution that adds detail as it enlarges, for soft or low-resolution footage.
1388
+
1389
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
1390
+ </dd>
1391
+ </dl>
1392
+ </dd>
1393
+ </dl>
1394
+
1395
+ #### 🔌 Usage
1396
+
1397
+ <dl>
1398
+ <dd>
1399
+
1400
+ <dl>
1401
+ <dd>
1402
+
1403
+ ```typescript
1404
+ await client.jobs.submitFlux3VideoUpscalerCreative({
1405
+ input: {
1406
+ source_video: {
1407
+ source: "url",
1408
+ url: "url"
1409
+ },
1410
+ resolution: "1080p"
1411
+ }
1412
+ });
1413
+
1414
+ ```
1415
+ </dd>
1416
+ </dl>
1417
+ </dd>
1418
+ </dl>
1419
+
1420
+ #### ⚙️ Parameters
1421
+
1422
+ <dl>
1423
+ <dd>
1424
+
1425
+ <dl>
1426
+ <dd>
1427
+
1428
+ **request:** `Hedra.SubmitBodyFlux3VideoUpscalerCreative`
1429
+
1430
+ </dd>
1431
+ </dl>
1432
+
1433
+ <dl>
1434
+ <dd>
1435
+
1436
+ **requestOptions:** `JobsClient.RequestOptions`
1437
+
1438
+ </dd>
1439
+ </dl>
1440
+ </dd>
1441
+ </dl>
1442
+
1443
+
1444
+ </dd>
1445
+ </dl>
1446
+ </details>
1447
+
1448
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitFlux3VideoUpscalerPrecise</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
1449
+ <dl>
1450
+ <dd>
1451
+
1452
+ #### 📝 Description
1453
+
1454
+ <dl>
1455
+ <dd>
1456
+
1457
+ <dl>
1458
+ <dd>
1459
+
1460
+ Super-resolution that reproduces the source faithfully, for footage whose detail should not change.
1461
+
1462
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
1463
+ </dd>
1464
+ </dl>
1465
+ </dd>
1466
+ </dl>
1467
+
1468
+ #### 🔌 Usage
1469
+
1470
+ <dl>
1471
+ <dd>
1472
+
1473
+ <dl>
1474
+ <dd>
1475
+
1476
+ ```typescript
1477
+ await client.jobs.submitFlux3VideoUpscalerPrecise({
1478
+ input: {
1479
+ source_video: {
1480
+ source: "url",
1481
+ url: "url"
1482
+ },
1483
+ resolution: "1080p"
1484
+ }
1485
+ });
1486
+
1487
+ ```
1488
+ </dd>
1489
+ </dl>
1490
+ </dd>
1491
+ </dl>
1492
+
1493
+ #### ⚙️ Parameters
1494
+
1495
+ <dl>
1496
+ <dd>
1497
+
1498
+ <dl>
1499
+ <dd>
1500
+
1501
+ **request:** `Hedra.SubmitBodyFlux3VideoUpscalerPrecise`
1502
+
1503
+ </dd>
1504
+ </dl>
1505
+
1506
+ <dl>
1507
+ <dd>
1508
+
1509
+ **requestOptions:** `JobsClient.RequestOptions`
1510
+
1511
+ </dd>
1512
+ </dl>
1513
+ </dd>
1514
+ </dl>
1515
+
1516
+
1371
1517
  </dd>
1372
1518
  </dl>
1373
1519
  </details>
@@ -1927,6 +2073,77 @@ await client.jobs.submitGeminiOmniFlash({
1927
2073
  </dl>
1928
2074
 
1929
2075
 
2076
+ </dd>
2077
+ </dl>
2078
+ </details>
2079
+
2080
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitGeminiOmniFlash11</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
2081
+ <dl>
2082
+ <dd>
2083
+
2084
+ #### 📝 Description
2085
+
2086
+ <dl>
2087
+ <dd>
2088
+
2089
+ <dl>
2090
+ <dd>
2091
+
2092
+ Gemini's fast multimodal video model — cinematic clips with native audio, from a prompt, a keyframe pair, or reference images, up to 4K.
2093
+
2094
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
2095
+ </dd>
2096
+ </dl>
2097
+ </dd>
2098
+ </dl>
2099
+
2100
+ #### 🔌 Usage
2101
+
2102
+ <dl>
2103
+ <dd>
2104
+
2105
+ <dl>
2106
+ <dd>
2107
+
2108
+ ```typescript
2109
+ await client.jobs.submitGeminiOmniFlash11({
2110
+ input: {
2111
+ prompt: "prompt",
2112
+ aspect_ratio: "16:9",
2113
+ resolution: "360p"
2114
+ }
2115
+ });
2116
+
2117
+ ```
2118
+ </dd>
2119
+ </dl>
2120
+ </dd>
2121
+ </dl>
2122
+
2123
+ #### ⚙️ Parameters
2124
+
2125
+ <dl>
2126
+ <dd>
2127
+
2128
+ <dl>
2129
+ <dd>
2130
+
2131
+ **request:** `Hedra.SubmitBodyGeminiOmniFlash11`
2132
+
2133
+ </dd>
2134
+ </dl>
2135
+
2136
+ <dl>
2137
+ <dd>
2138
+
2139
+ **requestOptions:** `JobsClient.RequestOptions`
2140
+
2141
+ </dd>
2142
+ </dl>
2143
+ </dd>
2144
+ </dl>
2145
+
2146
+
1930
2147
  </dd>
1931
2148
  </dl>
1932
2149
  </details>
@@ -2068,6 +2285,148 @@ await client.jobs.submitGptImage2({
2068
2285
  </dl>
2069
2286
 
2070
2287
 
2288
+ </dd>
2289
+ </dl>
2290
+ </details>
2291
+
2292
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitGptImage25Flare</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
2293
+ <dl>
2294
+ <dd>
2295
+
2296
+ #### 📝 Description
2297
+
2298
+ <dl>
2299
+ <dd>
2300
+
2301
+ <dl>
2302
+ <dd>
2303
+
2304
+ OpenAI's GPT Image 2.5 Flare; automatically selects rendering quality for the prompt.
2305
+
2306
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
2307
+ </dd>
2308
+ </dl>
2309
+ </dd>
2310
+ </dl>
2311
+
2312
+ #### 🔌 Usage
2313
+
2314
+ <dl>
2315
+ <dd>
2316
+
2317
+ <dl>
2318
+ <dd>
2319
+
2320
+ ```typescript
2321
+ await client.jobs.submitGptImage25Flare({
2322
+ input: {
2323
+ prompt: "prompt",
2324
+ aspect_ratio: "16:9",
2325
+ resolution: "1K"
2326
+ }
2327
+ });
2328
+
2329
+ ```
2330
+ </dd>
2331
+ </dl>
2332
+ </dd>
2333
+ </dl>
2334
+
2335
+ #### ⚙️ Parameters
2336
+
2337
+ <dl>
2338
+ <dd>
2339
+
2340
+ <dl>
2341
+ <dd>
2342
+
2343
+ **request:** `Hedra.SubmitBodyGptImage25Flare`
2344
+
2345
+ </dd>
2346
+ </dl>
2347
+
2348
+ <dl>
2349
+ <dd>
2350
+
2351
+ **requestOptions:** `JobsClient.RequestOptions`
2352
+
2353
+ </dd>
2354
+ </dl>
2355
+ </dd>
2356
+ </dl>
2357
+
2358
+
2359
+ </dd>
2360
+ </dl>
2361
+ </details>
2362
+
2363
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitGptImage25Sunburst</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
2364
+ <dl>
2365
+ <dd>
2366
+
2367
+ #### 📝 Description
2368
+
2369
+ <dl>
2370
+ <dd>
2371
+
2372
+ <dl>
2373
+ <dd>
2374
+
2375
+ OpenAI's GPT Image 2.5 Sunburst; automatically selects rendering quality for the prompt.
2376
+
2377
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
2378
+ </dd>
2379
+ </dl>
2380
+ </dd>
2381
+ </dl>
2382
+
2383
+ #### 🔌 Usage
2384
+
2385
+ <dl>
2386
+ <dd>
2387
+
2388
+ <dl>
2389
+ <dd>
2390
+
2391
+ ```typescript
2392
+ await client.jobs.submitGptImage25Sunburst({
2393
+ input: {
2394
+ prompt: "prompt",
2395
+ aspect_ratio: "16:9",
2396
+ resolution: "1K"
2397
+ }
2398
+ });
2399
+
2400
+ ```
2401
+ </dd>
2402
+ </dl>
2403
+ </dd>
2404
+ </dl>
2405
+
2406
+ #### ⚙️ Parameters
2407
+
2408
+ <dl>
2409
+ <dd>
2410
+
2411
+ <dl>
2412
+ <dd>
2413
+
2414
+ **request:** `Hedra.SubmitBodyGptImage25Sunburst`
2415
+
2416
+ </dd>
2417
+ </dl>
2418
+
2419
+ <dl>
2420
+ <dd>
2421
+
2422
+ **requestOptions:** `JobsClient.RequestOptions`
2423
+
2424
+ </dd>
2425
+ </dl>
2426
+ </dd>
2427
+ </dl>
2428
+
2429
+
2071
2430
  </dd>
2072
2431
  </dl>
2073
2432
  </details>
@@ -3810,6 +4169,76 @@ await client.jobs.submitKlingV3MotionControl({
3810
4169
  </dl>
3811
4170
 
3812
4171
 
4172
+ </dd>
4173
+ </dl>
4174
+ </details>
4175
+
4176
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">submitKrea2</a>({ ...params }) -> Hedra.SubmitResponse</code></summary>
4177
+ <dl>
4178
+ <dd>
4179
+
4180
+ #### 📝 Description
4181
+
4182
+ <dl>
4183
+ <dd>
4184
+
4185
+ <dl>
4186
+ <dd>
4187
+
4188
+ Krea 2 renders in whatever style you hand it — pass reference images and it takes on their palette, lighting and texture in a new scene. The smaller of the two, strongest on illustration, anime and painting.
4189
+
4190
+ Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
4191
+ </dd>
4192
+ </dl>
4193
+ </dd>
4194
+ </dl>
4195
+
4196
+ #### 🔌 Usage
4197
+
4198
+ <dl>
4199
+ <dd>
4200
+
4201
+ <dl>
4202
+ <dd>
4203
+
4204
+ ```typescript
4205
+ await client.jobs.submitKrea2({
4206
+ input: {
4207
+ prompt: "prompt",
4208
+ aspect_ratio: "1:1"
4209
+ }
4210
+ });
4211
+
4212
+ ```
4213
+ </dd>
4214
+ </dl>
4215
+ </dd>
4216
+ </dl>
4217
+
4218
+ #### ⚙️ Parameters
4219
+
4220
+ <dl>
4221
+ <dd>
4222
+
4223
+ <dl>
4224
+ <dd>
4225
+
4226
+ **request:** `Hedra.SubmitBodyKrea2`
4227
+
4228
+ </dd>
4229
+ </dl>
4230
+
4231
+ <dl>
4232
+ <dd>
4233
+
4234
+ **requestOptions:** `JobsClient.RequestOptions`
4235
+
4236
+ </dd>
4237
+ </dl>
4238
+ </dd>
4239
+ </dl>
4240
+
4241
+
3813
4242
  </dd>
3814
4243
  </dl>
3815
4244
  </details>