You're looking at a specific version of this model. Jump to the model overview.
rinongal /stylegan-nada:6b2af4ac
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable: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 rinongal/stylegan-nada using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"rinongal/stylegan-nada:6b2af4ac56fa2384f8f86fc7620943d5fc7689dcbb6183733743a215296d0e30",
{
input: {
input: "https://replicate.delivery/mgxm/e348c7fa-341d-443a-b56c-67ba6a180d0b/emma.jpg",
style_list: "joker,anime,modigliani",
output_style: "all",
video_format: "mp4",
with_editing: true,
generate_video: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run rinongal/stylegan-nada using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"rinongal/stylegan-nada:6b2af4ac56fa2384f8f86fc7620943d5fc7689dcbb6183733743a215296d0e30",
input={
"input": "https://replicate.delivery/mgxm/e348c7fa-341d-443a-b56c-67ba6a180d0b/emma.jpg",
"style_list": "joker,anime,modigliani",
"output_style": "all",
"video_format": "mp4",
"with_editing": True,
"generate_video": False
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run rinongal/stylegan-nada using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "6b2af4ac56fa2384f8f86fc7620943d5fc7689dcbb6183733743a215296d0e30",
"input": {
"input": "https://replicate.delivery/mgxm/e348c7fa-341d-443a-b56c-67ba6a180d0b/emma.jpg",
"style_list": "joker,anime,modigliani",
"output_style": "all",
"video_format": "mp4",
"with_editing": true,
"generate_video": false
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2021-10-03T14:20:20.180675Z",
"created_at": "2021-10-03T14:20:12.178855Z",
"data_removed": false,
"error": null,
"id": "oauumqfa7vhzddugbm4mbvde6q",
"input": {
"input": "https://replicate.delivery/mgxm/e348c7fa-341d-443a-b56c-67ba6a180d0b/emma.jpg",
"style_list": "joker,anime,modigliani",
"output_style": "all",
"video_format": "mp4",
"with_editing": true,
"generate_video": false
},
"logs": "Aligned image has shape: (256, 256)",
"metrics": {
"total_time": 8.00182
},
"output": [
{
"file": "https://replicate.delivery/mgxm/35b6cee8-6416-4dad-bd9e-335252e44959/out.jpg"
}
],
"started_at": "2021-11-30T17:19:30.863348Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/oauumqfa7vhzddugbm4mbvde6q",
"cancel": "https://api.replicate.com/v1/predictions/oauumqfa7vhzddugbm4mbvde6q/cancel"
},
"version": "c3584f3661ecd62f7fc1605af40220c102b0becd740a27d4d86d178b6bf32571"
}
Aligned image has shape: (256, 256)
This example was created by a different version, rinongal/stylegan-nada:c3584f36.