跳转到主要内容
The OpenAI SDK (openai for Python, openai for Node.js) is the most widely used AI SDK in the world. With Ace Data Cloud, you can use this same SDK to access Claude, Gemini, DeepSeek, Grok, and 50+ other models.

How it works

Just change the base_url:
from openai import OpenAI

# Instead of pointing to api.openai.com...
client = OpenAI(
    api_key="YOUR_ACEDATA_KEY",
    base_url="https://api.acedata.cloud/v1",  # ← This is the only change
)

# Now use ANY model
response = client.chat.completions.create(
    model="claude-sonnet-4-20250514",  # Anthropic Claude
    messages=[{"role": "user", "content": "Hello!"}],
)

Supported models

ProviderModels
AnthropicClaude Opus 4, Claude Sonnet 4, Claude Haiku
OpenAIGPT-4o, GPT-4.1, o3, o4-mini
GoogleGemini 2.5 Pro, Gemini 2.5 Flash
DeepSeekDeepSeek-V3, DeepSeek-R1
xAIGrok-3, Grok-3-mini

JavaScript

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "YOUR_ACEDATA_KEY",
  baseURL: "https://api.acedata.cloud/v1",
});

const response = await client.chat.completions.create({
  model: "gemini-2.5-flash",
  messages: [{ role: "user", content: "Hello!" }],
});

cURL

curl https://api.acedata.cloud/v1/chat/completions \
  -H "Authorization: Bearer YOUR_ACEDATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-chat", "messages": [{"role": "user", "content": "Hello!"}]}'

Get started

Sign up free → get your API key → use the OpenAI SDK with any model.