Emilia AI Studio — API Reference

Generate AI product, food, jewelry, clothing, furniture and cosmetics images programmatically.

Base URL: https://ai.emilia.digital/he/wp-json/emai/v1

Authentication

All API requests must include your personal API key as a Bearer token in the Authorization header. Generate or rotate your key under My Account → Integrations.

Authorization: Bearer YOUR_API_KEY
Keep it secret. Each render call deducts credits from your account. Never embed the key in client-side code — proxy it through your own server.

POST /ai-image-render

POST https://ai.emilia.digital/he/wp-json/emai/v1/ai-image-render

Generates a single AI image from a source product photo.

Headers

HeaderValue
AuthorizationrequiredBearer YOUR_API_KEY
Content-Typerequiredapplication/json

Body parameters

Fieldסוגתיאור
image_data_urlrequired* string Source image as a base64 data URL (data:image/jpeg;base64,...) or a publicly reachable HTTPS URL. *Either this or image_id must be provided.
image_idלא חובה integer WordPress media library attachment ID (only useful if you uploaded the source via WP).
moderequired string Product category. See Modes. Example: product, jewelry, food.
presetrequired* string Style ID for the chosen mode. See Styles per mode. *Required unless using presenter_id or custom_prompt.
presenter_idלא חובה integer ID of a presenter (model/character) to feature. Get the list via POST /get-plugin-config.
custom_promptלא חובה string Free-form text prompt — overrides preset styling.
aspectלא חובה string Output aspect ratio. Defaults to 1:1. See Aspect ratios.
resolutionלא חובה string Output resolution. Defaults to 1K. Affects credit cost — see Resolutions.
additional_imagesלא חובה string[] Up to ~3 extra reference images (data URLs or HTTPS URLs) — e.g. brand logo, color reference, secondary product.
replacement_imageלא חובה string Background image (data URL or HTTPS URL) used by area-replacement styles.
helper fieldsלא חובה various Per-style fine-tuning fields — see Style helpers.

Modes (categories)

Each mode unlocks a different set of styles and helper fields.

IDTitleUse case
product כללי הדמיות סטודיו ולייף סטייל לרוב המוצרים.
jewelry תכשיטים צילומים מסחריים יוקרתיים לתכשיטים.
clothing ביגוד צילום מסחרי ואופנתי לביגוד.
food מזון ומשקאות צילום מנות ומשקאות לתפריטים וסושיאל.
furniture ריהוט סצנות חדר מקצועיות וצילומי סטודיו לרהיטים.
cosmetics ביוטי וקוסמטיקה צילום אדיטוריאל וסטודיו יוקרתי לטיפוח עור, איפור וניחוחות.

Styles per mode

Pass the style ID via the preset field. Styles are derived from the helper configuration — each style ID below is valid for the indicated mode.

כללי (product)

with_presenter scene pure_white studio_gradient color_backdrop

System presets for this mode

IDTitleתיאור
pure_white צילום פקשוט רקע נקי ומינימליסטי להתמקדות במוצר.
studio_gradient משטח סטודיו צילום סטודיו מתקדם על שיש, עץ, בטון ועוד.
editorial_close_up_product תמונת תקריב צילומי תקריב אמנותיים המדגישים פרטי מוצר
scene לפי מיקום מקם את המוצר שלך בסצנה מחיי היומיום.
with_presenter עם פרזנטור הצג את המוצר שלך עם פרזנטור (פרזנטור AI או פרזנטור אמיתי).
reference לפי השראה צור את תמונת המוצר בהתבסס על תמונת השראה.

מזון ומשקאות (food)

top_view side_view action_image lifestyle hands_touch macro_texture

System presets for this mode

IDTitleתיאור
side_view מבט צד זווית צד להדגשת השכבות והגובה.
top_view מבט עליון צילום מלמעלה המציג את המנה כולה.
lifestyle לייפסטייל מנה מעוצבת באופן טבעי עם אביזרים עדינים על השולחן.
hands_touch ידיים ומגע הצג אינטראקציה עם המנה באמצעות ידיים או סכו"ם.
macro_texture תקריב מנה תקריב של מרקמים, שכבות ופרטים.
reference_food לפי השראה צור את תמונת המנה בהתבסס על תמונת השראה.

תכשיטים (jewelry)

studio_packshot macro_detail styled_still_life on_model collection_showcase lifestyle_jewelry

System presets for this mode

IDTitleתיאור
studio_packshot צילום סטודיו צילומי סטודיו על רקע נקי.
styled_still_life צילום סצנה צילום מקצועי עם אביזרי יוקרה כמו בד, אבן או פרחים.
collection_showcase קולקציה קומפוזיציה אמנותית של מספר חלקים לפרסום וסושיאל.
on_model על הגוף מציג את התכשיטים על חלק הגוף הרלוונטי כדי להדגים קנה מידה והתאמה.
lifestyle_jewelry סצנת לייפסטייל הצג את התכשיט בסביבה אמיתית ושאפתנית.
reference_jewelry לפי השראה צור תמונת תכשיטים על בסיס תמונת השראה.

ביגוד (clothing)

editorial_close_up ecommerce_packshot artistic_flat_lay studio_model lifestyle_scene reference_clothing

System presets for this mode

IDTitleתיאור
ecommerce_packshot צילום מוצר צילום נקי עבור קטלוג מוצרים או אתר אינטרנט.
editorial_close_up צילום תקריב קלוז-אפ מדויק המבליט את הטקסטורה, לוגו ואלמנטים אחרים.
artistic_flat_lay שטוח אמנותי צילום יצירתי מלמעלה ללוקבוק ולמדיה חברתית.
studio_model פרזנטור בסטודיו צילום לוקבוק קלאסי עם פרזנטור בסטודיו.
lifestyle_scene סצנת לייפסטייל הצג את הלבוש כחלק מיום צילום אמיתי.
reference_clothing לפי השראה יצירת תמונה חדשה לפי השראה מפרסומת או תמונה אחרת.

ריהוט (furniture)

furniture_packshot minimalist_space cozy_vignette furniture_with_model material_detail

System presets for this mode

IDTitleתיאור
furniture_packshot צילום סטודיו רקע לבן נקי לקטלוגים של חנויות.
minimalist_space חדר מינימליסטי מרחב אוורירי ונקי להדגשת הרהיט.
cozy_vignette חלל מעוצב חדר מעוצב עם דקורציה ותאורה רכה.
material_detail פרטי חומר צילום מאקרו (קירוב) המדגיש טקסטורה וחומרי הרהיט.
furniture_with_model עם פרזנטור רהיט עם מציג לקנה מידה והקשר.
reference_furniture לפי השראה אסתטיקת חדר על בסיס תמונת השראה.

ביוטי וקוסמטיקה (cosmetics)

cosmetics_packshot earthy_minimalism texture_swatch minimalist_vanity cosmetics_with_model

System presets for this mode

IDTitleתיאור
cosmetics_packshot צילום סטודיו רקע לבן נקי או צבע אחיד למסחר אלקטרוני.
earthy_minimalism אלמנטים טבעיים סידור יוקרתי עם אבן גולמית, טיח או אדוות מים.
texture_swatch דוגמת מרקם צילום מאקרו אומנותי המציג את מרקם הפורמולה לצד האריזה.
minimalist_vanity שידה נקייה סביבת אמבטיה או ספא יוקרתית עם תאורה רכה וחמה.
cosmetics_with_model עם פרזנטור פרזנטור עם עור זוהר מחזיק או מורח את המוצר.
reference_cosmetics לפי השראה אסתטיקה, תאורה וסגנון על בסיס תמונת השראה.

Aspect ratios

Pass via the aspect field. Default: 1:1.

ValueUse case
1:1ריבוע
4:5פוסט
9:16סטורי
16:9מסך רחב
3:4מסורתי
3:2סטנדרטי
4:3קלאסי
21:9רחב במיוחד

Resolutions & credit cost

Pass via the resolution field. Default: 1K.

ValuePixels (longest side)Credits per render
512 512px 2
1K 1024px 3
2K 2048px 4
4K 4096px 6

Style helpers (per-style options)

Each style accepts an additional set of fine-tuning fields. Add these as top-level keys in the request body. Helpers not in the chosen style's list are ignored.

כללי (product)

FieldסוגDefaultApplies to stylesOptions
presenter_interaction
אינטראקציה
select holding with_presenter
holding אחיזת המוצר
auto אוטומטי
using שימוש במוצר
hand_closeup ידיים בתקריב
show_scale הצגת קנה מידה
unboxing פתיחת אריזה
gifting מתנה / הצגה
commercial_scene סצנה מסחרית (ללא אחיזה)
editorial_story סיפור עיתונאי
lifestyle_context הקשר סגנון חיים (בקרבת מקום)
presenter_shot
סוג צילום
select full_body with_presenter
hands_only ידיים בלבד
tabletop משטח + ידיים
close_up תקריב
half_body חצי גוף
full_body גוף מלא
bg_scene
מיקום
select living_room scene with_presenter
living_room סלון
kitchen מטבח
bedroom חדר שינה
bathroom חדר אמבטיה
home_office משרד ביתי
dining_room חדר אוכל
hallway_entryway מסדרון/כניסה
retail_store חנות קמעונאית
cafe_restaurant בית קפה/מסעדה
art_gallery גלריית אמנות
workshop_studio_creative סדנה יצירתית/סטודיו
gym_fitness_center חדר כושר/מרכז כושר
spa_wellness_center ספא/מרכז בריאות
library_bookstore ספרייה/חנות ספרים
warehouse_industrial מחסן/חלל תעשייתי
garden_backyard גינה/חצר אחורית
park_green_space פארק/שטח ירוק
beach_waterfront חוף/קו מים
forest_woods יער/חורש
mountain_wilderness הר/מדבר
city_street_urban רחוב עירוני/אורבני
outdoor_cafe_terrace בית קפה/טרסה חיצונית
residential_balcony_terrace מרפסת/טרסה ביתית
plain_seamless_background רקע חלק רציף
abstract_geometric_space חלל גיאומטרי מופשט
scene_style
סגנון סביבה
select minimalist_modern scene with_presenter
minimalist_modern מינימליסטי מודרני
contemporary_clean עכשווי נקי
scandinavian סקנדינבי
japandi יפנדי
mid_century_modern מודרני אמצע המאה
vintage_classic וינטג׳ קלאסי
art_deco ארט דקו
retro_80s רטרו שנות ה-80
retro_90s רטרו שנות ה-90
rustic_farmhouse כפרי כפרי
eco_natural_organic אקולוגי/טבעי/אורגני
mediterranean_warm ים תיכוני חם
coastal_nautical חופי/ימי
tropical_resort נופש טרופי
zen_wabi_sabi זן / וואבי-סאבי
industrial_loft לופט תעשייתי
urban_street_gritty רחוב אורבני / מחוספס
studio_high_key סטודיו היי-קי
studio_low_key סטודיו לואו-קי
monochrome_high_contrast מונוכרום / ניגודיות גבוהה
pastel_soft פסטל / רך
dark_moody כהה ואפלולי
high_tech_sleek היי-טק מהוקצע
futuristic_sci_fi עתידני / מדע בדיוני
pop_art_color פופ ארט / צבע פופ
shadow
משטח
select soft pure_white
soft צל רך
none ללא
reflection השתקפות
product_surface
משטח
select gradient studio_gradient
gradient גרדיאנט (קלאסי)
seamless_paper נייר רציף
marble שיש
wood עץ
concrete בטון
terrazzo טרצו
linen פשתן / בד
dark_slate אבן צפחה כהה
acrylic אקריליק / זכוכית
sand חול
bg_color
רקע
color #ffffff color_backdrop pure_white studio_gradient Hex color, e.g. #FFFFFF
product_width_cm
רוחב (ס"מ)
number scene with_presenter free text
product_height_cm
גובה (ס"מ)
number scene with_presenter free text
product_depth_cm
עומק (ס"מ)
number scene with_presenter free text

מזון ומשקאות (food)

FieldסוגDefaultApplies to stylesOptions
food_background
רקע
select marble top_view side_view action_image lifestyle hands_touch macro_texture
clean נקי
marble שיש
wood עץ
concrete בטון
textured_paper נייר מרקם
food_style
סגנון
select realistic top_view side_view action_image lifestyle hands_touch macro_texture
realistic ריאליסטי
color_pop פופ צבע
food_surface
כלי
select keep_original_vessel top_view side_view action_image lifestyle hands_touch macro_texture
round_plate צלחת עגולה
square_plate צלחת מלבנית
bowl קערה
metal_plate צלחת מתכת
board_slate לוח / צפחה
wooden_board קרש עץ
fabric_napkin בד / מפית
keep_original_vessel זהה לתמונה המקורית
no_surface ללא
food_color
צבע
color #000000 top_view side_view action_image lifestyle hands_touch macro_texture Hex color, e.g. #FFFFFF

תכשיטים (jewelry)

FieldסוגDefaultApplies to stylesOptions
jewelry_bg_color
רקע
color #ffffff studio_packshot Hex color, e.g. #FFFFFF
jewelry_composition_style
קומפוזיציה
select standing studio_packshot
centered ממורכז
standing עומד
flat_lay תצוגת פריסה (מבט עליון)
angled תצוגה בזווית
jewelry_shadow_style
צל / השתקפות
select soft studio_packshot
soft צל רך
reflection השתקפות
none ללא (צף)
jewelry_focus_point
נקודת מיקוד
select center_gemstone macro_detail
center_gemstone אבן חן מרכזית
metal_details פרטי מתכת
full_clarity בהירות מלאה (חד)
jewelry_macro_background
רקע
select out_of_focus_gradient macro_detail
out_of_focus_gradient גרדיאנט מחוץ לפוקוס
subtle_texture מרקם עדין
jewelry_scene_elements
אלמנטי סצנה
select luxe_fabric styled_still_life
luxe_fabric בד יוקרתי (משי/קטיפה)
natural_stone אבן טבעית (שיש/צפחה)
organic אורגני (עלה כותרת/עלה)
jewelry_mood
סגנון
select light_and_airy styled_still_life
light_and_airy בהיר ואווירתי
dark_and_moody כהה ואפלולי
jewelry_gender
מגדר
select female on_model
female נקבה
male זכר
jewelry_skin_tone
גוון עור
select light on_model
light גוונים בהירים
medium גוונים בינוניים
deep גוונים כהים
jewelry_body_part
חלק גוף
select auto on_model
auto אוטומטי
hand_wrist יד ופרק כף היד
finger אצבע
ear_lobe אוזן
neck_decollete צוואר ומחשוף
nose אף
jewelry_model_background
רקע
select studio_background on_model
studio_background רקע סטודיו
soft_focus_environment סביבת פוקוס רך
jewelry_layout_style
סגנון פריסה
select dynamic_cascade collection_showcase
dynamic_cascade מפל דינמי
ordered_array מערך מסודר
focused_stack ערימה ממוקדת
jewelry_background_surface
משטח רקע
select reflective_mirror collection_showcase
reflective_mirror מראה מחזירת אור
seamless_color צבע חלק
textured_material חומר מרקם
jewelry_theme_color
צבע
color #ffffff collection_showcase styled_still_life on_model Hex color, e.g. #FFFFFF
jewelry_creative_direction
כיוון יצירתי
select clean_editorial_portrait lifestyle_jewelry
clean_editorial_portrait פורטרט נקי
dramatic_dark_portrait פורטרט דרמטי ואפל
color_story_portrait פורטרט צבע
getting_ready_moment רגע ההתארגנות
captured_in_motion רגע בתנועה
the_quiet_moment הרגע השקט
night_out_after_dark בילוי לילי / אחרי החשיכה
silk_and_skin משי ועור
wet_and_fresh רטוב ורענן
sun_kissed_golden נשיקת שמש וזהב
mirror_and_reflection מראה והשתקפות
monochrome_world עולם מונוכרומטי
botanical_beauty יופי בוטני
beach_and_ocean חוף וים
desert_golden_dunes מדבר ודיונות
city_rooftop_skyline ג עירוני / קו רקיע
poolside בריכה
mediterranean_terrace מרפסת ים תיכונית
jewelry_expression
הבעת פנים
select confident_direct lifestyle_jewelry
confident_direct בטוחה וישירה
soft_contemplative רכה ומהרהרת
playful_expressive שמחה ושובבה
jewelry_shot_type
סוג צילום
select focus_on_jewelry lifestyle_jewelry
focus_on_jewelry מיקוד בתכשיט
wide_portrait פורטרט רחב

ביגוד (clothing)

FieldסוגDefaultApplies to stylesOptions
fabric_type
סוג בד
select auto editorial_close_up
auto זיהוי אוטמטי
cotton כותנה
linen פשתן
silk משי
wool צמר
cashmere קשמיר
denim ג'ינס
leather עור
synthetic_polyester סינתטי / פוליאסטר
knit סריג
fleece פליס
velvet קטיפה
satin סאטן
chiffon שיפון
nylon ניילון
spandex_stretch ספנדקס / אלסטי
suede זמש
corduroy קורדרוי
lace תחרה
garment_view
צד הבגד
select front ecommerce_packshot artistic_flat_lay studio_model lifestyle_scene reference_clothing
front חלק קדמי
back חלק אחורי
garment_fit
התאמת בגד
select true_to_size ecommerce_packshot artistic_flat_lay studio_model lifestyle_scene reference_clothing
true_to_size מידה אמיתית (סטנדרט)
slim_fit Slim Fit
loose_fit אוברסייז
relaxed_fit Relaxed Fit
display_style
סגנון תצוגה
select flat_lay ecommerce_packshot
flat_lay שטוח
ghost_mannequin הדמיית 3D
front_view מבט קדמי (נעליים, כובעים)
surface_type
משטח
select wood artistic_flat_lay
wood עץ
marble שיש
concrete בטון
linen_fabric בד פשתן
seamless_paper נייר רציף
background_type
רקע
select seamless_paper studio_model
seamless_paper נייר רציף
concrete_wall קיר בטון
plaster_wall קיר טיח
industrial_brick לבנים תעשייתיות
bg_color
רקע
color #ffffff ecommerce_packshot studio_model artistic_flat_lay Hex color, e.g. #FFFFFF
model_shot
צילום פרזנטור
select full_body studio_model lifestyle_scene
full_body גוף מלא
waist_up מותניים ומעלה
flatlay_view
זווית צפייה
select top_down artistic_flat_lay
top_down תצוגת פריסה (מבט עליון)
front_view מבט קדמי (נעליים, כובעים)
lighting_style
תאורה
select soft_studio artistic_flat_lay
soft_studio סטודיו רך
natural_sunlight אור שמש טבעי
dramatic_high_contrast דרמטי / ניגודיות גבוהה
scene_location
מיקום סצנה
select urban_city_street lifestyle_scene
urban_city_street רחוב עירוני
modern_cafe בית קפה מודרני
rooftop_lounge טרקלין גג
subway_station תחנת רכבת תחתית
park_nature פארק / טבע
beach_coastal חוף / חופי
forest_trail שביל ביער
botanical_garden גן בוטני
minimalist_interior פנים מינימליסטי
art_gallery גלריית אמנות
library_bookstore ספרייה / חנות ספרים
luxury_hotel_lobby לובי מלון יוקרתי
new_york_city ניו יורק
los_angeles לוס אנג'לס
san_francisco סן פרנסיסקו
miami מיאמי
toronto טורונטו
mexico_city מקסיקו סיטי
buenos_aires בואנוס איירס
rio_de_janeiro ריו דה ז'נרו
havana הוואנה
london לונדון
paris פריז
rome רומא
milan מילאנו
barcelona ברצלונה
madrid מדריד
berlin ברלין
amsterdam אמסטרדם
copenhagen קופנהגן
lisbon ליסבון
vienna וינה
prague פראג
athens אתונה
dubai דובאי
doha דוחא
jeddah ג'דה
istanbul איסטנבול
tel_aviv תל אביב
jerusalem ירושלים
cairo קהיר
marrakech מרקשמרקש
cape_town קייפטאון
nairobi ניירובי
tokyo טוקיו
seoul סיאול
shanghai שנגחאי
bangkok בנגקוק
singapore סינגפור
sydney סידני
santorini סנטוריני
amalfi_coast חוף אמלפי
time_of_day
שעת היום
select auto lifestyle_scene
auto אוטומטי — הכי מתאים לסצנה
golden_hour שעת זהב
morning בוקר מוקדם
midday שמש צהריים
blue_hour שעת הדמדומים / בין הערביים
night לילה
weather_condition
מזג אוויר
select clear lifestyle_scene
clear בהיר
cloudy מעונן
rainy גשום
snowy מושלג
foggy ערפילי

ריהוט (furniture)

FieldסוגDefaultApplies to stylesOptions
furniture_angle
זווית צפייה
select auto furniture_packshot
auto אוטומטי
no_change ללא שינוי
front חלק קדמי
side מבט צד
isometric מבט איזומטרי 3/4
top_down מבט עליון / עין הציפור
furniture_shadow
משטח
select soft furniture_packshot
soft צל רך (רצפה)
hard צל סטודיו קשה
none ללא (צף)
furniture_bg_color
רקע
color #ffffff furniture_packshot Hex color, e.g. #FFFFFF
furniture_room_type
סוג חדר / מרחב
select clean_studio minimalist_space cozy_vignette furniture_with_model
clean_studio סטודיו נקי
living_room סלון
bedroom חדר שינה
dining_room חדר אוכל
home_office משרד ביתי
outdoor_patio פטיו חיצוני / מרפסת
office_coworking משרד / מרחב עבודה משותף
restaurant_cafe מסעדה / בית קפה
hotel_lobby לובי מלון / טרקלין
retail_store חנות / בוטיק
conference_room חדר ישיבות
furniture_design_style
סגנון עיצוב פנים
select auto minimalist_space cozy_vignette furniture_with_model
auto אוטומטי
modern מודרני
rustic כפרי
nordic נורדי
boho_chic בוהו שיק
industrial תעשייתי
classic קלאסי
tuscan טוסקני
provence פרובנס
eclectic אקלקטי
retro רטרו
vintage וינטג'
wabi_sabi וואבי סאבי
ethnic אתני
urban אורבני
american אמריקאי
japanese יפני
minimalist מינימליסטי
shabby_chic שאבי שיק
moroccan מרוקאי
furniture_material
התמקדות בחומר
select auto material_detail
auto אוטומטי (תנו ל-AI לזהות)
wood_grain גרגר עץ
leather עור
velvet קטיפה
linen_cotton פשתן / כותנה
boucle בוקלה / בד מרקם
metal_finish גימור מתכת
stone_marble אבן / שיש
furniture_interaction
אינטראקציה
select auto furniture_with_model
auto אוטומטי
sitting יושב על הרהיט
standing_next עומד לידו
leaning נשען על / נוגע
lounging שכיבה / רגוע
furniture_width_cm
רוחב (ס"מ)
number minimalist_space cozy_vignette furniture_with_model free text
furniture_height_cm
גובה (ס"מ)
number minimalist_space cozy_vignette furniture_with_model free text
furniture_depth_cm
עומק (ס"מ)
number minimalist_space cozy_vignette furniture_with_model free text

ביוטי וקוסמטיקה (cosmetics)

FieldסוגDefaultApplies to stylesOptions
cosmetics_angle
זווית צפייה
select auto cosmetics_packshot
auto אוטומטי
no_change ללא שינוי
front חלק קדמי
slightly_above מעט מלמעלה
top_down מלמעלה / שטוח
cosmetics_shadow
משטח
select soft cosmetics_packshot
soft צל סטודיו רך
reflection השתקפות במראה
hard_light צל אור שמש חזק
none ללא (צף)
cosmetics_bg_color
רקע
color #F5F5F0 cosmetics_packshot Hex color, e.g. #FFFFFF
cosmetics_element
אלמנט ראשי
select travertine_stone earthy_minimalism
travertine_stone לוח אבן טרוורטין
plaster_clay טיח גולמי וחימר
shallow_water בריכת מים רדודה ואדוות
wet_stone אבן רטובה וטיפות מים
fine_sand חול דק / אדמה
alabaster_marble שיש אלבסטר חלק
cosmetics_env_color
צבע אטמוספרה / משטח
color #E8DCC4 earthy_minimalism Hex color, e.g. #FFFFFF
cosmetics_formula
מרקם הפורמולה
select thick_cream texture_swatch
thick_cream קרם לחות סמיך
clear_serum טיפת סרום שקופה
foaming_cleanser בועות קצף מנקה
grainy_scrub סקראב מקלף גרגירי
body_oil התזת שמן גוף זהוב
loose_powder אבקה מינרלית רופפת
cosmetics_swatch_color
צבע רקע / משטח
color #F2EBE5 texture_swatch Hex color, e.g. #FFFFFF
cosmetics_vanity
סידור שידת איפור
select marble_sink minimalist_vanity
marble_sink קצה כיור שיש נקי
spa_towels סידור מגבות ספא רכות
warm_wood_shelf מדף אמבט עץ חם
glass_shower מדף מקלחת זכוכית מהביל
cosmetics_interaction
תנוחת דוגמנית
select holding_near_face cosmetics_with_model
holding_near_face אחיזה עדינה ליד הפנים
applying_to_cheek מריחת טקסטורה על הלחי
resting_on_collarbone מונח על עצם הבריח/כתף
holding_in_palm אחיזה נקייה בכף היד
cosmetics_model_scene
סצנת רקע
select clean_studio cosmetics_with_model
clean_studio רקע סטודיו נקי
natural_sunlight אור שמש וצללים טבעיים מהחלון
textured_plaster טיח מרקם / קיר אדמתי
spa_bathroom ספא יוקרתי / סביבת אמבטיה
water_nature טבע רך / רקע מים
cosmetics_width_cm
רוחב (ס"מ)
number earthy_minimalism minimalist_vanity cosmetics_with_model texture_swatch free text
cosmetics_height_cm
גובה (ס"מ)
number earthy_minimalism minimalist_vanity cosmetics_with_model texture_swatch free text
cosmetics_depth_cm
עומק (ס"מ)
number earthy_minimalism minimalist_vanity cosmetics_with_model texture_swatch free text

Response format

הצלחה — 200 OK

{
  "ok": true,
  "data_url": "https://cdn.emilia.digital/.../generated.jpg",
  "s3": {
    "item": {
      "public_id": "abc123",
      "display_url": "https://cdn.emilia.digital/.../generated.jpg"
    }
  },
  "firstTry": false,
  "credits_available": null
}

data_url is the canonical CDN URL of your generated image — store this on your end.

שגיאה

{
  "code": "no_credits",
  "message": "no_credits",
  "data": { "status": 402 }
}

שגיאות

StatusCodeMeaning
400 no_image No image was provided in the request.
400 bad_data_url The image_data_url is not a valid base64 image.
401 invalid_key Missing or invalid Authorization Bearer key.
402 no_credits User has no remaining credits for this resolution.
429 rate_limited Too many requests — slow down and retry.
429 busy Concurrency limit hit — retry shortly.
500 generation_failed The AI provider returned no result.
503 encode_failed The provider blocked or could not encode the result.

Full examples

cURL — minimal request

curl -X POST 'https://ai.emilia.digital/he/wp-json/emai/v1/ai-image-render' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "mode": "product",
    "preset": "pure_white",
    "aspect": "1:1",
    "resolution": "1K",
    "image_data_url": "https://example.com/my-product.jpg"
  }'

cURL — with helpers (jewelry on model)

curl -X POST 'https://ai.emilia.digital/he/wp-json/emai/v1/ai-image-render' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "mode": "jewelry",
    "preset": "on_model",
    "aspect": "4:5",
    "resolution": "2K",
    "model": "gemini",
    "image_data_url": "https://example.com/ring.jpg",
    "jewelry_gender": "female",
    "jewelry_skin_tone": "medium",
    "jewelry_body_part": "finger",
    "jewelry_model_background": "soft_focus_environment"
  }'

Node.js (fetch)

const res = await fetch('https://ai.emilia.digital/he/wp-json/emai/v1/ai-image-render', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.EMILIA_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    mode: 'food',
    preset: 'top_view',
    aspect: '1:1',
    resolution: '1K',
    image_data_url: 'https://example.com/dish.jpg',
    food_background: 'marble',
    food_style: 'realistic'
  })
});

const json = await res.json();
console.log(json.data_url);

PHP

$response = wp_remote_post('https://ai.emilia.digital/he/wp-json/emai/v1/ai-image-render', [
    'timeout' => 120,
    'headers' => [
        'Authorization' => 'Bearer ' . EMILIA_API_KEY,
        'Content-Type'  => 'application/json',
    ],
    'body' => wp_json_encode([
        'mode'           => 'clothing',
        'preset'         => 'studio_model',
        'aspect'         => '4:5',
        'resolution'     => '2K',
        'image_data_url' => 'https://example.com/shirt.jpg',
        'garment_view'   => 'front',
        'garment_fit'    => 'true_to_size',
        'background_type'=> 'seamless_paper',
        'bg_color'       => '#FFFFFF',
    ]),
]);

$body = json_decode(wp_remote_retrieve_body($response), true);
echo $body['data_url'];
Tip: render calls can take 15–60 seconds. Set a generous timeout (≥120 s) and consider running calls async on your end.