Skip to content

Public LLM APIs (на Arch Linux) — ключи + интеграция

✅ Получение API ключей

APIСайтБесплатный ключ
OpenRouterhttps://openrouter.ai✅ Да (регистрация)
Hugging Facehttps://huggingface.co/inference-api✅ Да (регистрация)
Coherehttps://platform.cohere.ai✅ Да (тестовый ключ)
Groqhttps://groq.com✅ да (регистрация)

📦 Установка Cherry-Studio на Arch

bash
yay -S cherry-studio-bin


🧾 Использование через терминал (примеры)


🔹 OpenRouter (GPT-3.5, GPT-4, LLaMA)

curl -H "Authorization: Bearer YOUR_API_KEY" https://openrouter.ai/api/v1/completion \
  -d '{
    "model": "gpt-3.5-turbo",
    "prompt": "Привет, как ты?"
  }'


🔹 Groq (qwen3-32b, undead, etc.)

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.groq.com/openai/v1/chat/completions \
  -d '{
    "model": "qwen/qwen3-32b",
    "messages": [{"role": "user", "content": "Привет, как ты?"}]
  }'

🔹 Undead + Groq (пример)

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.groq.com/openai/v1/chat/completions \
  -d '{
    "model": "undead",
    "messages": [{"role": "user", "content": "Привет, как ты?"}]
  }'


Проверяй, что модель поддерживается API (например, undead и qwen/qwen3-32b доступны на Groq).

Built with VitePress and ❤️