AI Gateway

    Call Ertas models from your app through one OpenAI-compatible API. One base URL, one key, and per-token prices paid from your Ertas credits.

    Ask AI about this page
    On this page

    The Ertas AI Gateway lets your app, agent or script call models hosted by Ertas through the OpenAI API format. If your code already uses an OpenAI SDK, you change two settings, the base URL and the API key, and pick an Ertas model ID.

    SettingValue
    Base URLhttps://gateway.ertas.ai/v1
    API keyAn Ertas key starting etk_, created in Gateway → API Keys
    ModelAn Ertas model ID, such as ertas-ai/medertas-27b

    Every API call is priced per token at the model's price and paid from the same credit balance you use for training. US$1 buys 100 credits.

    What you can call today

    • MedErtas, our open-weight medical models: ertas-ai/medertas-31b and ertas-ai/medertas-27b. See Models and prices.
    • Chat Completions with streaming, tool calls and structured output. See Chat Completions.
    • The Responses API for stateless calls, with streaming and structured output. Stored responses are coming soon. See Responses API.

    Coming soon: deploying the models you train in Model Studio on the gateway, and bringing your own provider keys.

    How it fits with the rest of Ertas

    • Run models on the gateway, starting today.
    • Train your own models on your data in Model Studio.
    • Improve a model continually from your traffic on the adaptive endpoint, by invitation.