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.
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 dribnet/homage1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dribnet/homage1:89c84253ba11b0b7871e9d7da444d5160e1e32cd1567a01fca66ab60b587abd0",
{
input: {
prompt: "flamingo"
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 dribnet/homage1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dribnet/homage1:89c84253ba11b0b7871e9d7da444d5160e1e32cd1567a01fca66ab60b587abd0",
input={
"prompt": "flamingo"
}
)
# The dribnet/homage1 model can stream output as it's running.
# The predict method returns an iterator, and you can iterate over that output.
for item in output:
# https://replicate.com/dribnet/homage1/api#output-schema
print(item)
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 dribnet/homage1 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": "dribnet/homage1:89c84253ba11b0b7871e9d7da444d5160e1e32cd1567a01fca66ab60b587abd0",
"input": {
"prompt": "flamingo"
}
}' \
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": "2022-05-29T15:28:18.935108Z",
"created_at": "2022-05-29T15:24:33.220023Z",
"data_removed": false,
"error": null,
"id": "z4gbg5gyhzabzhfqpxopixhose",
"input": {
"prompt": "flamingo"
},
"logs": null,
"metrics": {
"predict_time": 225.530608,
"total_time": 225.715085
},
"output": [
"https://replicate.delivery/mgxm/570f97be-a328-492e-900e-c03cf464d9f7/tempfile.png",
"https://replicate.delivery/mgxm/0620cdf1-db32-44a8-8d7b-d08c139ba469/tempfile.png",
"https://replicate.delivery/mgxm/065ac811-d3fc-4c0a-86c1-e4afce74c278/tempfile.png",
"https://replicate.delivery/mgxm/20790dcb-2321-4d9a-83d8-3df9a7fea43a/tempfile.png",
"https://replicate.delivery/mgxm/b82f451e-c05b-4bf0-bce3-3c191ec2dfdb/tempfile.png",
"https://replicate.delivery/mgxm/1a866f6c-ff6f-40d0-9eb6-8afb96c52621/tempfile.png",
"https://replicate.delivery/mgxm/54046e94-9857-4f59-9e59-d119464e17f6/tempfile.png",
"https://replicate.delivery/mgxm/1048b15c-ba7f-42bb-9548-4738670074f2/tempfile.png",
"https://replicate.delivery/mgxm/69af3ad0-1d60-4a1d-80b0-40c2abec7c64/tempfile.png",
"https://replicate.delivery/mgxm/6c1c5a24-5113-4945-8f3d-8586b6b1eff0/tempfile.png",
"https://replicate.delivery/mgxm/156460c1-9980-423d-86e9-b915c416bcf3/tempfile.png",
"https://replicate.delivery/mgxm/38602c78-f885-489f-9a21-eb6e77332864/tempfile.png",
"https://replicate.delivery/mgxm/80d79513-1c82-4e90-9e53-2ca0c7935309/tempfile.png",
"https://replicate.delivery/mgxm/93e569a2-fb78-4368-98ac-d6bb96952546/tempfile.png",
"https://replicate.delivery/mgxm/2791a1e7-b712-4088-95bd-7c726b6f3adb/tempfile.png",
"https://replicate.delivery/mgxm/b13d9d7b-d973-4526-a1c4-28e3733bf907/tempfile.png",
"https://replicate.delivery/mgxm/0c875e6c-1a33-4bdd-84f9-88b01813bded/tempfile.png",
"https://replicate.delivery/mgxm/1c775a5d-efe7-40b3-8f59-343f3c51dd1e/tempfile.png",
"https://replicate.delivery/mgxm/6b479582-c394-4709-95e4-19fb0fb2ebce/tempfile.png",
"https://replicate.delivery/mgxm/d952166d-64f6-4841-9841-0cb30dcc1c61/tempfile.png",
"https://replicate.delivery/mgxm/7b773921-1dd5-40ce-a454-b930401732f2/tempfile.png",
"https://replicate.delivery/mgxm/9a7badb7-f7ee-4634-b53e-f81f08192ec4/tempfile.png",
"https://replicate.delivery/mgxm/49b44d36-5d78-4a0d-834f-39753e4b2e18/tempfile.png",
"https://replicate.delivery/mgxm/253a621e-24f2-48d9-94cd-5031de80226a/tempfile.png",
"https://replicate.delivery/mgxm/279bf7ca-a33a-45f8-940b-1d499fd2b134/tempfile.png",
"https://replicate.delivery/mgxm/a0d9e3a9-1104-4722-bea2-be02bcab7314/tempfile.png",
"https://replicate.delivery/mgxm/62c6c3ff-015f-40a3-b23d-df2981f79f48/tempfile.png",
"https://replicate.delivery/mgxm/549b85e5-1354-4781-bf5e-440b6c2ee017/tempfile.png",
"https://replicate.delivery/mgxm/d5a11a59-6ebe-4376-a2e6-60ac817e092d/tempfile.png",
"https://replicate.delivery/mgxm/6433edfa-9ff3-49cb-b3c8-d0889bb897b0/tempfile.png",
"https://replicate.delivery/mgxm/e5f2c54b-3dfa-4098-9fb7-23bd7d3b2ce3/tempfile.png"
],
"started_at": "2022-05-29T15:24:33.404500Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/z4gbg5gyhzabzhfqpxopixhose",
"cancel": "https://api.replicate.com/v1/predictions/z4gbg5gyhzabzhfqpxopixhose/cancel"
},
"version": "89c84253ba11b0b7871e9d7da444d5160e1e32cd1567a01fca66ab60b587abd0"
}