Быстрый старт

Отправьте первый маршрутизированный запрос.

Создайте API-ключ в консоли, затем вызовите https://api.onemux.net/v1/chat/completions.

Чек-лист настройки

  1. Создать ключ
  2. Выбрать модель
  3. Отправить запрос
curl https://api.onemux.net/v1/chat/completions \
+  -H "Authorization: Bearer $ONEMUX_API_KEY" \
+  -H "Content-Type: application/json" \
+  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello OneMux"}]}'