1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "prompts": [
10 "A cosmic tree with stars and galaxies hanging from its branches",
11 "A glass bridge spanning across two floating mountains",
12 "Mermaids singing in an underwater concert",
13 ],
14 "modelVersion": "flux-krea",
15 "guidanceScale": 5,
16 "shape": "square",
17 "numInferenceSteps": 8,
18 "proxyConfiguration": {
19 "useApifyProxy": True,
20 "apifyProxyGroups": ["RESIDENTIAL"],
21 },
22}
23
24
25run = client.actor("parsebird/artbreeder-ai-image-generator").call(run_input=run_input)
26
27
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30 print(item)
31
32