Skip to content

Commit 1579c27

Browse files
authored
feat: add new style for video to video (#120)
1 parent 98880ce commit 1579c27

File tree

33 files changed

+90
-62
lines changed

33 files changed

+90
-62
lines changed

.sdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "9196a167-76dd-4823-bd31-2f487937133a",
2+
"id": "8831bf6a-d4af-4357-a54a-44dea2383d2d",
33
"tracked_paths": [
44
{
55
"editable": true,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magic-hour",
3-
"version": "0.39.0",
3+
"version": "0.40.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"exports": {
@@ -59,4 +59,4 @@
5959
"type": "git",
6060
"url": "git://github.com/magichourhq/magic-hour-node.git"
6161
}
62-
}
62+
}

src/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# Root Client
1+
# Base Client
22

3-
<!-- CUSTOM DOCS START -->
43

5-
<!-- CUSTOM DOCS END -->
64

75
## Submodules
86
- [ai-clothes-changer](resources/v1/ai-clothes-changer/README.md) - ai-clothes-changer

src/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export enum Environment {
22
Environment = "https://api.magichour.ai",
3-
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.38.0",
3+
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.39.1",
44
}

src/resources/v1/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# v1
22

3-
<!-- CUSTOM DOCS START -->
43

5-
<!-- CUSTOM DOCS END -->
64

75
## Submodules
86
- [ai-clothes-changer](ai-clothes-changer/README.md) - ai-clothes-changer

src/resources/v1/ai-clothes-changer/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# v1-aiclotheschanger
1+
# v1.ai-clothes-changer
22

33
## Module Functions
44

5+
56
<!-- CUSTOM DOCS START -->
67
### AI Clothes Changer Generate Workflow <a name="generate"></a>
78

@@ -48,7 +49,6 @@ const res = await client.v1.aiClothesChanger.generate(
4849
```
4950

5051
<!-- CUSTOM DOCS END -->
51-
5252
### AI Clothes Changer <a name="create"></a>
5353

5454
Change outfits in photos in seconds with just a photo reference. Each photo costs 25 credits.
@@ -90,3 +90,4 @@ const res = await client.v1.aiClothesChanger.create({
9090
##### Example
9191
`{"creditsCharged": 25, "frameCost": 25, "id": "cuid-example"}`
9292

93+

src/resources/v1/ai-face-editor/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# v1-aifaceeditor
1+
# v1.ai-face-editor
22

33
## Module Functions
44

5+
56
<!-- CUSTOM DOCS START -->
67
### AI Face Editor Generate Workflow <a name="generate"></a>
78

@@ -61,7 +62,6 @@ const res = await client.v1.aiFaceEditor.generate(
6162
```
6263

6364
<!-- CUSTOM DOCS END -->
64-
6565
### AI Face Editor <a name="create"></a>
6666

6767
Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
@@ -130,3 +130,4 @@ const res = await client.v1.aiFaceEditor.create({
130130
##### Example
131131
`{"creditsCharged": 1, "frameCost": 1, "id": "cuid-example"}`
132132

133+

src/resources/v1/ai-gif-generator/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# v1-aigifgenerator
1+
# v1.ai-gif-generator
22

33
## Module Functions
44

5+
56
<!-- CUSTOM DOCS START -->
67
### AI Gif Generator Generate Workflow <a name="generate"></a>
78

@@ -44,7 +45,6 @@ const res = await client.v1.aiGifGenerator.generate(
4445
```
4546

4647
<!-- CUSTOM DOCS END -->
47-
4848
### AI GIFs <a name="create"></a>
4949

5050
Create an AI GIF. Each GIF costs 50 credits.
@@ -58,6 +58,7 @@ Create an AI GIF. Each GIF costs 50 credits.
5858
| `style` || | `{"prompt": "Cute dancing cat, pixel art"}` |
5959
| `└─ prompt` || The prompt used for the GIF. | `"Cute dancing cat, pixel art"` |
6060
| `name` || The name of gif. This value is mainly used for your own identification of the gif. | `"Ai Gif gif"` |
61+
| `outputFormat` || The output file format for the generated animation. | `"gif"` |
6162

6263
#### Example Snippet
6364

@@ -67,6 +68,7 @@ import Client from "magic-hour";
6768
const client = new Client({ token: process.env["API_TOKEN"]!! });
6869
const res = await client.v1.aiGifGenerator.create({
6970
name: "Ai Gif gif",
71+
outputFormat: "gif",
7072
style: { prompt: "Cute dancing cat, pixel art" },
7173
});
7274

@@ -80,3 +82,4 @@ const res = await client.v1.aiGifGenerator.create({
8082
##### Example
8183
`{"creditsCharged": 50, "frameCost": 50, "id": "cuid-example"}`
8284

85+

src/resources/v1/ai-headshot-generator/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# v1-aiheadshotgenerator
1+
# v1.ai-headshot-generator
22

33
## Module Functions
44

5+
56
<!-- CUSTOM DOCS START -->
67
### AI Headshot Generator Generate Workflow <a name="generate"></a>
78

@@ -44,7 +45,6 @@ const res = await client.v1.aiHeadshotGenerator.generate(
4445
```
4546

4647
<!-- CUSTOM DOCS END -->
47-
4848
### AI Headshots <a name="create"></a>
4949

5050
Create an AI headshot. Each headshot costs 50 credits.
@@ -82,3 +82,4 @@ const res = await client.v1.aiHeadshotGenerator.create({
8282
##### Example
8383
`{"creditsCharged": 50, "frameCost": 50, "id": "cuid-example"}`
8484

85+

src/resources/v1/ai-image-editor/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# v1-aiimageeditor
1+
# v1.ai-image-editor
22

33
## Module Functions
44

5+
56
<!-- CUSTOM DOCS START -->
67
### AI Image Editor Generate Workflow <a name="generate"></a>
78

@@ -45,7 +46,6 @@ const res = await client.v1.aiImageEditor.generate(
4546
```
4647

4748
<!-- CUSTOM DOCS END -->
48-
4949
### AI Image Editor <a name="create"></a>
5050

5151
Edit images with AI. Each edit costs 50 credits.
@@ -84,3 +84,4 @@ const res = await client.v1.aiImageEditor.create({
8484
##### Example
8585
`{"creditsCharged": 50, "frameCost": 50, "id": "cuid-example"}`
8686

87+

0 commit comments

Comments
 (0)