Skip to content

Commit 321d3d8

Browse files
authored
Merge pull request #107 from aimlapi/stelyatko/feat-add-sync-mode-to-image-desc
feat: add sync_mode to images desc
2 parents 038decd + d859749 commit 321d3d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/openapi/descriptions/image.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,8 @@ If transparent, the output format needs to support transparency, so it should be
100100
},
101101
mask: {
102102
desc: `An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.`
103-
}
103+
},
104+
sync_mode: {
105+
desc: `If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN.`,
106+
},
104107
};

0 commit comments

Comments
 (0)