Serverless AI Image Keyword Extraction
AI powered image analysis service that extracts relevant keywords based on scenes, objects, and visual content. Perfect for automatic image tagging, content categorization, and enhancing searchability of visual content.
Endpoint
Extract relevant keywords from image content
POSThttps://api.xtartapp.com/image/keyword-extraction
*Authentication
You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.
Request body
Name | Type | Required | Max | Description |
---|---|---|---|---|
image | string | Yes | - | Filename of the optimized .ximage file previously uploaded to the platform. |
limit | integer | No | 10 | Maximum number of keywords to extract (defaults to 10). |
Response
Name | Type | Description |
---|---|---|
data | array of strings | Array of extracted keywords ordered by relevance |
metadata | object | Metadata about the keyword extraction process |
metadata.cost | number | The cost of the image keyword extraction request |
Errors
{
"error": "string",
"code": "string"
}
HTTP Status | Error Code | Message |
---|---|---|
400 | INVALID_PAYLOAD | Occurs when the payload is invalid. |
400 | INVALID_REQUEST | The request is invalid. |
400 | IMAGE_KEYWORD_EXTRACTION_ERROR | Could not extract keywords from the image | parsing error. |
400 | INVALID_IMAGE | The image was not found or is invalid. |
400 | HARM_CONTENT | The content is harmful and cannot be processed. |
400 | INSUFFICIENT_BALANCE | The user has insufficient balance. |
401 | UNAUTHORIZED | The token is invalid. |
429 | TOO_MANY_REQUESTS | The request limit has been reached. |