📚 Documentation
Getting Started
Quick start guide
Authentication
API key auth
Endpoints
All API endpoints
Code Examples
Code samples
🚀 Getting Started
- Create a free account
- Get your API key from Dashboard → API Keys
- Make your first API call (see examples below)
🔐 Authentication
Include your API key in the Authorization header:
Authorization: Bearer meb_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
🔌 Endpoints
| Endpoint | Purpose | Credits |
|---|---|---|
POST /api/v1/describe | Generate product descriptions | 2 |
POST /api/v1/transcribe | Voice to text | 5 |
POST /api/v1/classify | Image classification | 1 |
POST /api/v1/removebg | Background removal | 3 |
POST /api/v1/translate | Text translation | 1 |
💻 Examples
cURL
curl -X POST https://ai.igulfmart.com/api/v1/describe \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_name": "Apple Juice 1L"}'
PHP
$ch = curl_init('https://ai.igulfmart.com/api/v1/describe');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(['product_name' => 'Apple Juice 1L']),
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
],
CURLOPT_RETURNTRANSFER => true
]);
$response = json_decode(curl_exec($ch), true);
echo $response['data']['description'];