1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "imageUrl": "https://drive.google.com/file/d/1S5sCnyVmnRHxk233EfZ6byjClr8pxaUU/view?usp=drive_link",
10 "prompt": "Professional product photography of a young white female model wearing/holding the provided [PRODUCT], 9:16 vertical Pinterest aspect ratio, front-facing portrait with direct confident eye contact, natural soft studio lighting with large softbox and fill reflector, high-resolution 8K commercial quality, minimalist aesthetic with product clearly showcased as hero element, choose from backgrounds: prefer natural landscape.",
11 "outputFormat": "jpeg",
12 "aspectRatio": "1024*1024",
13 "seed": -1,
14 "numInferenceSteps": 28,
15 "guidance": 7.5,
16 "enableBase64Output": False,
17}
18
19
20run = client.actor("akash9078/ai-image-editor").call(run_input=run_input)
21
22
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27