1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "inputImages": [
12 "https://api.apify.com/v2/key-value-stores/S8l2sknfAAra9YPZ7/records/Vintage-Billiard-Table-Enamel-Diamond-Ruby-Pearl-Ring-JRD001-86579a1.800.jpg"
13 ],
14 "jewelryType": "ring",
15 "handPose": "relaxed",
16 "skinTone": "none",
17 "background": "custom",
18 "customBackground": "blurred textured concrete or dark slate surface, minimalist architectural atmosphere",
19 "lighting": "soft-natural",
20 "cameraAngle": "angled",
21 "imageStyle": "high-fashion",
22 "additionalInstructions": "Ultra-sharp focus on the jewelry details, 8k resolution, luxury jewelry campaign aesthetic.",
23 "temperature": 0.1
24};
25
26
27const run = await client.actor("parseforge/jewelry-hand-model-image-generator").call(input);
28
29
30console.log('Results from dataset');
31console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32const { items } = await client.dataset(run.defaultDatasetId).listItems();
33items.forEach((item) => {
34 console.dir(item);
35});
36
37