Switch from another gateway

    Move an app from OpenRouter, LiteLLM, Vercel AI Gateway, Portkey or another LLM gateway to the Ertas AI Gateway, with a prompt for your coding agent.

    Ask AI about this page
    On this page

    If your app already calls models through an OpenAI-compatible gateway, moving an API call to Ertas changes three things: the base URL, the key and the model ID.

    ChangeFromTo
    Base URLYour current gateway's URLhttps://gateway.ertas.ai/v1
    KeyYour current gateway keyERTAS_API_KEY
    ModelYour current model nameertas-ai/medertas-27b or ertas-ai/medertas-31b

    What to check before you switch

    Coming fromCheck
    OpenRouterMap each model name to an Ertas model ID rather than assuming the same names exist
    LiteLLMModel aliases, fallbacks and proxy-only settings in your config
    Vercel AI GatewayUse the AI SDK's OpenAI-compatible provider for Ertas instead of gateway-specific methods
    PortkeyRemove x-portkey-* headers and virtual keys from the Ertas client only
    HeliconeRemove Helicone proxy URLs and headers from the Ertas client only
    Cloudflare AI GatewayProvider-specific paths, gateway headers and caching settings
    Kong AI GatewayRoutes, plugins and policies that need an equivalent before traffic moves
    OthersGateway-specific features your app depends on

    Keep the old route in place until the new one works on real traffic, and move one feature at a time.

    Migration prompt

    Prompt for your coding agent
    Help me move one model call in this project from <current gateway> to the Ertas AI Gateway. Find where the OpenAI-compatible client is created for that call. Use https://gateway.ertas.ai/v1 as the base URL and ERTAS_API_KEY from my environment as the key. Use the model id ertas-ai/medertas-27b. Check for gateway-specific headers, model aliases, fallbacks and caching settings, and tell me which ones have no equivalent. Preserve streaming, tool calling, retries and app behaviour. Show a minimal diff and a rollback plan, never copy credentials into source or chat, and ask before sending a paid test request. Keep the old route available until I confirm the new one works.