Parameters
Union[str, Image.Image, np.ndarray]
required
RGB image.
str
default:"'Describe this image.'"
Text prompt/question about the image.
int
default:"512"
Maximum number of tokens to generate.
float
default:"0.7"
Sampling temperature (0 = greedy).
float | None
Optional HTTP timeout.
Returns
Dict[str, Any]: Backend JSON response containing:- “output”: Generated text response string.
- “latency_ms”: Server-side processing time.
- “gpu_stats”: GPU memory usage statistics.
Example
Example Output
