@runware/sdk-js 1.2.1-beta.2 → 1.2.2
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -12
- package/dist/index.d.ts +64 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +39 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runware/sdk-js",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "The SDK is used to run image inference with the Runware API, powered by the RunWare inference platform. It can be used to generate imaged with text-to-image and image-to-image. It also allows the use of an existing gallery of models or selecting any model or LoRA from the CivitAI gallery. The API also supports upscaling, background removal, inpainting and outpainting, and a series of other ControlNet models.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
package/readme.md
CHANGED
|
@@ -457,6 +457,41 @@ return interface IImageToText {
|
|
|
457
457
|
|
|
458
458
|
|
|
459
459
|
|
|
460
|
+
### Audio Inference
|
|
461
|
+
|
|
462
|
+
[Read Documentation](https://runware.ai/docs/en/audio-inference/introduction)
|
|
463
|
+
|
|
464
|
+
```js
|
|
465
|
+
|
|
466
|
+
const runware = new Runware({ apiKey: "API_KEY" });
|
|
467
|
+
const audio = await runware.audioInference({
|
|
468
|
+
duration: 10,
|
|
469
|
+
outputFormat: "MP3",
|
|
470
|
+
numberResults: 2,
|
|
471
|
+
includeCost: true,
|
|
472
|
+
audioSettings: {
|
|
473
|
+
bitrate: 128,
|
|
474
|
+
sampleRate: 44100
|
|
475
|
+
},
|
|
476
|
+
outputType: "URL",
|
|
477
|
+
model: "elevenlabs:1@1",
|
|
478
|
+
positivePrompt: "hip hop",
|
|
479
|
+
deliveryMethod: "async"
|
|
480
|
+
})
|
|
481
|
+
console.log(audio)
|
|
482
|
+
|
|
483
|
+
return interface IAudio {
|
|
484
|
+
taskUUID: string;
|
|
485
|
+
taskType: string;
|
|
486
|
+
audioUUID?: string;
|
|
487
|
+
audioURL?: string;
|
|
488
|
+
audioBase64Data?: string;
|
|
489
|
+
audioDataURI?: string;
|
|
490
|
+
cost?: number;
|
|
491
|
+
}
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
|
|
460
495
|
### Model Upload
|
|
461
496
|
|
|
462
497
|
[Read Documentation](https://docs.runware.ai/en/image-inference/model-upload)
|
|
@@ -705,6 +740,10 @@ export type TImageMaskingResponse = {
|
|
|
705
740
|
|
|
706
741
|
## Changelog
|
|
707
742
|
|
|
743
|
+
### - v1.2.2
|
|
744
|
+
|
|
745
|
+
- Added audioInference task type
|
|
746
|
+
|
|
708
747
|
### - v1.2.1
|
|
709
748
|
|
|
710
749
|
- Added caption task type
|