Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Emotion to generate for
Default: "High valence, high arousal"
Random seed, -1 for random
Default: -1
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run annahung31/emopia using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "annahung31/emopia:ad93577dbfe239c7604a49495ac579176157bb2a6f5fa1e0906433fd7acff792", { input: { seed: -1, emotion: "High valence, high arousal" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "annahung31/emopia:ad93577dbfe239c7604a49495ac579176157bb2a6f5fa1e0906433fd7acff792", input={ "seed": -1, "emotion": "High valence, high arousal" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "ad93577dbfe239c7604a49495ac579176157bb2a6f5fa1e0906433fd7acff792", "input": { "seed": -1, "emotion": "High valence, high arousal" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
{ "completed_at": "2021-08-27T18:35:57.649100Z", "created_at": "2021-08-27T18:35:50.417195Z", "data_removed": false, "error": null, "id": "4fe76xvj2zgytjzvemfu5tbpii", "input": { "seed": "-1", "emotion": "High valence, high arousal" }, "logs": null, "metrics": { "total_time": 7.231905 }, "output": [ { "file": "https://replicate.delivery/mgxm/c0c4420b-1d0e-46ca-a82d-6d2c8673e941/out.mp3" } ], "started_at": "2021-12-02T03:21:10.450581Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4fe76xvj2zgytjzvemfu5tbpii", "cancel": "https://api.replicate.com/v1/predictions/4fe76xvj2zgytjzvemfu5tbpii/cancel" }, "version": "56a03a92653d9e97d37541e228765a60aa0a4805da1647a5d7fde79d60b7b556" }
This example was created by a different version, annahung31/emopia:56a03a92.