← All docs

Getting started

Quickstart

Updated

1. Prepare an API key

Create a key in the dashboard and add credits. The plaintext key is shown only once. Set it as an environment variable in your terminal.

bash
export EVERYAIS_API_KEY="everyais_your_api_key"

2. Choose a model

bash
export EVERYAIS_MODEL="everyais/gemini-3-5-flash-lite"

To use another model, copy its ID from the model directory and replace the value. Use GET /v1/models to list models your key can call, and see model selection for capabilities and access policies. If your key restricts scopes, it needs models:read for listing and chat for generation.

3. Send your first request

curl

bash
curl https://api.everyais.com/v1/chat/completions \
  -H "Authorization: Bearer $EVERYAIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{
  "model": "$EVERYAIS_MODEL",
  "messages": [{"role": "user", "content": "Hello!"}]
}
EOF

Python

bash
pip install openai
python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.everyais.com/v1",
    api_key=os.environ["EVERYAIS_API_KEY"],
    timeout=240.0,
)
response = client.chat.completions.create(
    model=os.environ["EVERYAIS_MODEL"],
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Node.js

bash
npm install openai
javascript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.everyais.com/v1",
  apiKey: process.env.EVERYAIS_API_KEY,
  timeout: 240_000,
});
const response = await client.chat.completions.create({
  model: process.env.EVERYAIS_MODEL,
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Next steps

GoalDocumentation
Display tokens as they arriveStreaming
Connect Claude Code or the Anthropic SDKMessages · Integration
Generate text asynchronouslyResponses
Generate or edit imagesImage generation · Image editing
Generate videoVideo jobs
Handle a failed requestErrors and retries

SDK configuration references: Python SDK · Node.js SDK.

Contact support