Two request protocols
| Protocol | Use when | Base path |
|---|---|---|
| OpenAI Chat Completions | Most existing OpenAI-SDK integrations and coding tools | https://api.oneinfer.ai/v1/ula/chat/completions |
| Anthropic Messages | Claude Code and other Anthropic-SDK-based tools | https://api.oneinfer.ai/v1/ula/anthropic/v1/messages |
Minimal request
curl https://api.oneinfer.ai/v1/ula/chat/completions \
-H "Authorization: Bearer $ONEINFER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"z-ai/GLM-5.3-Flash","messages":[{"role":"user","content":"Reply with: connection verified","image_url":"https://example.com/sample.png"}]}'Multimodal input is image + text
GLM-5.3-Flash accepts image input as a base64 data URI or public URL alongside the text prompt β pass `image_url` in the message `content` array. Output is text only.
Ready to test the workflow?
Go deeper
- Full setup and troubleshooting for a specific key or tool β see the integration guides.
- Defining tools and validating structured output β see the function-calling guide.