ELUVIXSovereign AI Router

Multimodal Vision & ComfyUI Media Synthesis

Eluvix natively supports bidirectional multimodal workloads: routing structured visual understanding payloads (image_url) to Vision-Language Models (VLMs) and synthesizing sovereign local images, video clips, and 3D meshes via ComfyUI (:8188).


1. Multimodal Vision Input Payload Format

Incoming chat completion requests can interleave textual content and Base64 or URL-referenced images:

{
  "model": "auto",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Analyze this chart and summarize key trends."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/chart.png"
          }
        }
      ]
    }
  ]
}

Dynamic Capability Detection

When a request reaches the Switchyard router:

  1. The Complexity Estimator parses the payload structure.
  2. If any message contains a content block with "type": "image_url", the request is tagged with hasImages = true.
  3. The router queries its upstream registry and filters out any node lacking the vision capability tag.

Routing Benefits

  • Prevents Model Crashes: Standard text-only models (such as llama3:8b or mistral) crash or return validation errors when supplied with raw image URLs. By filtering upstreams, Eluvix prevents these avoidable failures.
  • Cost Optimization: Text-only tasks remain routed to compact, efficient text models, while multimodal tasks are directed to vision-capable engines such as gemini-4-carbon, gpt-4o, claude-3-7-sonnet, or local llava / Qwen2-VL instances.
  • Seamless Fallback: If a local vision model runs out of VRAM, the request cascades to the next configured multimodal provider without client interruption.

2. ComfyUI Local Media Synthesis (:8188)

Eluvix exposes an OpenAI-compatible POST /api/v1/images/generations endpoint backed by local ComfyUI workflow DAGs on port 8188:

curl -k -X POST https://127.0.0.1:3588/api/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $(jq -r .adminPassword ~/.config/eluvix/auth.json)" \
  -d '{
    "model": "flux-txt2img",
    "prompt": "Isometric brutalist AI datacenter glowing with emerald fiber optics",
    "size": "1024x1024",
    "response_format": "url"
  }'

Built-In ComfyUI Workflow Presets

| Preset ID | Target Modality | Description | | :--- | :--- | :--- | | flux-txt2img | Image Generation | FLUX.1-dev / Schnell DualCLIPLoader + FluxGuidance + KSampler pipeline | | sdxl-txt2img | Image Generation | SDXL 1024x1024 base checkpoint KSampler + VAEDecode workflow | | wan21-txt2vid | Video Generation | Wan 2.1 text-to-video latent frame synthesis | | hunyuan3d-mesh | 3D Mesh Asset | Hunyuan3D single-prompt 3D geometry generation | | custom-json | Custom API Graph | Custom exported ComfyUI API JSON using {{POSITIVE_PROMPT}}, {{NEGATIVE_PROMPT}}, {{SEED}}, {{WIDTH}}, and {{HEIGHT}} placeholders |

Modality-Aware Switchyard Isolation

When Switchyard mediaIntentRouting is enabled (default true):

  • Standard text, coding, tool-calling, and vision-input chat completions (model: "auto") automatically exclude synthesis-only ComfyUI upstreams so conversational prompts never hit a diffusion endpoint.
  • Generative media prompts on model: "auto" (e.g. "Generate an architectural render...", "Create a 5-second video...", "Generate a 3D GLB mesh...") automatically steer to matching ComfyUI workflow nodes.
  • Generated assets are served over TLS through /api/v1/images/view with SSRF/IMDS protection, eliminating browser mixed-content warnings, and support optional local LLM prompt enhancement and headless ArtCraft post-processing.

3. Headless Sovereign Audio (AudioVoiceNode: STT & TTS)

Eluvix provides drop-in OpenAI-compatible headless audio endpoints orchestrated via the Audio / Voice (audioVoiceNode) in the Eluvix Visual Node Routing Editor:

  • Speech-to-Text (POST /api/v1/audio/transcriptions): Accepts multipart audio uploads (file, model, language, response_format) and routes to local Speaches Faster-Whisper (:8005) or whisper.cpp (\$0.00 local cost) with optional cloud Whisper fallback and automatic PrivacyGuard transcript scrubbing.
  • Text-to-Speech (POST /api/v1/audio/speech): Accepts JSON { model, input, voice, response_format, speed }, scrubs input via PrivacyGuard, and streams synthesized audio/mpeg, audio/wav, or audio/opus audio from local Kokoro-FastAPI (:8880) or Piper TTS.
# Transcribe audio locally via Speaches Faster-Whisper (:8005)
curl -k -X POST https://127.0.0.1:3588/api/v1/audio/transcriptions \
  -H "Authorization: Bearer $(jq -r .adminPassword ~/.config/eluvix/auth.json)" \
  -F file=@meeting.wav \
  -F model=Systran/faster-whisper-large-v3

# Synthesize speech locally via Kokoro-FastAPI (:8880)
curl -k -X POST https://127.0.0.1:3588/api/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $(jq -r .adminPassword ~/.config/eluvix/auth.json)" \
  -d '{"model": "kokoro", "input": "Sovereign audio routing is online.", "voice": "af_heart"}' \
  -o speech.mp3