fofr
/
star-trek-adventure
- Public
- 160 runs
-
A100 (80GB)
Run fofr/star-trek-adventure with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run fofr/star-trek-adventure using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
prompt: "<universe>"
};
for await (const event of replicate.stream("fofr/star-trek-adventure:bb5c6d426fabd3736faf7243ea70d2cdbc0f8131b22953386759a9b4d2858aad", { input })) {
process.stdout.write(`${event}`)
//=> "<universe>"
};
process.stdout.write("\n");