File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 2020
2121## Installation
2222
23+ ### Maven
24+
2325``` xml
2426<dependency >
2527 <groupId >org.openapitools</groupId >
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
3341Run WaveSpeed AI models with a simple API:
@@ -73,15 +81,16 @@ Or pass it directly:
7381WaveSpeed 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
8089Prediction 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
You can’t perform that action at this time.
0 commit comments