Skip to main content

Quickstart

Prerequisites

  • You have an API key.
  • You have selected a model in the Model Library.

Make a request

Use the Chat Completions endpoint for a simple first call:
# Select a model in the Model Library: https://app.eigenai.com/model-library

curl -X POST https://app.eigenai.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Explain quantum computing in simple terms."}
    ],
    "temperature": 0.7,
    "max_tokens": 2000,
    "stream": false
  }'