Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 4, 2024
1 parent 9a90997 commit 5840075
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-00c8db8bba8ad66c20debdbe1bb3e56123c3e9162f9310c49f1f5d748a40b96b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-e9db3689e5377f05e22b2dd594ac7eea68b859b98ba4d18103ed7376dbd43a4f.yml
10 changes: 10 additions & 0 deletions src/resources/image-to-video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,18 @@ export interface ImageToVideoCreateParams {
*/
promptImage: string;

/**
* The number of seconds of duration for the output video.
*/
duration?: 5 | 10;

promptText?: string;

/**
* The aspect ratio of the output video.
*/
ratio?: '16:9' | '9:16';

/**
* If unspecified, a random number is chosen. Varying the seed integer is a way to
* get different results for the same other request parameters. Using the same seed
Expand Down
2 changes: 2 additions & 0 deletions tests/api-resources/image-to-video.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ describe('resource imageToVideo', () => {
const response = await client.imageToVideo.create({
model: 'gen3a_turbo',
promptImage: 'https://example.com',
duration: 5,
promptText: 'promptText',
ratio: '16:9',
seed: 0,
watermark: true,
});
Expand Down

0 comments on commit 5840075

Please sign in to comment.