API Documentation
Integrate Syncraft's AI features directly into your own applications.
API Credit Pricing
The Syncraft API uses a prepaid credit system. API Credits must be purchased in advance and will not expire.
| Package Name | Price (PHP) | API Credits Received |
|---|---|---|
| Starter | ₱116.00 | 200 |
| Pro | ₱290.00 | 500 |
| Studio | ₱580.00 | 1,000 |
Cost per Generation
The following are the service charges (in API Credits) for each feature. Credits are automatically deducted from your prepaid wallet upon a successful generation.
| Service Description | Cost (PHP) | Cost (API Credits) | Billing Basis |
|---|---|---|---|
| Garment Trace & Vectorization Modes: keep_artwork, extract_pattern | ₱23.20 | 40 | Per image |
| Logo & Emblems Trace Mode: logo_trace | ₱23.20 | 40 | Per image |
| Background Remover Mode: bg_remover | ₱2.90 | 5 | Per image |
Base URL
https://syncraftech.com/api/v1/generate
Authentication
Authenticate your requests by sending your API key in the `Authorization` header as a Bearer token.
Authorization: Bearer YOUR_API_KEY
Request Body Parameters
| Parameter | Type | Description |
|---|---|---|
| image_url | string | Required. The public URL of the image you want to process. |
| mode | string | Optional. Determines which AI pipeline to use. Options:keep_artwork (Default, 40 Credits)extract_pattern (40 Credits)logo_trace (40 Credits)bg_remover (5 Credits) |
Example Request (cURL)
curl -X POST https://syncraftech.com/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/jersey.png",
"mode": "extract_pattern"
}'Example Response
{
"success": true,
"company": "Your Company Name",
"mode": "extract_pattern",
"credits_charged": 40,
"image_url": "https://url-to-final-vector.svg",
"type": "image/svg+xml"
}