Body
This endpoint will generate simple description of an image.This is the image url of the image you want to generate description for.
The description of the business that the image is associated with.
Response
A brief description of the image.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST \
<BASE_URL>/simple-image-description \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{
"image_url": "https://example-image-url.com",
"business_description": "A restaurant serving traditional cuisine"
}'
$url = '<BASE_URL>/simple-image-description';
$data = array(
'image_url' => 'https://example-image-url.com',
'business_description' => 'A restaurant serving traditional cuisine'
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY'
));
$response = curl_exec($ch);
curl_close($ch);
import requests
url = '<BASE_URL>/simple-image-description'
headers = {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
}
data = {
'image_url': 'https://example-image-url.com',
'business_description': 'A restaurant serving traditional cuisine'
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const url = '<BASE_URL>/simple-image-description';
const headers = {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
};
const data = {
image_url: 'https://example-image-url.com',
business_description: 'A restaurant serving traditional cuisine'
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
{
"description": "This is the description of the image."
}
curl -X POST \
<BASE_URL>/simple-image-description \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{
"image_url": "https://example-image-url.com",
"business_description": "A restaurant serving traditional cuisine"
}'
$url = '<BASE_URL>/simple-image-description';
$data = array(
'image_url' => 'https://example-image-url.com',
'business_description' => 'A restaurant serving traditional cuisine'
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY'
));
$response = curl_exec($ch);
curl_close($ch);
import requests
url = '<BASE_URL>/simple-image-description'
headers = {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
}
data = {
'image_url': 'https://example-image-url.com',
'business_description': 'A restaurant serving traditional cuisine'
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const url = '<BASE_URL>/simple-image-description';
const headers = {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
};
const data = {
image_url: 'https://example-image-url.com',
business_description: 'A restaurant serving traditional cuisine'
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
{
"description": "This is the description of the image."
}