CodingMantra LogoCodingMantra
GalleryProductsPortfolioServicesGamesPricingContact
  1. Home
  2. API Documentation
  3. Image Tools
  4. Jewelry Try-On

Jewelry Try-On API

Virtually try on jewelry on a model or generate professional jewelry photos.

GET
/api/image/jewelry-try-on-prompts

Retrieve a list of all available pre-defined scene instructions for the Jewelry Try-On endpoint.

Example Request

curl -X GET 'https://codingmantra.com/api/image/jewelry-try-on-prompts'

Example Response

{
  "data": [
    {
      "id": "jewelry-elegant-portrait",
      "title": "Elegant Portrait",
      "categoryId": "studio-portrait",
      "categoryTitle": "Studio & Portrait",
      "demoImageUrl": "https://..."
    },
    // ... more prompts
  ]
}

POST
/api/image/jewelry-try-on

Virtually try on jewelry on a model or generate a professional jewelry photo.

Request Body

FieldTypeDescription
jewelryImagesArray of ObjectsRequired. An array of jewelry image objects. Each object must have either a `dataUrl` or `url`. Supports optional `label` and `prompt`.
personImagestringOptional. A data URI or URL of a person to model the jewelry. If omitted, an AI model will be generated.
promptstringOptional. Additional instructions for the scene or model style.
logoImagestringOptional. A data URI or URL of a logo to place on the image.
logoPlacementstringOptional. Instructions for logo placement (e.g., 'top-left', 'center').
logoSizenumberOptional. A numeric value (0.1 to 0.5) representing the logo size as a percentage of the image.
referenceImagestringOptional. A data URI or URL of a reference image to guide the style.
aspectRatiostringOptional. Default: `'1:1'`.
outputResultstringOptional. `'base64'` (default) or `'url'`.

Example Request

curl -X POST 'https://codingmantra.com/api/image/jewelry-try-on' \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer YOUR_API_KEY' \
     -d '{
          "jewelryImages": [
            { "url": "https://example.com/necklace.png", "label": "gold necklace" }
          ],
          "personImage": "https://example.com/model.jpg",
          "prompt": "elegant evening wear style",
          "aspectRatio": "9:16"
        }'

Example Response

{
  "data": {
    "photoDataUri": "data:image/png;base64,..."
  }
}

On This Page

GET PromptsPOST Jewelry Try-OnFAQ

Frequently Asked Questions

CodingMantra LogoCodingMantra

Providing business solutions for small and medium-sized businesses and helping them to grow.

WhatsApp ChannelX / TwitterLinkedInInstagramFacebookGitHubYouTube

Company

  • About Us
  • Services
  • Products
  • Portfolio
  • Pricing
  • Blog
  • API Docs
  • Contact Us

Top Tools

  • All Tools
  • Image Gallery
  • Image Tools
  • Digital Marketing
  • Financial Tools
  • Games
  • SEO Tools

Legal

  • Privacy Policy
  • Terms & Conditions
  • Return Policy
  • Deals
  • Sitemap

© 2026 CodingMantra. All Rights Reserved.