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 →
See It In Action
Send an image with a text prompt, get back polygon masks instantly.
Input Image
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
{
"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.
Get your API Key
Sign up → go to Settings → API Keys section. Your key is ready instantly with 5 free credits included.
Send a Request
POST to /api/v1/segment with your Base64 image and text prompts. Works with any HTTP client or SDK.
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.
| Package | Credits | Price | Per Call |
|---|---|---|---|
| Lite | 140 + 10 bonus | $9.99 | ~$0.07 |
| Standard | 500 + 50 bonus | $29.99 | ~$0.054 |
| ProPopular | 1,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.