Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vital-ai/replicate-java-client
Unofficial client API to access Replicate.com via Java/Groovy
https://github.com/vital-ai/replicate-java-client
api client diffusion-models groovy java replicate-com stable-diffusion
Last synced: about 8 hours ago
JSON representation
Unofficial client API to access Replicate.com via Java/Groovy
- Host: GitHub
- URL: https://github.com/vital-ai/replicate-java-client
- Owner: vital-ai
- License: apache-2.0
- Created: 2022-12-03T14:42:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T01:35:22.000Z (about 1 year ago)
- Last Synced: 2024-04-28T05:43:47.946Z (9 months ago)
- Topics: api, client, diffusion-models, groovy, java, replicate-com, stable-diffusion
- Language: Groovy
- Homepage:
- Size: 4.54 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# code migrated
this code is being migrated to this repo:
https://github.com/vital-ai/haley-saas-model-clients
# replicate-java-client
This is an early stage implementation of the Replicate.com HTTP API to utilize models hosted on Replicate.com.
Copy ```replicateClient.conf.template``` to ```replicateClient.conf``` into the config directory and set your API key.
To build:
```mvn package```
run with:
```./bin/runReplicateClientMain.sh```
resulting images go into outputImages directory
There is a build dependency on an older version of groovy related to the Eclipse groovy-compiler plugin used in the maven POM. The POM can be modified to switch to a more recent version of groovy, but the maven groovy plugins would need to be adjusted as well. This is based on an Eclipse IDE project with a groovy plugin that has specific requirements which should be upgraded eventually.
The runtime shell script uses the groovy jars in the "lib" directory.
The "main" class ```ReplicateClientMain``` provides an example use, such as specifying the prompt used.
A class is specified for each model used on Replicate.com to help with data validation and composing requests.
The currently defined models are:
* openjourney: https://replicate.com/prompthero/openjourney