Skip to content

Commit 3743284

Browse files
committed
README revise
1 parent 302cc2d commit 3743284

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
## Installation
2222

23+
### Maven
24+
2325
```xml
2426
<dependency>
2527
<groupId>org.openapitools</groupId>
@@ -28,6 +30,12 @@
2830
</dependency>
2931
```
3032

33+
### Gradle
34+
35+
```groovy
36+
implementation 'org.openapitools:openapi-java-client:0.1.0-SNAPSHOT'
37+
```
38+
3139
## API Client
3240

3341
Run WaveSpeed AI models with a simple API:
@@ -73,15 +81,16 @@ Or pass it directly:
7381
WaveSpeed client = new WaveSpeed("your-api-key");
7482
```
7583

84+
You can get your API key from [https://wavespeed.ai/accesskey](https://wavespeed.ai/accesskey).
85+
7686
### Options
7787

7888
```java
79-
// Custom timeout and polling interval
8089
Prediction result = client.run(
8190
"wavespeed-ai/z-image/turbo",
8291
input,
83-
300.0, // timeout in seconds
84-
2.0 // poll interval in seconds
92+
300.0, // timeout in seconds (default: 36000.0)
93+
2.0 // poll interval in seconds (default: 1.0)
8594
);
8695
```
8796

0 commit comments

Comments
 (0)