Image Analyzer

Image Analyzer API

AI Tools

Free AI image analyzer. Get detailed analysis, descriptions, and insights from any image.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

10 requests per minute

Endpoints

2 endpoints available

Overview

Describes an image in detail with an AI vision model. You can add context or instructions to steer the description, and ask for a short, informal opinion on top. A second endpoint lets you ask follow-up questions about the image based on that description.

Analyze an image

Send multipart/form-data with one image in the file field, up to 20 MB. JPEG, PNG, WebP, GIF, AVIF and TIFF are read; other formats return 400. The image is sent to the model inline and is not stored.

  • context is shown to the model as instructions or background, up to 4,000 characters.
  • directorNote steers the focus or tone without being quoted back, up to 500 characters.
  • addOpinion=true adds a second pass that gives a playful opinion based on the description. It is returned separately in opinion, which is null otherwise.

Follow-up chat

POST /v1/tools/image-analyzer/chat answers one question about an image you already analyzed. It is stateless: send the analysis (and opinion, if you have one) each time, plus the prior turns in history. The chat model never sees the image, only that text, so it says so when the description does not cover a question.

  • Only the last 30 history turns are used, each cut to 2,000 characters. The analysis, opinion and context are each cut to 8,000 characters.
  • Each chat call counts as one request against the limits below.

Limits

10 requests per minute and 200 requests per day per API key. AI tools share these limits.

The site's 18+ description mode is not available through the API.

Endpoints

POST
https://opentools.ca/api/v1/tools/image-analyzer
Describe an image, with an optional opinion

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
file
file
Required
The image to analyze, 20 MB max.
context
string
OptionalBackground or instructions for the analysis, up to 4,000 characters.
directorNote
string
OptionalA short steer for focus or tone, up to 500 characters. Not quoted in the output.
addOpinion
string
Enum: true, false
OptionalAdd a playful opinion based on the description.Default: false

Response Example

{
  "success": true,
  "analysis": "The image shows a small wooden cabin beside a lake at sunset. The sky is orange fading to purple, and the water reflects the cabin and a line of pine trees...",
  "opinion": "Honestly, this looks like the place you go to turn your phone off for a week. The colours are doing a lot of work, in a good way."
}

Error Codes

400
Bad Request - Invalid option, no file, more than 1 file, or an image that could not be decoded
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key inactive or expired, or IP not allowed for this key
413
Payload Too Large - The image is over 20 MB
415
Unsupported Media Type - The file is not an image
429
Too Many Requests - Per-minute or daily limit reached
500
Internal Server Error
POST
https://opentools.ca/api/v1/tools/image-analyzer/chat
Ask a follow-up question about an analyzed image

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
message
string
Required
The new question or message, 1 to 2,000 characters.
context.analysis
string
Required
The "analysis" returned by POST /v1/tools/image-analyzer, up to 20,000 characters.
context.opinion
string
OptionalThe "opinion" returned with the analysis, if any. The chat keeps its tone.
context.userContext
string
OptionalThe context you sent with the analysis, if any.
history
array
OptionalPrior turns, oldest first: [{ "role": "user" | "assistant", "content": string }]. Up to 200 items; the last 30 are used.Default: []
directorNote
string
OptionalA steer for this one reply, up to 500 characters.

Response Example

{
  "success": true,
  "reply": "The description mentions pine trees along the far shore, but nothing about boats or a dock, so I cannot tell you that from here."
}

Error Codes

400
Bad Request - Invalid JSON, empty message, missing analysis, or a value over its limit
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key inactive or expired, or IP not allowed for this key
429
Too Many Requests - Per-minute or daily limit reached
500
Internal Server Error
502
Bad Gateway - The model returned an empty reply; try again

Code Examples

# Analyze an image
curl -X POST https://opentools.ca/api/v1/tools/image-analyzer \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "context=Focus on the architecture" \
  -F "addOpinion=true"

# Ask a follow-up question
curl -X POST https://opentools.ca/api/v1/tools/image-analyzer/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "What style is the roof?",
    "context": { "analysis": "The image shows a small wooden cabin..." },
    "history": []
  }'

Ready to get started?

Create an API key to start using the Image Analyzer API.

Rather use it in your browser? Open the Image Analyzer