Skip to content

Commit cd6776e

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent 7199587 commit cd6776e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ pip install runwayml[aiohttp]
8989
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
9090

9191
```python
92+
import os
9293
import asyncio
9394
from runwayml import DefaultAioHttpClient
9495
from runwayml import AsyncRunwayML
9596

9697

9798
async def main() -> None:
9899
async with AsyncRunwayML(
99-
api_key="My API Key",
100+
api_key=os.environ.get("RUNWAYML_API_SECRET"), # This is the default and can be omitted
100101
http_client=DefaultAioHttpClient(),
101102
) as client:
102103
image_to_video = await client.image_to_video.create(

0 commit comments

Comments
 (0)