Skip to main content
Generate text response from image using Qwen3-VL.

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

Uses Qwen3-VL-4B.

Example Output

Qwen VL input image and text response

Related topics

qwen_vl