This document describes the image analysis driver plugins and how they integrate with the perception server.
Plugin type:
This driver is REST-backed and uses the OpenAI Responses API to analyze an image and return text.
The driver sends a request to https://api.openai.com/v1/responses with:
- an
input_textcontaining the user prompt - an
input_imagecontaining a base64-encoded data URL (for exampledata:image/png;base64,...)
The server passes both the image and the prompt to the driver.
The driver reads parameters under driver.image_analysis.OpenAIImageAnalysisDriver.*:
name(string): informational namemodel(string): model used for image analysis (current defaultgpt-5-mini)detail(string): image detail level (auto,low,high)test_file_path(string): image path used by the drivertest()functiontest_prompt(string): prompt used by the drivertest()function
REST settings (provided by RestBase):
driver.image_analysis.OpenAIImageAnalysisDriver.rest.uri(string): should behttps://api.openai.com/v1/responsesdriver.image_analysis.OpenAIImageAnalysisDriver.rest.method(string):POSTdriver.image_analysis.OpenAIImageAnalysisDriver.rest.ssl_verify(bool)driver.image_analysis.OpenAIImageAnalysisDriver.rest.auth_type(string):Bearer
Environment variables:
OPENAI_API_KEY: required for authorization
The driver returns a single string containing the model output text.
If the OpenAI response includes an error payload, the driver surfaces the error message as the returned string.