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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,10 @@ health = client.health()
132
132
print(health["status"]) # "ok"
133
133
```
134
134
135
+
### Cache
136
+
137
+
The API caches by content (model + prompt + size). Repeat the same request to get a cache hit (`result.cache_hit == True`, lower latency and cost). See `examples/07_cache_demo.py`.
138
+
135
139
## Async Client
136
140
137
141
```python
@@ -186,6 +190,10 @@ with Client() as client:
186
190
|`replicate_key`|`None`| Replicate BYOK key |
187
191
|`runway_key`|`None`| Runway BYOK key |
188
192
193
+
## Security & data
194
+
195
+
All API traffic uses HTTPS. Provider API keys (BYOK) are encrypted at rest; other account and usage data is stored on Google Cloud with encryption at rest. See the [API docs](docs/API.md) for more.
196
+
189
197
## Examples
190
198
191
199
See the [`examples/`](examples/) directory for tested scripts covering every SDK feature:
@@ -201,6 +209,7 @@ See the [`examples/`](examples/) directory for tested scripts covering every SDK
201
209
|`04_videos_all_providers.py`| Video generation | Yes |
202
210
|`05_usage_history_verify.py`| Usage, logs, and dashboard | Yes |
203
211
|`06_provider_balances.py`| Provider status and balances | Yes |
212
+
|`07_cache_demo.py`| Cache: two identical image requests | Yes |
0 commit comments