Zenlayer icon

Zenlayer

For advanced usage with an AI Gateway from Zenlayer

Actions3

Image → Analyze Image

AI-generated

Summary

Analyze an image by sending it to a specified Zenlayer AI model, receiving descriptive or insightful analysis in response.

Inputs

  • Model (required) — Select or specify the AI model to use for image analysis.
  • Request Mode (required) — Choose between 'Chat Completions' or 'Responses API' endpoints for the request.
  • Text Input — Provide a text prompt that guides the analysis, defaulting to "What's in this image?".
  • Input Type (required) — Specify whether the input images are provided as binary files or image URLs.
  • Input Data Field Name(s) — If using binary input, name the input field(s) containing the image file data (comma separated if multiple). Defaults to 'data'.
  • URL(s) — If using URL input, provide one or more image URLs separated by commas to analyze.
  • Options — Optional settings including 'Detail' level (auto, low, high) affecting response speed and detail, and 'Length of Description' (max tokens) to limit response length.

Output shape

a list with one item per input image analyzed, each containing a JSON object with the AI-generated analysis response from the Zenlayer model.

The output depends on the chosen request mode endpoint: chat completions or responses API. Input can be either binary image data extracted from the specified fields or image URLs. Multiple images can be analyzed if multiple input fields or URLs are provided. Response tokens limit and detail level affect the verbosity and depth of analysis returned.

Examples

Example 1: Analyze a single binary image file

Set Model to a suitable vision model, Request Mode to 'chat', Input Type to 'binary', and Input Data Field Name(s) to the binary field with image data.

Example 2: Analyze multiple images by URLs

Set Model appropriately, Request Mode to 'responses', Input Type to 'url', and provide comma-separated image URLs in the URL(s) field.

Links

Discussion