Skip to main content

Developer Console quickstart

Enterprise Tier

Ten minutes from sign-in to a first routed AI request. By the end: an API key, a proxy endpoint URL, a working request in at least one language, and a verified entry in Request Logs.


Before starting​

This quickstart starts after an administrator finishes Management plane onboarding and brings developers in. Once project access is in place, developers continue in the Developer Console, at the URL an administrator shares, for example https://router.<tenant>.tetrate.ai.

info

The screenshots in this guide use the example tenant name acme. The URL in a production environment resembles router.<custom-name>.tetrate.ai and differs between production and non-production deployments.

Quickstart, step by step​

  1. Where: Developer ConsoleWho: Developer

    Sign in with SSO​

    1. Go to the Developer Console URL (for example https://router.acme.tetrate.ai).

    2. Click Sign In with Corporate SSO, then enter the credentials the organization's identity provider asks for (commonly a username and password).

    3. The Home page opens, showing today's token usage, quick actions, and an overview of recent activity for the selected project.

    note

    A failed sign-in with sso_error=UNAUTHORIZED_EMAIL_DOMAIN in the address bar means the email domain is not on the organization's allowed list. An administrator asks Tetrate Support to add the domain.

    Details: sign-in screenshot

    Sign in page

    Done when: the Developer Console Home page opens.

  2. Where: Developer ConsoleWho: Developer

    Create an API key​

    API keys authenticate an application's requests to the gateway. Each key can be assigned its own fallback and traffic-splitting policies and rate limits. This quickstart creates a basic key with default settings.

    1. In the sidebar, open Settings → API Keys.

    2. Click Add API Key.

    3. Leave Key type on Inference Key and enter a name that identifies the application or workload the key serves (for example my-agent-router-key). Keys are identified by name in logs and usage reports.

    4. Click Create key.

    5. Copy the generated key immediately. This is the only time the key value is displayed. The dialog also shows the Base URL used in Step 3.

    Do not use an Admin Console organization/API key for inference traffic.

    caution

    API keys grant the bearer the ability to route requests through the gateway and consume AI quota. Store the key securely (a secrets manager or environment variable); do not commit it to source control or include it in logs or error messages.

    Details: projects without a data plane
    note

    An inference key can be created only in a project that a data plane serves. In a project with none, the API Keys page shows Base URL is not configured yet and key creation is refused; see "No data plane serves this project yet".

    Done when: the key is created and stored securely.

  3. Where: Developer ConsoleWho: Developer

    Find the proxy endpoint​

    The proxy endpoint URL is shown as Base URL at the top of the API Keys page, and in the dialog that confirms a new key. It typically looks like:

    https://proxy.acme.tetrate.ai/v1

    On Fully Managed, the Base URL shown alongside the key is the address of the managed data plane serving the project, already set, with nothing to configure.

    Details: what the gateway does, multiple endpoints, and API paths

    An application calls this address instead of calling AI providers directly. When a request arrives at the proxy, the gateway:

    1. Authenticates the request using the API key.
    2. Applies the key's own fallback and traffic-splitting policies.
    3. Translates the request format if routing to a different provider (for example OpenAI format to an Anthropic backend).
    4. Returns the normalized response, including error normalization if the upstream provider returns an error.

    On Agent Router Enterprise, a project can be served from more than one address. The Console lists every endpoint the project is served from, and one key works on all of them. The API Keys page prints one of them as the Base URL: the address a project owner starred, or the project endpoint URL an administrator set. Where the Console shows no proxy endpoint, no code samples, and a notice that nothing is callable yet, no data plane serves the project. A platform administrator has to label a data plane with the project before any request can succeed.

    Append the appropriate path for the intended API format:

    FormatPathDescription
    OpenAI Chat Completions/v1/chat/completionsMost widely supported format; compatible with all OpenAI-compatible SDKs and agent frameworks
    OpenAI Responses/v1/responsesNewer OpenAI Responses API with a simplified interface
    Anthropic Messages/v1/messagesAnthropic native format for Claude models

    For detailed examples of each format including streaming, see Gateway APIs.

    Done when: the Base URL is copied.

  4. Where: Developer ConsoleWho: Developer

    Make the first request​

    Replace YOUR_API_KEY with the key created in Step 2, and MODEL_ID with a model the key can call. List those models first; each entry's id is a valid MODEL_ID. See Models API.

    curl https://proxy.acme.tetrate.ai/v1/models \
    -H "Authorization: Bearer YOUR_API_KEY"

    Using curl​

    curl https://proxy.acme.tetrate.ai/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "Hello, world!"}]
    }'
    Details: model 404s, Python, streaming, and the Playground

    The only difference between calling the gateway and calling a provider directly is the base_url (or the curl URL). All other parameters, response formats, and SDK behaviors are identical.

    Asking for a model the project has not been granted returns 404, even if an administrator enabled that model organization-wide. GET /v1/models lists what the key can actually call, so check there rather than against the organization catalog. See Create a project and grant models.

    Using Python​

    from openai import OpenAI

    client = OpenAI(
    base_url="https://proxy.acme.tetrate.ai/v1",
    api_key="YOUR_API_KEY"
    )

    response = client.chat.completions.create(
    model="MODEL_ID",
    messages=[{"role": "user", "content": "Hello, world!"}]
    )

    print(response.choices[0].message.content)

    Streaming with curl​

    curl https://proxy.acme.tetrate.ai/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "Hello, world!"}],
    "stream": true
    }'

    Streaming with Python​

    from openai import OpenAI

    client = OpenAI(
    base_url="https://proxy.acme.tetrate.ai/v1",
    api_key="YOUR_API_KEY"
    )

    stream = client.chat.completions.create(
    model="MODEL_ID",
    messages=[{"role": "user", "content": "Hello, world!"}],
    stream=True
    )

    for chunk in stream:
    content = chunk.choices[0].delta.content
    if content:
    print(content, end="", flush=True)

    Using the Playground​

    The Playground tests model routing interactively without code, for evaluating models or verifying routing behavior before integrating into an application.

    1. In the sidebar, go to Build → Playground.
    2. Select the API key created in Step 2 from the key picker at the top of the page. The Playground sends its requests with that key.
    3. Keep the Chat tab and select a model. The picker offers the models the selected key can reach, which can be fewer than the administrator enabled for the organization.
    4. Type a message and send it.
    5. View the response alongside token usage, latency, and the upstream provider that served the request.

    Done when: a completion comes back.

  5. Where: Developer ConsoleWho: Developer

    Check the request logs​

    Every request the gateway processes is recorded in Request Logs. This is the primary tool for debugging, auditing, and analyzing cost.

    1. Go to Monitoring → Request Logs.
    2. The request appears with its timestamp, request ID, API key, endpoint, model and provider, token counts, cost, and status.
    3. Click any row to view its details, including which provider was selected and whether any fallback attempts were made. Prompts and completions are included only when an administrator opens System → Settings in the Admin Console, then the Request logs tab, and sets it to Full; with Metadata only the entry carries the request's metadata without its content, and with Off no request log data reaches the management plane.

    Request Logs also display the x-request-id correlation header that the gateway attaches to every response. Use this ID to locate the corresponding span in the OpenTelemetry tracing backend. See Gateway behavior for details on correlation IDs and the full debugging workflow.

    Done when: the request appears under Monitoring → Request Logs.

  6. Where: Developer ConsoleWho: Developer

    View usage analytics​

    Usage analytics aggregates metrics across all requests. Use it to track consumption trends, compare model costs over time, and understand traffic distribution across API keys.

    1. Go to Monitoring → Usage.
    2. Select a time range (for example Last 24 hours).
    3. View breakdowns by model and API key, including total tokens consumed, estimated cost, and request volume.

    Done when: the breakdowns by model and API key are visible.


Evaluation checkpoint​

  • Signed in to the Developer Console
  • Created an API key and stored it securely
  • Located the proxy endpoint URL (the Base URL on the API Keys page), or the list of endpoints serving the project
  • Made a successful request via curl, Python, or the Playground
  • Confirmed the request appears in Request Logs with provider, latency, and token details
  • Reviewed usage analytics for the time period