Skip to content

AI Models & Assistant

Leaflow Console provides two complementary AI capabilities: Canopy for unified OpenAI-compatible model inference APIs, and AI Assistant for automated workflows, scheduled runs, and team chat integration.

  • Drop-In OpenAI Compatibility: Use https://llm.leaflow.cloud/v1 directly with existing OpenAI SDKs, agent frameworks, and CLI clients by updating only base_url and api_key.
  • Scoped Keys & Usage Visibility: Issue separate API keys per app or environment, rotate or revoke them anytime, and inspect request volume and costs per model and key.
  1. Open AI Models in the console, click Create API Key, and store the generated key safely.

  2. Pick an available model ID from the console model catalog.

  3. Send your first request using any OpenAI-compatible client:

    chat.sh
    curl https://llm.leaflow.cloud/v1/chat/completions \
    -H "Authorization: Bearer $LEAFLOW_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "<model-id>",
    "messages": [
    {"role": "user", "content": "Summarize 3 daily cloud server security practices."}
    ]
    }'

AI Assistant lets individuals and teams configure custom agents, knowledge files, form triggers, schedules, and multi-step workflows—and connect them to Feishu (Lark), Telegram, and WeChat.

Before executing sensitive actions or when additional context is needed, the assistant pauses cleanly and sends an interactive confirmation card to the console and connected chat apps, then resumes from the exact checkpoint once approved:

sequenceDiagram
  actor User as User (Console / Feishu / Telegram / WeChat)
  participant Assistant as Leaflow AI Assistant
  participant Tools as Authorized Tools & Workflows

  User->>Assistant: Start a task or trigger workflow
  Assistant->>Tools: Run read and analysis steps
  Assistant-->>User: Stream live step progress
  Assistant->>User: Pause before sensitive action and request approval
  User->>Assistant: Approve or reply with input
  Assistant->>Tools: Resume remaining steps from checkpoint
  Assistant-->>User: Deliver final result