Skip to content

Commit 91004d4

Browse files
committed
docs: add width/height to README video examples (v1.3.2)
1 parent 9ffcc61 commit 91004d4

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ images = await client.run({
6262
videos = await client.run({
6363
"model": "google:3@3",
6464
"positivePrompt": "Ocean waves at sunset",
65+
"width": 1280,
66+
"height": 720,
6567
"duration": 8,
6668
})
6769

@@ -185,7 +187,7 @@ Best when you make multiple requests or want real-time feedback:
185187
```python
186188
async with Runware(transport="websocket") as client:
187189
images = await client.run({"model": "runware:400@1", "positivePrompt": "..."})
188-
videos = await client.run({"model": "google:3@3", "positivePrompt": "..."})
190+
videos = await client.run({"model": "google:3@3", "positivePrompt": "...", "width": 1280, "height": 720})
189191
```
190192

191193
WebSocket connections are automatically recovered on network interruptions. The SDK re-authenticates with the same session UUID and the server replays pending results.
@@ -295,7 +297,7 @@ def progress(item: dict) -> None:
295297
print(f"{item.get('progress')}%")
296298

297299
results = await client.run(
298-
{"model": "google:3@3", "positivePrompt": "Ocean waves", "numberResults": 3},
300+
{"model": "google:3@3", "positivePrompt": "Ocean waves", "width": 1280, "height": 720, "numberResults": 3},
299301
RunOptions(on_result=watch, on_progress=progress),
300302
)
301303
```
@@ -430,7 +432,7 @@ Or per-call via `RunOptions`:
430432

431433
```python
432434
videos = await client.run(
433-
{"model": "google:3@3", "positivePrompt": "Ocean waves"},
435+
{"model": "google:3@3", "positivePrompt": "Ocean waves", "width": 1280, "height": 720},
434436
RunOptions(timeout=600_000),
435437
)
436438
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runware-sdk"
3-
version = "1.3.1"
3+
version = "1.3.2"
44
description = "Async Python SDK for the Runware platform — image, video, audio, text, and 3D generation, plus upscaling, background removal, and more, over REST or WebSocket with typed parameters and runtime validation."
55
readme = "README.md"
66
requires-python = ">=3.11"

0 commit comments

Comments
 (0)