ai-gateway-vivid-fish

Route multimodal AI requests across OpenAI/Anthropic/Ollama-compatible HTTP endpoints with async media jobs.

Updated Mar 22, 2018
One-click install
npx skills add https://github.com/tnunamak/dotfiles --skill ai-gateway-vivid-fish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-gateway-vivid-fish
Source: https://github.com/tnunamak/dotfiles/tree/main/ai/skills/local/openai-vivid-fish
Command: npx skills add https://github.com/tnunamak/dotfiles --skill ai-gateway-vivid-fish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of needing multiple AI providers and local backends by giving you a single OpenAI/Anthropic/Ollama-compatible endpoint that can route chat, vision, embeddings, TTS/STT, image generation/editing, audio/video jobs, and model/voice discovery.

Core Features & Use Cases

  • Unified gateway routing: Use one base URL to access local Tabby/Kobold LLMs, Voxtral TTS, Parakeet STT, Nomic embeddings, and ComfyUI for image generation and edits.
  • OpenAI- and Anthropic-shaped APIs: Call /openai/v1/*, /anthropic/v1/messages, and /ollama/api/* with consistent request/response behavior and discovery endpoints.
  • Durable media jobs for long tasks: Submit async image/audio/video jobs and poll for completion to fetch signed output handles without keeping long HTTP requests open.
  • Vision-aware chat completions: Automatically routes image-bearing chat requests to a vision-capable backend or rejects with a clear error when vision support is unavailable.
  • Secure app/admin key separation: Use AI_GATEWAY_API_KEY (opk_...) for runtime calls and reserve oak_... admin keys for admin/control-plane routes.

Quick Start

Ask the AI to call the Vivid Fish gateway using your app bearer token to list available models, then run a chat completion on model: "default".

Frequently Asked Questions about ai-gateway-vivid-fish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route OpenAI-compatible chat completions across multiple local AI backends?

You can route OpenAI-compatible chat completions across local backends by using a unified HTTP gateway that exposes the /openai/v1/* endpoint, automatically directing requests to local LLMs like Tabby or Kobold. It provides a consistent API surface for all routed calls.

How does vision routing work for image-bearing chat requests?

Vision routing works by automatically detecting image-bearing chat requests and directing them to a vision-capable backend. If no vision support is available, the gateway rejects the request with a clear error instead of failing silently.

What is the best way to handle long-running image generation and audio video media jobs?

The best way to handle long-running media jobs is to submit them asynchronously and poll for completion. This durable job approach fetches signed output handles without keeping long HTTP requests open, preventing timeouts during image generation or audio processing.

Can I use this AI gateway with Ollama and Anthropic APIs alongside OpenAI endpoints?

Yes, you can use this gateway with Ollama and Anthropic APIs. It provides Anthropic-shaped APIs at /anthropic/v1/messages and Ollama-shaped APIs at /ollama/api/*, ensuring consistent request and response behavior across all supported providers.

Do I need a specific API key to authenticate runtime calls to the AI gateway?

Yes, you need an authenticated runtime bearer key to make calls. You must use the AI_GATEWAY_API_KEY with an opk_ prefix for runtime operations, while reserving oak_ prefixed admin keys strictly for control-plane and admin routes.

How do I discover available models and voices for TTS and STT tasks?

You can discover available models and voices by calling the gateway's health and discovery routes using your app bearer token. This allows you to identify supported providers for TTS, STT, embeddings, and image generation before executing tasks.