Skip to content
Beta

Quickstart

Open the Model Workspace, call the Gateway (Preview, invited access), and confirm fail-closed auth behavior.

On this page
  1. 1. Open the Model Workspace
  2. 2. Create a Gateway API key
  3. 3. Discover models (no key)
  4. 4. Route a chat completion
  5. 5. Response fields
  6. Next steps

This quickstart reaches a first success on the Model Workspace and Gateway, which are in Preview: usable by invited or gated users, with no public sign-up on this site. It does not claim general availability or payment collection.

1. Open the Model Workspace

Sign in and open the Model Workspace (canonical console routes include / and /console). Select a project — project scope is the authorization boundary.

2. Create a Gateway API key

Create a project-scoped key in Gateway API Keys. Treat it like a secret.

3. Discover models (no key)

curl -sS https://your-project.ethen.dev/api/gateway/v1/models

4. Route a chat completion

curl -X POST https://your-project.ethen.dev/api/gateway/v1/chat/completions \
  -H "Authorization: Bearer $ETHEN_GATEWAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "Say hello in one sentence."}]
  }'

Use a model that has a current price record and certification path when billing accuracy matters. Without a key, the same request must fail closed with JSON 401/403.

5. Response fields

FieldMeaning
idCompletion id
modelModel that served the request
choicesAssistant message(s)
usageToken counts
ethenTrace / provider metadata

Next steps

Last verified 2026-07-27 · Owner docs-platform