Skip to content

Examples

Terminal window
# the loaded model
curl http://127.0.0.1:8000/v1/models
# non-streaming chat completion
curl http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"..."}],"max_tokens":256}'
# streaming (SSE)
curl -N http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"..."}],"stream":true}'
# a subagent's request: the agent lane, stated as a model suffix
curl http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"qwen3.8-27b@agent","messages":[{"role":"user","content":"..."}]}'
# the responses API
curl http://127.0.0.1:8000/v1/responses \
-H 'Content-Type: application/json' \
-d '{"input":"...","max_output_tokens":256}'

With --server-api-key, add -H "Authorization: Bearer $IGNIS_SERVER_API_KEY".