DEV Community

Sandeep Roy
Sandeep Roy

Posted on

How I Built an API to Detect Fake Gemstones Using AI

After 30 years in the jewelry trade, I've seen countless people get scammed buying synthetic stones sold as natural. So I built an API to solve this.

What GemLens Does

Send a gemstone image → get back:

  • Stone identification (ruby, sapphire, emerald, etc.)
  • Natural vs synthetic vs glass probability
  • Color, clarity, cut grading
  • Origin estimate
  • Market value range

Quick Example

curl -X POST "https://gemlens.p.rapidapi.com/analyze" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image": "data:image/jpeg;base64,..."}'
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "gemstone": { "type": "Ruby", "confidence": 94 },
  "authenticity": {
    "natural_probability": 92,
    "synthetic_probability": 5,
    "simulant_probability": 3
  },
  "origin": "Myanmar (Burma)",
  "market": { "estimated_retail_value": "$8,500-$12,000" }
}
Enter fullscreen mode Exit fullscreen mode

Who It's For

  • E-commerce platforms selling jewelry
  • Pawn shops needing quick verification
  • Insurance companies
  • Jewelry appraisers
  • Developers building marketplace apps

Try It

Free tier: 50 calls/month
https://rapidapi.com/sgroy10/api/gemlens

Would love feedback!

Top comments (1)

Collapse
 
dana_ermkov_dd738e41c6 profile image
Dana Čermáková

Mighty Hacker Recovery: Crypto Recovery Expert / Lost Money to an Online Scam? Get Professional Recovery Support

Lost Money to an Online Scam?

Don't lose hope. If you've been affected by cryptocurrency fraud, investment scams, or other online financial scams, Mighty Hacker Recovery offers digital investigation and recovery support to help review your case.

✔️ Case assessment

✔️ Blockchain tracing support (where applicable)

✔️ Confidential assistance

✔️ Professional guidance throughout the process

Every case is different, and no legitimate recovery service can guarantee that funds will be recovered. Be cautious of anyone demanding large upfront fees or promising 100% success.

Contact Mighty Hacker Recovery today to discuss your situation and learn about your available options.

Message Mighty Hackar Crypto Expert on WhatsApp. https: // wa . me / 13439473496 or Whats@pp 13439473496

https : / / mightyhackarrecovery . com

We support all cryptocurrencies, including (but not limited to):

Bitcoin (BTC)
Ethereum (ETH)
Litecoin (LTC)
Bitcoin Cash (BCH)
Ripple (XRP)
Cardano (ADA)
Solana (SOL)
Dogecoin (DOGE)
Polkadot (DOT)
Many more