Use the OpenAI SDK with API Volta
Point the official OpenAI SDK for Python and Node.js at the API Volta base URL and call selected GLM, DeepSeek, Kimi and other models through one OpenAI-compatible API.
All integration guides · API docs · Model pricing
Base URL and API key
API Volta exposes an OpenAI-compatible API, so the official OpenAI SDK works without a fork or a proxy. Replace the base URL, use an API Volta key, and pick a model alias from the published catalog.
Create an account and generate a key in the console, then export it as API_VOLTA_API_KEY.
Python
The model name is case-sensitive. Use the exact alias shown on the model pricing page; a lowercase alias returns no available channel.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://app.apivolta.com/v1",
api_key=os.environ["API_VOLTA_API_KEY"],
)
response = client.chat.completions.create(
model="DeepSeek-V4-Flash",
messages=[{"role": "user", "content": "Write a release note."}],
)
print(response.choices[0].message.content)pip install openaiNode.js
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://app.apivolta.com/v1',
apiKey: process.env.API_VOLTA_API_KEY,
})
const response = await client.chat.completions.create({
model: 'DeepSeek-V4-Flash',
messages: [{ role: 'user', content: 'Write a release note.' }],
})Streaming
Publishes USD per-1M-token rates on the model pricing page; prepaid credits are consumed per request.
stream = client.chat.completions.create(
model="DeepSeek-V4-Flash",
messages=[{"role": "user", "content": "Write a release note."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")Availability and pricing are published on model pricing and may vary by provider, region and account.