REST API · Production Ready

Segment Any Image With a Single API Call

POST an image + text prompt → get precise polygon masks. No ML setup. No model hosting. Just an HTTP request.

Not sure yet? Try the free online tool →

5 free credits on signup1 credit per call10 req/s rate limit

See It In Action

Send an image with a text prompt, get back polygon masks instantly.

Input Image

Sample dog for API demo

prompt: "dog"

API Request

curl -X POST https://api.sam3.ai/v1/segment \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "data:image/jpeg;base64,...",
    "prompts": ["dog"]
  }'

Output

Segmented dog with polygon mask overlay
dog · 97%
{
  "masks": [
    {
      "label": "dog",
      "confidence": 0.97,
      "polygon": [[295,95],[360,55],[460,38],[560,42],[660,68],[730,110],...]
    }
  ]
}

Integrate in Minutes

Three steps from zero to working integration.

01

Get your API Key

Sign up → go to Settings → API Keys section. Your key is ready instantly with 5 free credits included.

02

Send a Request

POST to /api/v1/segment with your Base64 image and text prompts. Works with any HTTP client or SDK.

03

Use the Results

Parse the JSON response with polygon masks, labels, and confidence scores. Render masks directly in your app.

Simple, usage-based pricing

Buy credits once, use them at your own pace. No subscriptions required.

PackageCreditsPricePer Call
Lite140 + 10 bonus$9.99~$0.07
Standard500 + 50 bonus$29.99~$0.054
ProPopular1,450 + 150 bonus$79.99~$0.049

Each API call consumes 1 credit. View all pricing →

Frequently Asked Questions

Start building today — free to try

Get 5 free credits on signup. No credit card required.