Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

[Docs/Blog] Re-introduce OpenAI-compatible chat completions example (#801)

Harsh Vermac2176c3f940e
diff --git a/blog/cua-vlm-router.md b/blog/cua-vlm-router.md
index 3694e299c2..cead5b7803 100644
--- a/blog/cua-vlm-router.md
+++ b/blog/cua-vlm-router.md
@@ -121,6 +121,19 @@ curl -X POST https://inference.cua.ai/v1/messages \
}'
```
+### OpenAI-compatible Chat Completions
+
+```bash
+curl -X POST https://inference.cua.ai/v1/chat/completions \
+ -H "Authorization: Bearer ${CUA_API_KEY}" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "model": "microsoft/fara-7b",
+ "messages": [{"role": "user", "content": "Hello!"}],
+ "max_tokens": 100
+ }'
+```
+
## FAQs
<details>
diff --git a/docs/content/docs/cua/guide/fundamentals/cua-vlm-router.mdx b/docs/content/docs/cua/guide/fundamentals/cua-vlm-router.mdx
index f4b9724d33..66af3d769f 100644
--- a/docs/content/docs/cua/guide/fundamentals/cua-vlm-router.mdx
+++ b/docs/content/docs/cua/guide/fundamentals/cua-vlm-router.mdx
@@ -35,6 +35,8 @@ Get your API key at [cua.ai](https://cua.ai/signin).
| `cua/anthropic/claude-opus-4.5` | Most capable |
| `cua/google/gemini-3-flash-preview` | Fastest, cheapest |
| `cua/google/gemini-3-pro-preview` | Most powerful |
+| `cua/microsoft/fara-7b` | Good at browser use |
+| `cua/qwen/qwen3-vl-30b` | Open source & powerful |
## Benefits
@@ -57,7 +59,7 @@ async for result in agent.run(messages):
Use the router directly via HTTP for integrations outside Python:
-### Messages
+### Anthropic-compatible Messages
```bash
curl -X POST https://inference.cua.ai/v1/messages \
@@ -70,6 +72,19 @@ curl -X POST https://inference.cua.ai/v1/messages \
}'
```
+### OpenAI-compatible Chat Completions
+
+```bash
+curl -X POST https://inference.cua.ai/v1/chat/completions \
+ -H "Authorization: Bearer $CUA_API_KEY" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "model": "microsoft/fara-7b",
+ "messages": [{"role": "user", "content": "Hello!"}],
+ "max_tokens": 100
+ }'
+```
+
### Check Balance
```bash