Campaign images
Generate durable campaign images with layout, style, visual constraints, brand context, and optional model-rendered text.
/image-generationsStrict text-free product image
include_text=false asks the image model for no labels, logos, numbers, signage, or pseudo-text.
Example response
/image-generationsOffer image with Arabic model-rendered text
The image model renders the phrase as part of the visual. Spelling is probabilistic, so review it before publishing. A 2K image costs 8 credits instead of 5.
For your own product and logo, upload each with its explicit reference or logo role, then send reference_storage_ids and a separate logo_storage_id. Generic images and Ad Library generation accept logo_mode: model uses the supplied mark as an image-model reference, overlay places it deterministically, and none omits it. With a logo, model is the default. Model rendering may alter the mark; overlay preserves the original.
Adapt an Ad Library reference
Search by brief, or copy an ad ID from Lahjty and inspect that exact ID. Search and detail require ad-library:read; preparation and uploads require ad-library:write; generation requires images:write. Suggestions reflect metadata relevance, not measured performance.
- Search with brief and filters, then choose an ID from the returned items. A copied ID can skip search.
- Read /ad-library/{id}. If preparation.status is ready, use contract.fields and reference_requirement directly. Otherwise disclose preparation.analysis_credits and obtain authorization before POST /prepare. An existing prepared contract costs zero; new analysis currently costs one credit.
- Upload required, user-authorized product references or a logo through /ad-library/uploads. Use the returned storage IDs from the same account; never substitute another account's ID.
- Fill template_fields using the actual field IDs from the contract and the user's facts. Generate only after approval of the image cost: 5 credits at 1K (the default) or 8 credits when resolution is 2K. Preserve the exact body and Idempotency-Key after a timeout; recover by request ID before retrying.
/ad-library?brief=Saudi%20coffee%20morning%20offer&locale=en&limit=5Find a fitting reference
Read-only catalog search; no credits charged.
/ad-library/REPLACE_WITH_AD_IDInspect the copied ad ID
Replace the placeholder with the exact copied ID.
/ad-library/REPLACE_WITH_AD_ID/preparePrepare only when needed
Only after checking preparation state and authorizing its cost.
/ad-library/uploadsUpload a user-owned product reference
Use an authorized image URL and retain the returned storage ID.
/ad-library/REPLACE_WITH_AD_ID/generationsGenerate from the selected contract
Replace placeholder field and storage IDs with the inspected contract and upload result. Omit reference_storage_ids only when references are optional. These are request examples, not executed results.
Controls that matter
typeselects campaign visual, product showcase, lifestyle, offer announcement, or brand awareness.visual_keywords/excluded_visualspreserve wanted concepts and explicitly remove unwanted elements.brand_profile_idadds a brand profile owned by the calling account without inventing a logo.