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.
alekseycalvin /anna_akhmatova_flux:4c391eb0
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 alekseycalvin/anna_akhmatova_flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"alekseycalvin/anna_akhmatova_flux:4c391eb0dac0ff0446292edf718af5caf9064d5cb6dfcc934d213ee665af7e36",
{
input: {
model: "dev",
prompt: "poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere",
go_fast: false,
lora_scale: 1.09,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "png",
guidance_scale: 2.97,
output_quality: 100,
prompt_strength: 1,
extra_lora_scale: 1,
num_inference_steps: 29
}
}
);
// 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 alekseycalvin/anna_akhmatova_flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"alekseycalvin/anna_akhmatova_flux:4c391eb0dac0ff0446292edf718af5caf9064d5cb6dfcc934d213ee665af7e36",
input={
"model": "dev",
"prompt": "poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere",
"go_fast": False,
"lora_scale": 1.09,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 2.97,
"output_quality": 100,
"prompt_strength": 1,
"extra_lora_scale": 1,
"num_inference_steps": 29
}
)
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 alekseycalvin/anna_akhmatova_flux 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": "alekseycalvin/anna_akhmatova_flux:4c391eb0dac0ff0446292edf718af5caf9064d5cb6dfcc934d213ee665af7e36",
"input": {
"model": "dev",
"prompt": "poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere",
"go_fast": false,
"lora_scale": 1.09,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 2.97,
"output_quality": 100,
"prompt_strength": 1,
"extra_lora_scale": 1,
"num_inference_steps": 29
}
}' \
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": "2024-11-16T19:32:32.649029Z",
"created_at": "2024-11-16T19:31:51.279000Z",
"data_removed": false,
"error": null,
"id": "xv8z9fyhdxrma0ck6strfh4vym",
"input": {
"model": "dev",
"prompt": "poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere",
"lora_scale": 1.09,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 2.97,
"output_quality": 100,
"prompt_strength": 1,
"extra_lora_scale": 1,
"num_inference_steps": 29
},
"logs": "Using seed: 45793\nPrompt: poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere\n[!] txt2img mode\nUsing dev model\nfree=29579398946816\nDownloading weights\n2024-11-16T19:32:18Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsiz6z5jx/weights url=https://replicate.delivery/xezq/TMzxS7q27ybVAZ0qDb5L6tLX8CAuekZDt0Fyo8VWfc08dQxTA/trained_model.tar\n2024-11-16T19:32:22Z | INFO | [ Complete ] dest=/tmp/tmpsiz6z5jx/weights size=\"258 MB\" total_elapsed=3.396s url=https://replicate.delivery/xezq/TMzxS7q27ybVAZ0qDb5L6tLX8CAuekZDt0Fyo8VWfc08dQxTA/trained_model.tar\nDownloaded weights in 3.42s\nLoaded LoRAs in 4.02s\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|▎ | 1/29 [00:00<00:09, 3.00it/s]\n 7%|▋ | 2/29 [00:00<00:08, 3.31it/s]\n 10%|█ | 3/29 [00:00<00:08, 3.19it/s]\n 14%|█▍ | 4/29 [00:01<00:07, 3.14it/s]\n 17%|█▋ | 5/29 [00:01<00:07, 3.11it/s]\n 21%|██ | 6/29 [00:01<00:07, 3.09it/s]\n 24%|██▍ | 7/29 [00:02<00:07, 3.08it/s]\n 28%|██▊ | 8/29 [00:02<00:06, 3.07it/s]\n 31%|███ | 9/29 [00:02<00:06, 3.07it/s]\n 34%|███▍ | 10/29 [00:03<00:06, 3.06it/s]\n 38%|███▊ | 11/29 [00:03<00:05, 3.06it/s]\n 41%|████▏ | 12/29 [00:03<00:05, 3.06it/s]\n 45%|████▍ | 13/29 [00:04<00:05, 3.06it/s]\n 48%|████▊ | 14/29 [00:04<00:04, 3.06it/s]\n 52%|█████▏ | 15/29 [00:04<00:04, 3.06it/s]\n 55%|█████▌ | 16/29 [00:05<00:04, 3.06it/s]\n 59%|█████▊ | 17/29 [00:05<00:03, 3.06it/s]\n 62%|██████▏ | 18/29 [00:05<00:03, 3.05it/s]\n 66%|██████▌ | 19/29 [00:06<00:03, 3.06it/s]\n 69%|██████▉ | 20/29 [00:06<00:02, 3.06it/s]\n 72%|███████▏ | 21/29 [00:06<00:02, 3.06it/s]\n 76%|███████▌ | 22/29 [00:07<00:02, 3.06it/s]\n 79%|███████▉ | 23/29 [00:07<00:01, 3.06it/s]\n 83%|████████▎ | 24/29 [00:07<00:01, 3.06it/s]\n 86%|████████▌ | 25/29 [00:08<00:01, 3.06it/s]\n 90%|████████▉ | 26/29 [00:08<00:00, 3.06it/s]\n 93%|█████████▎| 27/29 [00:08<00:00, 3.06it/s]\n 97%|█████████▋| 28/29 [00:09<00:00, 3.06it/s]\n100%|██████████| 29/29 [00:09<00:00, 3.06it/s]\n100%|██████████| 29/29 [00:09<00:00, 3.07it/s]",
"metrics": {
"predict_time": 13.965747795,
"total_time": 41.370029
},
"output": [
"https://replicate.delivery/xezq/jeRkPaEl2tQ0HqlfrpA4zFD65v5pO8Yjb2yEVp6JtergqUjnA/out-0.png"
],
"started_at": "2024-11-16T19:32:18.683281Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-7wff6jsjxsb4nx34ia2xbalxy7onu4n2niy5h6mr444mf36szrnq",
"get": "https://api.replicate.com/v1/predictions/xv8z9fyhdxrma0ck6strfh4vym",
"cancel": "https://api.replicate.com/v1/predictions/xv8z9fyhdxrma0ck6strfh4vym/cancel"
},
"version": "4c391eb0dac0ff0446292edf718af5caf9064d5cb6dfcc934d213ee665af7e36"
}
Using seed: 45793
Prompt: poet Anna AKHMATOVA in 1910, sitting at an outdoors lounge table and angrily throwing Tarot cards from a balcony, close up on her detailed face, moderately blemished lined skin texture, extremely photorealistic, cards fly down from balcony, scattering everywhere
[!] txt2img mode
Using dev model
free=29579398946816
Downloading weights
2024-11-16T19:32:18Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsiz6z5jx/weights url=https://replicate.delivery/xezq/TMzxS7q27ybVAZ0qDb5L6tLX8CAuekZDt0Fyo8VWfc08dQxTA/trained_model.tar
2024-11-16T19:32:22Z | INFO | [ Complete ] dest=/tmp/tmpsiz6z5jx/weights size="258 MB" total_elapsed=3.396s url=https://replicate.delivery/xezq/TMzxS7q27ybVAZ0qDb5L6tLX8CAuekZDt0Fyo8VWfc08dQxTA/trained_model.tar
Downloaded weights in 3.42s
Loaded LoRAs in 4.02s
0%| | 0/29 [00:00<?, ?it/s]
3%|▎ | 1/29 [00:00<00:09, 3.00it/s]
7%|▋ | 2/29 [00:00<00:08, 3.31it/s]
10%|█ | 3/29 [00:00<00:08, 3.19it/s]
14%|█▍ | 4/29 [00:01<00:07, 3.14it/s]
17%|█▋ | 5/29 [00:01<00:07, 3.11it/s]
21%|██ | 6/29 [00:01<00:07, 3.09it/s]
24%|██▍ | 7/29 [00:02<00:07, 3.08it/s]
28%|██▊ | 8/29 [00:02<00:06, 3.07it/s]
31%|███ | 9/29 [00:02<00:06, 3.07it/s]
34%|███▍ | 10/29 [00:03<00:06, 3.06it/s]
38%|███▊ | 11/29 [00:03<00:05, 3.06it/s]
41%|████▏ | 12/29 [00:03<00:05, 3.06it/s]
45%|████▍ | 13/29 [00:04<00:05, 3.06it/s]
48%|████▊ | 14/29 [00:04<00:04, 3.06it/s]
52%|█████▏ | 15/29 [00:04<00:04, 3.06it/s]
55%|█████▌ | 16/29 [00:05<00:04, 3.06it/s]
59%|█████▊ | 17/29 [00:05<00:03, 3.06it/s]
62%|██████▏ | 18/29 [00:05<00:03, 3.05it/s]
66%|██████▌ | 19/29 [00:06<00:03, 3.06it/s]
69%|██████▉ | 20/29 [00:06<00:02, 3.06it/s]
72%|███████▏ | 21/29 [00:06<00:02, 3.06it/s]
76%|███████▌ | 22/29 [00:07<00:02, 3.06it/s]
79%|███████▉ | 23/29 [00:07<00:01, 3.06it/s]
83%|████████▎ | 24/29 [00:07<00:01, 3.06it/s]
86%|████████▌ | 25/29 [00:08<00:01, 3.06it/s]
90%|████████▉ | 26/29 [00:08<00:00, 3.06it/s]
93%|█████████▎| 27/29 [00:08<00:00, 3.06it/s]
97%|█████████▋| 28/29 [00:09<00:00, 3.06it/s]
100%|██████████| 29/29 [00:09<00:00, 3.06it/s]
100%|██████████| 29/29 [00:09<00:00, 3.07it/s]