Annotations

Image annotations - Get question

This endpoint receives an image in base64 format and a string with a question.

Question example: "Is the image good for a blog post ... ?"

The response is in a JSON dictionary format as shown below:

{
"data": "string with the response to the input question"
}
POST
/api/getQuestion
AuthorizationBearer <token>

In: header

base64string
question?string

Response Body

Examples

curl -X POST "https://api.piktid.com/api/getQuestion" \
  -H "Content-Type: application/json" \
  -d '{
    "base64": "string"
  }'
{
  "data": "string"
}
{
  "code": 0,
  "message": "string",
  "description": "string"
}
{
  "code": 0,
  "message": "string",
  "description": "string"
}
{
  "code": 0,
  "message": "string",
  "description": "string"
}