← All docs

Getting started

Quickstart

Updated

1. Get an API key

Create a key and add credits. The key is shown only once, so save it as an environment variable.

bash
export EVERYAIS_API_KEY="everyais_your_api_key"

2. Choose a model

bash
export EVERYAIS_MODEL="everyais/gemini-3-8-flash"

Copy other IDs from the model directory. GET /v1/models lists the models your key can call; see model selection. A key with scopes needs models:read to list models and chat to generate text.

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
Show tokens as they arriveStreaming
Connect a coding toolClaude Code · Cursor · opencode
Use the Anthropic SDKMessages
Run long text generationAsync jobs
Generate or edit imagesImage generation · Image editing
Generate videoVideo jobs
Handle a failed requestErrors and retries

SDK references: Python SDK · Node.js SDK.

Contact support