genmagic 0.1.0 → 0.1.1
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/README.md +13 -0
- package/package.json +57 -8
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,19 @@ const clip = await gm.video("Waves at sunset, slow drone shot", {
|
|
|
36
36
|
console.log(clip.url);
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
## Moving off OpenAI's Sora 2 API
|
|
40
|
+
|
|
41
|
+
OpenAI shut down the Sora 2 Videos API on September 24, 2026. GenMagic answers the same calls, so code built on the
|
|
42
|
+
OpenAI SDK keeps working with a new base URL and key, and even `model: "sora-2"` runs (on Veo 3.1 Fast):
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
import OpenAI from "openai";
|
|
46
|
+
const client = new OpenAI({ baseURL: "https://genmagic.co/api/v1", apiKey: process.env.GENMAGIC_API_KEY });
|
|
47
|
+
const video = await client.videos.createAndPoll({ model: "sora-2", prompt: "A paper boat at dusk", seconds: "8", size: "1280x720" });
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Details and prices: https://genmagic.co/sora-2-api-alternative?utm_source=npm&utm_medium=readme
|
|
51
|
+
|
|
39
52
|
## Speech, music, text
|
|
40
53
|
|
|
41
54
|
```js
|
package/package.json
CHANGED
|
@@ -1,18 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genmagic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Official GenMagic client and CLI: one API key and one pay-as-you-go balance for 460+ AI models. Generate images, video with sound, speech, music and text with Veo, Kling, Seedance, Wan, Nano Banana, GPT Image, FLUX and more.",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"genmagic",
|
|
8
|
+
"image-generation",
|
|
9
|
+
"video-generation",
|
|
10
|
+
"text-to-image",
|
|
11
|
+
"text-to-video",
|
|
12
|
+
"image-to-video",
|
|
13
|
+
"text-to-speech",
|
|
14
|
+
"tts",
|
|
15
|
+
"music-generation",
|
|
16
|
+
"ai-video",
|
|
17
|
+
"ai-image",
|
|
18
|
+
"veo",
|
|
19
|
+
"kling",
|
|
20
|
+
"seedance",
|
|
21
|
+
"wan",
|
|
22
|
+
"hailuo",
|
|
23
|
+
"runway",
|
|
24
|
+
"flux",
|
|
25
|
+
"nano-banana",
|
|
26
|
+
"gpt-image",
|
|
27
|
+
"seedream",
|
|
28
|
+
"openai-compatible",
|
|
29
|
+
"generative-ai",
|
|
30
|
+
"api-client",
|
|
31
|
+
"cli",
|
|
32
|
+
"sora",
|
|
33
|
+
"sora-2",
|
|
34
|
+
"sora-alternative",
|
|
35
|
+
"openai-videos-api"
|
|
36
|
+
],
|
|
6
37
|
"homepage": "https://genmagic.co/developers?utm_source=npm&utm_medium=package",
|
|
7
|
-
"bugs": {
|
|
38
|
+
"bugs": {
|
|
39
|
+
"email": "hello@genmagic.co"
|
|
40
|
+
},
|
|
8
41
|
"author": "GenMagic <hello@genmagic.co> (https://genmagic.co)",
|
|
9
42
|
"license": "MIT",
|
|
10
43
|
"type": "module",
|
|
11
44
|
"main": "./src/index.js",
|
|
12
45
|
"types": "./src/index.d.ts",
|
|
13
|
-
"exports": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
46
|
+
"exports": {
|
|
47
|
+
".": {
|
|
48
|
+
"types": "./src/index.d.ts",
|
|
49
|
+
"default": "./src/index.js"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"genmagic": "bin/genmagic.js"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"src",
|
|
57
|
+
"bin",
|
|
58
|
+
"README.md",
|
|
59
|
+
"LICENSE"
|
|
60
|
+
],
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=18"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"test": "node --test test/index.test.js"
|
|
66
|
+
}
|
|
18
67
|
}
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* through it apart from a key owner's other API use.
|
|
5
5
|
* API reference: https://genmagic.co/openapi.json
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = "0.1.
|
|
7
|
+
export const VERSION = "0.1.1";
|
|
8
8
|
const DEFAULT_BASE_URL = "https://genmagic.co";
|
|
9
9
|
const KEY_HELP = "Create a free key at https://genmagic.co/get-api-key?utm_source=npm&utm_medium=package and set GENMAGIC_API_KEY.";
|
|
10
10
|
|