Console
API/Getting Started/Quickstart

Quickstart

Make your first OpenAI-compatible AdaptiqAI call.

1. Create a workspace and API key

Open AdaptiqAI Console. Sign in or create your account, then open API access to generate a server-side key.

2. Add funds

Add funds to your balance in the Console. You pay per token, at a price per model: input, output and KV cache each have a price per million tokens. See the prices.

3. Install the OpenAI SDK

pip install openai

4. Set your environment

bash
export ADAPTIQ_API_KEY="ak-..."
export ADAPTIQ_BASE_URL="https://api.adaptiqai.com/v1"
Keep keys server-side
Never expose an API key in browser code or a public repository. Use environment variables or your secrets manager.

5. Make your first call

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ADAPTIQ_API_KEY"],
    base_url=os.environ["ADAPTIQ_BASE_URL"],
)

response = client.chat.completions.create(
    model="adaptiq-deepseek-v4.1-flash",
    messages=[
        {"role": "user", "content": "What makes an open-weights model different?"}
    ],
)

print(response.choices[0].message.content)
Use Native Memory
Calls made inside a workspace can be connected to conversation and user memory. Add knowledge and choose where it is enabled from the Console. Using an agent harness? Turn off its own compaction.
Was this page helpful?