You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-26Lines changed: 27 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ from runware import Runware
30
30
asyncdefmain() -> None:
31
31
asyncwith Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
32
32
results =await client.run({
33
-
"model": "runware:101@1",
33
+
"model": "runware:400@1",
34
34
"positivePrompt": "A serene mountain landscape at sunset",
35
35
"width": 1024,
36
36
"height": 1024,
@@ -40,7 +40,7 @@ async def main() -> None:
40
40
asyncio.run(main())
41
41
```
42
42
43
-
The SDK resolves `runware:101@1` to the right task type automatically. `RUNWARE_API_KEY` is read from the environment if you don't pass `api_key=...` explicitly.
43
+
The SDK resolves `runware:400@1` to the right task type automatically. `RUNWARE_API_KEY` is read from the environment if you don't pass `api_key=...` explicitly.
44
44
45
45
More runnable patterns in [`examples/`](./examples/) — curated models, community fine-tunes, streaming, the WebSocket transport.
46
46
@@ -53,28 +53,29 @@ Every inference task goes through `.run()`. The SDK determines the task type fro
WebSocket connections are automatically recovered on network interruptions. The SDK re-authenticates with the same session UUID and the server replays pending results.
@@ -196,7 +197,7 @@ Best for serverless functions or one-off requests:
196
197
```python
197
198
asyncwith Runware(transport_type="rest") as client:
198
199
images =await client.run({
199
-
"model": "runware:101@1",
200
+
"model": "runware:400@1",
200
201
"positivePrompt": "A landscape painting",
201
202
"width": 1024, "height": 1024,
202
203
})
@@ -212,7 +213,7 @@ import asyncio
212
213
asyncwith Runware() as client:
213
214
images, upscaled, caption =await asyncio.gather(
214
215
client.run({
215
-
"model": "runware:101@1",
216
+
"model": "runware:400@1",
216
217
"positivePrompt": "Abstract art",
217
218
"numberResults": 3,
218
219
}),
@@ -251,7 +252,7 @@ async def main() -> None:
251
252
252
253
try:
253
254
await client.run(
254
-
{"model": "runware:101@1", "positivePrompt": "A detailed scene"},
255
+
{"model": "runware:400@1", "positivePrompt": "A detailed scene"},
255
256
RunOptions(cancel_event=cancel),
256
257
)
257
258
except RunwareError as exc:
@@ -265,7 +266,7 @@ For streams, set the cancel event to end iteration:
0 commit comments