ad-images
Ad Images
Enhance Image For Print
Enhance ad image for A3/A4 print with Gemini AI.
Uses Google Gemini's image generation to enhance the image quality to 4K resolution and add appropriate margins/spacing for the target print format. The enhanced image is optimized for high-quality printing.
Print Formats:
- a3_portrait: A3 size in portrait orientation (297x420mm, 2:3 ratio)
- a3_landscape: A3 size in landscape orientation (420x297mm, 3:2 ratio)
- a4_portrait: A4 size in portrait orientation (210x297mm, 2:3 ratio)
- a4_landscape: A4 size in landscape orientation (297x210mm, 3:2 ratio)
Output Formats:
- jpeg: High-quality JPEG (default, best for print)
- png: Lossless PNG
- pdf: PDF document ready for printing
Request:
- ad_image_id: Source image ID to enhance (use this OR image_url)
- image_url: Direct URL of the image to enhance (use this OR ad_image_id)
- print_format: Target print format
- output_format: Output file format (default: jpeg)
Returns:
- Source image details (if ad_image_id provided)
- Enhanced image URL ready for download
- Print metadata
Credits: Consumes 2 credits per print enhancement operation.
post/api/v1/ad-images/enhance-for-print
Request
- Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
- URL: https://api.trylapis.com/api/v1/ad-images/enhance-for-print
- Auth: HTTP bearer
Query parameters
client_user_idinteger nullable
Client user ID to view data for
Headers
x-lapis-dev-tokenstring nullable
x-assume-user-idinteger nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.