360 Secure SkillHub
360 安全技能中心

Prefy

该 Skill 是 Prefy AI 平台的 API 集成,支持 OpenAI 兼容的 Conductor 多模型路由、Tavily 网页搜索、FLUX 图像生成、VPS 服务器管理、Agent 对话以及基于 Vapi/ElevenLabs 的餐厅酒店电话预订。所有端点需 Bearer 认证,需自备 Prefy API 密钥或 Supabase JWT 令牌。

runrelay
runrelay
热度 60.52
最近更新 2026-05-18 12:12:12
分类:自动化依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:API 集成 / 图像生成 / DevOps / 日程安排 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add prefy
Metadata
name
prefy
description
Connect to Prefy AI platform — Conductor API (19 models, OpenAI-compatible), server management, web search, image generation, phone calls (AutoCall). Use when agent needs multi-model AI routing, dedicated server provisioning, web intelligence, or restaurant/hotel phone calls. Base URL https://prefy.com.

Prefy — AI Platform Skill

Quick Start

# Chat completion (OpenAI-compatible, streaming)
curl https://prefy.com/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PREFY_API_KEY" \
  -d '{"model":"conductor:fast","messages":[{"role":"user","content":"Hello"}],"stream":true}'

Authentication

All endpoints require Authorization: Bearer <key> header.

  • Conductor API: Use Prefy API key (starts with pc_)
  • Server/Agent APIs: Use Supabase JWT token

Conductor AI — Smart Model Router

POST https://prefy.com/api/v1/chat/completions

OpenAI-compatible. Drop-in replacement. Supports streaming.

Models

Model Best For Speed
conductor Auto-route to best model Auto
conductor:fast Speed priority ⚡
conductor:quality Quality priority Medium
conductor:creative Creative tasks Medium
conductor:private Privacy priority Varies
gemini-flash Quick tasks ⚡
gemini-pro General purpose Fast
gpt-4o Best all-round Fast
gpt-4o-mini Budget tasks ⚡
claude-sonnet Analysis, writing Fast
deepseek-v3 Code, math Fast
deepseek-r1 Chain-of-thought Medium
llama-70b Complex reasoning Medium
groq-llama Speed-critical ⚡
qwen-7b Multilingual Fast

Strategies

Append strategy to conductor model name:

  • :fast — Gemini Flash / Groq (cheapest, fastest)
  • :quality — GPT-4o / Claude (best quality)
  • :creative — High temperature, diverse outputs
  • :private — Routes through privacy-first providers

Web Search

POST https://prefy.com/api/v1/search

{"query": "latest AI news", "max_results": 5}

Returns Tavily search results with snippets.

Image Generation

POST https://prefy.com/api/v1/images/generate

{"prompt": "a sunset over mountains", "model": "flux-schnell"}

Returns base64 image. Uses Together AI FLUX Schnell (free tier).

Server Management

Provision and manage dedicated VPS servers.

  • POST /api/v1/servers/checkout — Create Stripe checkout for server plan
  • POST /api/v1/servers/command — Send command to server agent
  • GET /api/v1/servers/hetzner — List user's servers

Server Plans

Plan Price Specs
starter $9.99/mo 2 vCPU, 2GB RAM, 40GB SSD
plus $14.99/mo 4 vCPU, 8GB RAM, 80GB SSD
pro $29.99/mo 8 vCPU, 16GB RAM, 160GB SSD

Agent Commands

Send via POST /api/v1/servers/command:

{"serverId": "...", "command": "stats"}

Available: stats, ollama list/pull/run/rm, cron list/add/remove, bot connect/stop/status, shell <cmd>

Agent API

POST https://prefy.com/api/v1/agent

Intelligent agent with memory, web search, intent detection.

{"message": "Find flights from Dubai to London next week", "userId": "..."}

Auto-detects intent: chat, search, flights, hotels, call.

AutoCall (Phone Calls)

POST https://prefy.com/api/v1/autocall

AI phone calls to restaurants/hotels (Vapi + ElevenLabs).

{
  "phone": "+971...",
  "venue_name": "Restaurant Name",
  "task": "Book table for 2, Friday 8pm",
  "language": "en"
}

Events & Activities

GET https://prefy.com/api/v1/events?city=Dubai

Returns upcoming events and activities for a city.

Rate Limits

Tier Requests/day
Free 10
Starter ($4.99/mo) 100
Pro ($14.99/mo) 500
BYOK Unlimited

Docs

Full documentation: https://prefy.com/docs