Call it from your code
from openai import OpenAI
client = OpenAI(base_url="https://devsaio.lol/v1", api_key="dsk_...")
r = client.chat.completions.create(
model="doubao-seed-2-1-turbo-260628",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://devsaio.lol/v1", apiKey: process.env.DEVSAIO_API_KEY });
const r = await client.chat.completions.create({
model: "doubao-seed-2-1-turbo-260628",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);curl https://devsaio.lol/v1/chat/completions \
-H "Authorization: Bearer $DEVSAIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"doubao-seed-2-1-turbo-260628","messages":[{"role":"user","content":"Hello!"}]}'Works with any OpenAI-compatible SDK or tool. Setup guides for Claude Code, Codex and Cursor
What it costs in practice
- A short chat message
- ≈ $0.0015 (1K tokens in, 500 out)
- Summarise a long document
- ≈ $0.02 (50K in, 1K out)
- A coding-agent session
- ≈ $0.22 (400K in, 20K out)
Estimates from the list price above. You are charged the exact tokens each call reports. Failed calls are free.
More from ByteDance
All ByteDance models →doubao-seed-2-1-pro-260628ByteDance · Chat & text
Input / 1M$0.8715Output / 1M$4.3785
doubao-seedream-5-0-pro-260628ByteDance · Image
Price$0.0473 / image
seedance-2.0ByteDance · Video
Price$0.1504 / second
seedance-2.0-fastByteDance · Video
Price$0.127 / second
New seedance-2.0-fast-intlByteDance · Video
Price$5.88 / second
New seedance-2.0-intlByteDance · Video
Price$7.35 / second
Compare with other labs
Full price list →
Input / 1M$10.50Output / 1M$52.50
Input / 1M$10.50Output / 1M$52.50
Input / 1M$1.05Output / 1M$5.25
Input / 1M$0.105Output / 1M$0.525
Input / 1M$5.25Output / 1M$26.25
Input / 1M$5.25Output / 1M$26.25