examples.demo_openai_video¶
Demo: OpenAI API - Video Analysis Shows how to use vllm-mlx with the OpenAI Python SDK for video understanding.
View the complete module source at #L1-L156.
API details¶
Each callable below includes its exact signature, type annotations, inputs, defaults, return contract, documented exceptions, implementation source, and parsed docstring sections when the source provides them.
examples.demo_openai_video
¶
Demo: OpenAI API - Video Analysis
Shows how to use vllm-mlx with the OpenAI Python SDK for video understanding.
Usage
-
Start the server with a VLM model ("video-model" is the name used in the OpenAI API): vllm-mlx serve --served-model-name video-model mlx-community/Qwen3-VL-4B-Instruct-3bit --port 8000
-
Run this script: python examples/demo_openai_video.py
examples.demo_openai_video.client
module-attribute
¶
examples.demo_openai_video.video_url
module-attribute
¶
video_url = 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4'
examples.demo_openai_video.response
module-attribute
¶
examples.demo_openai_video.action_video_url
module-attribute
¶
action_video_url = 'https://test-videos.co.uk/vids/jellyfish/mp4/h264/360/Jellyfish_360_10s_1MB.mp4'
Complete contract reference¶
Expand any definition for its exact inputs, annotations, defaults, return contract, directly raised exceptions, source-grounded behavior, and immutable line link. This section includes private and nested definitions that ordinary API generators omit.
This module does not declare classes or functions.
Complete symbol map¶
This map also includes private definitions and nested helpers. The signature column exposes every explicit input even when an internal helper has no dedicated parameter prose.
This module does not declare classes or functions.