← All docs

Getting started

Quickstart

Send your first request with curl, Python, or Node.js.

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
curl https://api.everyais.com/v1/models \
  -H "Authorization: Bearer $EVERYAIS_API_KEY"

From data, choose a model with category: "LLM" and available: true, and copy its exact id. If your key restricts scopes, it needs models:read for listing and chat for generation.

bash
export EVERYAIS_MODEL="model_ID_copied_from_the_catalog"

Model IDs and capabilities can change. See model selection for capabilities and access policies.

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 "{
    \"model\": \"$EVERYAIS_MODEL\",
    \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}],
    \"max_tokens\": 1024
  }"

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!"}],
    max_tokens=1024,
)
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!" }],
  max_tokens: 1024,
});
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.