DEVSAIO

Your first AI API call in 5 minutes

Create an account, make an API key and send your first request to Claude, GPT or Gemini with curl, Python or JavaScript.

DEVSAIO team · 2 min read
Share on X

You don't need a separate account with every AI lab to build with their models. With DEVSAIO you get one API key that works with Claude, GPT, Gemini, DeepSeek and more, through the same OpenAI-style endpoint. This guide takes you from zero to a working request.

1. Create an account and add funds

Create a free account, then open Billing and add a small amount. Billing is prepaid: every request is deducted from your balance, so you never get a surprise invoice. A few dollars is plenty for experimenting.

2. Make an API key

Open API Keys in your dashboard and click Create key. Give it a name you'll recognise later (for example laptop-testing) and, if you like, a monthly spending limit. Copy the key right away: for your security it is only shown once.

Tip: Treat the key like a password. Never paste it into front-end code, public repos or screenshots.

3. Send a request with curl

Every request goes to the same base URL:

text
https://devsaio.lol/v1
bash
curl https://devsaio.lol/v1/chat/completions \
  -H "Authorization: Bearer $DEVSAIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Explain what an API is in two sentences."}]
  }'

The answer is in choices[0].message.content. The response also includes a usage block that shows how many tokens you used.

4. The same thing in Python

bash
pip install openai
python
from openai import OpenAI

client = OpenAI(base_url="https://devsaio.lol/v1", api_key="YOUR_KEY")

reply = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Give me three names for a coffee shop."}],
)
print(reply.choices[0].message.content)

5. And in JavaScript (Node.js)

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

const client = new OpenAI({ baseURL: "https://devsaio.lol/v1", apiKey: process.env.DEVSAIO_API_KEY });
const reply = await client.chat.completions.create({
  model: "gpt-5.6-luna",
  messages: [{ role: "user", content: "Write a haiku about servers." }],
});
console.log(reply.choices[0].message.content);

Switching models is one word

Notice that the Python example used claude-sonnet-4-6 and the JavaScript one used gpt-5.6-luna. Nothing else changed. To try Gemini or DeepSeek, change the model string to one from the model list. That is the main benefit of a single gateway: you can compare models on your own prompts in minutes.

What next?

Try it with one API key

Claude, GPT, Gemini, DeepSeek, image and video models through one OpenAI- and Anthropic-compatible endpoint. Prepaid, pay only for what you use.

Keep reading