EON

Getting started

Quickstart

Get a key and make your first request.

  1. 1Join the developer programSign in to EON, open your account menu, choose Developer mode, then Join for free.
  2. 2Register an appChoose Register a new app, give it a name, and copy its API key. Keys start with eon_sk_ and are shown once.
  3. 3Store it safelyPut the key in an environment variable named EON_API_KEY. Never put keys in client-side code.
  4. 4Send a requestUse any of the examples below.
curl https://www.eon-agent.com/api/v1/chat/completions \
  -H "Authorization: Bearer $EON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "eon",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Write a haiku about orbit." }
    ]
  }'

The response

{
  "id": "chatcmpl-8f2c1a",
  "object": "chat.completion",
  "created": 1794770000,
  "model": "eon",
  "choices": [
    {
      "index": 0,
      "message": { "role": "assistant", "content": "Silent blue orbit..." },
      "finish_reason": "stop"
    }
  ],
  "usage": { "prompt_tokens": 24, "completion_tokens": 17, "total_tokens": 41 }
}