Skip to content

Providers and models

Last updated: 2026-11-27T14:16:11-03:00 (UTC-3)

Switching providers, or using several at once, shouldn’t require changing your apps’ code. In m7gtw, apps call an alias (chat-default, summary, embeddings), and the operator decides which provider and model serve it behind the scenes. For the OpenAI format, the response comes out the same no matter where it came from.

Feature What it does Flag Learn more
Provider presets Ready-made connections for OpenAI, Anthropic, Gemini, Vertex AI, Bedrock, Azure, Mistral, Groq, Cohere, DeepSeek, xAI, OpenRouter, Together, Fireworks and dozens of others, created in Providers → Add provider provider_management Providers
Chat Completions translation A chat alias can point to Anthropic, Gemini or Vertex, Bedrock, Cohere, SageMaker or OCI, or to the OpenAI Responses API; the adapter translates the request and the response (per protocol) Capabilities
Any route to any provider Messages, Responses and GenerateContent clients reach OpenAI, Anthropic, Gemini, Cohere and Bedrock models through one canonical format, with what cannot cross refused or announced anthropic_messages, openai_responses, gemini_generate_content Protocol translation
Native APIs Anthropic Messages (/v1/messages), Gemini GenerateContent and OpenAI Responses in their original format, for SDKs that expect it, such as Claude Code anthropic_messages, gemini_generate_content, openai_responses Capabilities
Media Image, speech, transcription and video, with adapters for ElevenLabs, Deepgram, Stability, Replicate, Fal, Black Forest Labs and Runway image_generation, audio_speech, audio_transcriptions, video_generation Capabilities
Speech Clips streamed as they arrive, a cut clip told to the client and recorded as a failure, whole clips only per alias, voice discovery, and Amazon Polly, Azure AI Speech and Gemini text to speech audio_speech; speech_buffer, speech_voices, speech_polly, speech_azure, speech_gemini (off by default) Speech
Cloud identity Bedrock and SageMaker with an AWS profile, Vertex with Google ADC, OCI with an API key; the credential stays where it is. Bedrock can use a VPC endpoint or proxy declared in the YAML (per provider) Providers
Local inference Model servers you host as pools of replicas: llama.cpp with Metal, MLX and Ollama on a Mac, vLLM on NVIDIA through Docker or Kubernetes, or any of them on the CPU. The gateway health-checks each replica, routes by replica load, and can start, stop and restart them; each GPU capability has its own flag local_inference, local_inference_gpu, local_inference_metal, local_inference_nvidia, local_inference_mig Local inference
Model discovery Lists a connection’s models and prepares disabled aliases for review; wildcard aliases provider_model_discovery, catalog_onboarding Providers
Model aliases Another client name for a canonical model (alias_of), with its targets, policies and access; granting the canonical model grants the alias, not the reverse model_aliases Model aliases
Moving aliases A name such as claude-sonnet-latest that serves the newest declared version of a model family on one provider (follows), recording the resolved model on usage and reporting every change model_follows Moving aliases
Codex model picker The Codex CLI’s /model picker lists the Responses aliases the key may call, in the CLI’s own catalog shape codex_model_catalog Providers
Model catalog Public metadata (context, parameters, price) from OpenRouter, DeepInfra, the community cost map and models.dev external_model_catalog Automatic pricing
Account model discovery Lists the models your OpenAI, Anthropic, Gemini, Groq and xAI accounts can use, with the configured provider credentials; requires external_model_catalog authenticated_provider_catalog Automatic pricing
Public model research Original licensed offers, same-offer filters, provider/selected/workload comparison, attributed coding/value and source lifecycle/history/RSS; no inference grant model_registry and independently cataloged research flags Research registry
Public model Hub Explicit safe alias publication, anonymous metadata only and separate audited unpublish action; no inference authorization public_model_hub Model registry
Public hub listings Opt-in listing of published MCP servers, A2A agents and skills (published registry revision only) next to models; allowlisted fields, no URLs, credentials or grants public_hub_mcp_servers, public_hub_agents, public_hub_skills Public hub
Connection test A real call to a model from the console, before releasing the alias (console, admin) Console
Decisions OpenAI Decisions and System One (TypeSafe, Cloudflare, vLLM Semantic Router) with explicit translation openai_decisions, systemone_decisions Decisions
providers:
- {id: openai, protocol: openai, base_url: https://api.openai.com/v1, api_key_env: OPENAI_API_KEY}
- {id: anthropic, protocol: anthropic, base_url: https://api.anthropic.com/v1, api_version: "2023-06-01", api_key_env: ANTHROPIC_API_KEY}
models:
- id: chat-default
targets:
- {provider: openai, model: gpt-4o-mini}
- {provider: anthropic, model: claude-haiku-4-5}

The app calls chat-default. If OpenAI fails before responding, the gateway tries Anthropic, and the app receives the response in the same format. Details in routing and resilience.

m7gtwcontact@m7gtw.com