Object Detection — Image Upload
curl -X POST http://<device-ip>:8000/api/models/yolo11/predict \
-F "file=@photo.jpg" \
-F "conf=0.5"
Object Detection — Live Video Feed
Open in browser: http://<device-ip>:8000/api/video_feed
LLM Chat — Quick Call
curl http://<device-ip>:8001/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "rkllm-model", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'
Vision Chat — Image + Question
curl -X POST http://<device-ip>:8002/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "rkllm-vision",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "What is in this image?"},
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}}
]
}],
"max_tokens": 256
}'
Python (OpenAI client) — works for LLM Chat and Vision Chat
import openai
client = openai.OpenAI(base_url="http://<device-ip>:8001/v1", api_key="dummy")
response = client.chat.completions.create(
model="rkllm-model",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=256
)
print(response.choices[0].message.content)