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
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
| Header | Value |
|---|---|
Authorizationrequired | Bearer YOUR_API_KEY |
Content-Typerequired | application/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.
| ID | Title | Use 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)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
pure_white |
צילום פקשוט | רקע נקי ומינימליסטי להתמקדות במוצר. |
studio_gradient |
משטח סטודיו | צילום סטודיו מתקדם על שיש, עץ, בטון ועוד. |
editorial_close_up_product |
תמונת תקריב | צילומי תקריב אמנותיים המדגישים פרטי מוצר |
scene |
לפי מיקום | מקם את המוצר שלך בסצנה מחיי היומיום. |
with_presenter |
עם פרזנטור | הצג את המוצר שלך עם פרזנטור (פרזנטור AI או פרזנטור אמיתי). |
reference |
לפי השראה | צור את תמונת המוצר בהתבסס על תמונת השראה. |
מזון ומשקאות (food)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
side_view |
מבט צד | זווית צד להדגשת השכבות והגובה. |
top_view |
מבט עליון | צילום מלמעלה המציג את המנה כולה. |
lifestyle |
לייפסטייל | מנה מעוצבת באופן טבעי עם אביזרים עדינים על השולחן. |
hands_touch |
ידיים ומגע | הצג אינטראקציה עם המנה באמצעות ידיים או סכו"ם. |
macro_texture |
תקריב מנה | תקריב של מרקמים, שכבות ופרטים. |
reference_food |
לפי השראה | צור את תמונת המנה בהתבסס על תמונת השראה. |
תכשיטים (jewelry)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
studio_packshot |
צילום סטודיו | צילומי סטודיו על רקע נקי. |
styled_still_life |
צילום סצנה | צילום מקצועי עם אביזרי יוקרה כמו בד, אבן או פרחים. |
collection_showcase |
קולקציה | קומפוזיציה אמנותית של מספר חלקים לפרסום וסושיאל. |
on_model |
על הגוף | מציג את התכשיטים על חלק הגוף הרלוונטי כדי להדגים קנה מידה והתאמה. |
lifestyle_jewelry |
סצנת לייפסטייל | הצג את התכשיט בסביבה אמיתית ושאפתנית. |
reference_jewelry |
לפי השראה | צור תמונת תכשיטים על בסיס תמונת השראה. |
ביגוד (clothing)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
ecommerce_packshot |
צילום מוצר | צילום נקי עבור קטלוג מוצרים או אתר אינטרנט. |
editorial_close_up |
צילום תקריב | קלוז-אפ מדויק המבליט את הטקסטורה, לוגו ואלמנטים אחרים. |
artistic_flat_lay |
שטוח אמנותי | צילום יצירתי מלמעלה ללוקבוק ולמדיה חברתית. |
studio_model |
פרזנטור בסטודיו | צילום לוקבוק קלאסי עם פרזנטור בסטודיו. |
lifestyle_scene |
סצנת לייפסטייל | הצג את הלבוש כחלק מיום צילום אמיתי. |
reference_clothing |
לפי השראה | יצירת תמונה חדשה לפי השראה מפרסומת או תמונה אחרת. |
ריהוט (furniture)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
furniture_packshot |
צילום סטודיו | רקע לבן נקי לקטלוגים של חנויות. |
minimalist_space |
חדר מינימליסטי | מרחב אוורירי ונקי להדגשת הרהיט. |
cozy_vignette |
חלל מעוצב | חדר מעוצב עם דקורציה ותאורה רכה. |
material_detail |
פרטי חומר | צילום מאקרו (קירוב) המדגיש טקסטורה וחומרי הרהיט. |
furniture_with_model |
עם פרזנטור | רהיט עם מציג לקנה מידה והקשר. |
reference_furniture |
לפי השראה | אסתטיקת חדר על בסיס תמונת השראה. |
ביוטי וקוסמטיקה (cosmetics)
System presets for this mode
| ID | Title | תיאור |
|---|---|---|
cosmetics_packshot |
צילום סטודיו | רקע לבן נקי או צבע אחיד למסחר אלקטרוני. |
earthy_minimalism |
אלמנטים טבעיים | סידור יוקרתי עם אבן גולמית, טיח או אדוות מים. |
texture_swatch |
דוגמת מרקם | צילום מאקרו אומנותי המציג את מרקם הפורמולה לצד האריזה. |
minimalist_vanity |
שידה נקייה | סביבת אמבטיה או ספא יוקרתית עם תאורה רכה וחמה. |
cosmetics_with_model |
עם פרזנטור | פרזנטור עם עור זוהר מחזיק או מורח את המוצר. |
reference_cosmetics |
לפי השראה | אסתטיקה, תאורה וסגנון על בסיס תמונת השראה. |
Aspect ratios
Pass via the aspect field. Default: 1:1.
| Value | Use 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.
| Value | Pixels (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 | סוג | Default | Applies to styles | Options | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
presenter_interactionאינטראקציה |
select |
holding |
with_presenter |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
presenter_shotסוג צילום |
select |
full_body |
with_presenter |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
bg_sceneמיקום |
select |
living_room |
scene with_presenter |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
scene_styleסגנון סביבה |
select |
minimalist_modern |
scene with_presenter |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
shadowמשטח |
select |
soft |
pure_white |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
product_surfaceמשטח |
select |
gradient |
studio_gradient |
|
||||||||||||||||||||||||||||||||||||||||||||||||||
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 | סוג | Default | Applies to styles | Options | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
food_backgroundרקע |
select |
marble |
top_view side_view action_image lifestyle hands_touch macro_texture |
|
||||||||||||||||||
food_styleסגנון |
select |
realistic |
top_view side_view action_image lifestyle hands_touch macro_texture |
|
||||||||||||||||||
food_surfaceכלי |
select |
keep_original_vessel |
top_view side_view action_image lifestyle hands_touch macro_texture |
|
||||||||||||||||||
food_colorצבע |
color |
#000000 |
top_view side_view action_image lifestyle hands_touch macro_texture |
Hex color, e.g. #FFFFFF
|
תכשיטים (jewelry)
| Field | סוג | Default | Applies to styles | Options | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jewelry_bg_colorרקע |
color |
#ffffff |
studio_packshot |
Hex color, e.g. #FFFFFF
|
||||||||||||||||||||||||||||||||||||
jewelry_composition_styleקומפוזיציה |
select |
standing |
studio_packshot |
|
||||||||||||||||||||||||||||||||||||
jewelry_shadow_styleצל / השתקפות |
select |
soft |
studio_packshot |
|
||||||||||||||||||||||||||||||||||||
jewelry_focus_pointנקודת מיקוד |
select |
center_gemstone |
macro_detail |
|
||||||||||||||||||||||||||||||||||||
jewelry_macro_backgroundרקע |
select |
out_of_focus_gradient |
macro_detail |
|
||||||||||||||||||||||||||||||||||||
jewelry_scene_elementsאלמנטי סצנה |
select |
luxe_fabric |
styled_still_life |
|
||||||||||||||||||||||||||||||||||||
jewelry_moodסגנון |
select |
light_and_airy |
styled_still_life |
|
||||||||||||||||||||||||||||||||||||
jewelry_genderמגדר |
select |
female |
on_model |
|
||||||||||||||||||||||||||||||||||||
jewelry_skin_toneגוון עור |
select |
light |
on_model |
|
||||||||||||||||||||||||||||||||||||
jewelry_body_partחלק גוף |
select |
auto |
on_model |
|
||||||||||||||||||||||||||||||||||||
jewelry_model_backgroundרקע |
select |
studio_background |
on_model |
|
||||||||||||||||||||||||||||||||||||
jewelry_layout_styleסגנון פריסה |
select |
dynamic_cascade |
collection_showcase |
|
||||||||||||||||||||||||||||||||||||
jewelry_background_surfaceמשטח רקע |
select |
reflective_mirror |
collection_showcase |
|
||||||||||||||||||||||||||||||||||||
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 |
|
||||||||||||||||||||||||||||||||||||
jewelry_expressionהבעת פנים |
select |
confident_direct |
lifestyle_jewelry |
|
||||||||||||||||||||||||||||||||||||
jewelry_shot_typeסוג צילום |
select |
focus_on_jewelry |
lifestyle_jewelry |
|
ביגוד (clothing)
| Field | סוג | Default | Applies to styles | Options | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fabric_typeסוג בד |
select |
auto |
editorial_close_up |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
garment_viewצד הבגד |
select |
front |
ecommerce_packshot artistic_flat_lay studio_model lifestyle_scene reference_clothing |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
garment_fitהתאמת בגד |
select |
true_to_size |
ecommerce_packshot artistic_flat_lay studio_model lifestyle_scene reference_clothing |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
display_styleסגנון תצוגה |
select |
flat_lay |
ecommerce_packshot |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
surface_typeמשטח |
select |
wood |
artistic_flat_lay |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
background_typeרקע |
select |
seamless_paper |
studio_model |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flatlay_viewזווית צפייה |
select |
top_down |
artistic_flat_lay |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lighting_styleתאורה |
select |
soft_studio |
artistic_flat_lay |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scene_locationמיקום סצנה |
select |
urban_city_street |
lifestyle_scene |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
time_of_dayשעת היום |
select |
auto |
lifestyle_scene |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
weather_conditionמזג אוויר |
select |
clear |
lifestyle_scene |
|
ריהוט (furniture)
| Field | סוג | Default | Applies to styles | Options | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
furniture_angleזווית צפייה |
select |
auto |
furniture_packshot |
|
||||||||||||||||||||||||||||||||||||||||
furniture_shadowמשטח |
select |
soft |
furniture_packshot |
|
||||||||||||||||||||||||||||||||||||||||
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 |
|
||||||||||||||||||||||||||||||||||||||||
furniture_design_styleסגנון עיצוב פנים |
select |
auto |
minimalist_space cozy_vignette furniture_with_model |
|
||||||||||||||||||||||||||||||||||||||||
furniture_materialהתמקדות בחומר |
select |
auto |
material_detail |
|
||||||||||||||||||||||||||||||||||||||||
furniture_interactionאינטראקציה |
select |
auto |
furniture_with_model |
|
||||||||||||||||||||||||||||||||||||||||
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 | סוג | Default | Applies to styles | Options | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cosmetics_angleזווית צפייה |
select |
auto |
cosmetics_packshot |
|
||||||||||||
cosmetics_shadowמשטח |
select |
soft |
cosmetics_packshot |
|
||||||||||||
cosmetics_bg_colorרקע |
color |
#F5F5F0 |
cosmetics_packshot |
Hex color, e.g. #FFFFFF
|
||||||||||||
cosmetics_elementאלמנט ראשי |
select |
travertine_stone |
earthy_minimalism |
|
||||||||||||
cosmetics_env_colorצבע אטמוספרה / משטח |
color |
#E8DCC4 |
earthy_minimalism |
Hex color, e.g. #FFFFFF
|
||||||||||||
cosmetics_formulaמרקם הפורמולה |
select |
thick_cream |
texture_swatch |
|
||||||||||||
cosmetics_swatch_colorצבע רקע / משטח |
color |
#F2EBE5 |
texture_swatch |
Hex color, e.g. #FFFFFF
|
||||||||||||
cosmetics_vanityסידור שידת איפור |
select |
marble_sink |
minimalist_vanity |
|
||||||||||||
cosmetics_interactionתנוחת דוגמנית |
select |
holding_near_face |
cosmetics_with_model |
|
||||||||||||
cosmetics_model_sceneסצנת רקע |
select |
clean_studio |
cosmetics_with_model |
|
||||||||||||
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 }
}
שגיאות
| Status | Code | Meaning |
|---|---|---|
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'];