Claude API · Ace Data Cloud

Claude API:
Powerful AI Reasoning and Conversation

Access the Claude Haiku, Sonnet, Opus, and Fable families through OpenAI-compatible and Anthropic-native formats. Use reasoning, tool calling, text and image inputs, and streaming responses depending on the model and API, with billing based on actual Token usage.

🤖 Haiku / Sonnet / Opus / Fable 📡 3 API Endpoints 🧠 Extended Thinking 🔌 OpenAI Compatible
🤖
4
Model Families
📡
3
API Endpoints
💰
Token
Usage-Based Pricing
⚡
SSE
Streaming Responses

Why use Claude through Ace Data Cloud?

Claude can be used to analyze documents, review code, generate text, and orchestrate multi-step tasks. Models differ in reasoning capabilities, latency, and pricing.

You can reuse the OpenAI SDK to call Chat Completions or use native Messages to access Claude. When native thinking content blocks and tool interactions are needed, use Messages.

Key Features of the Claude API

A complete API suite covering all Claude capabilities, with a choice of two interface formats

🔌

OpenAI-Compatible Format

Use Claude through the /v1/chat/completions endpoint, fully compatible with the OpenAI SDK. Switch from GPT to Claude without changing your code.

📨

Anthropic Native Messages

Use the Anthropic native format through the /v1/messages endpoint, providing Claude native messages, thinking blocks, and tool interactions. The available parameters depend on the selected model.

🧠

Extended Thinking

Enable Claude's deep reasoning mode—the model thinks in a structured way before answering, significantly improving performance on complex reasoning, math, and programming tasks.

🛠️

Tool Use / Function Calling

Let Claude call tools and functions you define. Both Chat Completions and Messages support tool calling; use the corresponding protocol's format when defining tools and returning tool results.

👁️

Multimodal Input

Supports combined image + text input. Claude can analyze images, read document screenshots, and understand charts—without an additional OCR call.

⚡

Streaming

Both formats support SSE streaming, returning generated content in real time. Both the Chat Completions and Messages APIs support stream: true.

Python
from openai import OpenAI
client = OpenAI(
  base_url="https://api.acedata.cloud/v1",
  api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
  model="claude-fable-5-2",
  messages=[{"role": "user", "content": "用一句话介绍量子计算"}],
  max_tokens=4096,
)
print(response.choices[0].message.content)

Response JSON

The following response excerpt from an existing API guide shows the fields used to read the result. The example model, task ID, and media content come from that historical example; refer to the actual values returned for this request.

{
  "id": "msg_bdrk_01Q6WN27v95ypCa1kbanAQ6K",
  "object": "chat.completion",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 8,
    "completion_tokens": 12,
    "total_tokens": 20
  }
}

The answer in a standard response is located at choices[0].message.content. For native thinking and tool response examples, see the Messages documentation.

Switch with one line of OpenAI SDK code

Simply change base_url and model to use Claude in an existing OpenAI project—no code refactoring required.

1

Get an API Key

Log in to the application list, open General Application, and click the copy button to the right of API KEY. Keep the key on the server and use it to replace YOUR_API_KEY in the example.

Get an Ace Data Cloud API Key
2

Change base_url

Set base_url to https://api.acedata.cloud/v1

3

Choose a Claude model

Set model to a model supported by the current API, such as claude-fable-5-2

Two API formats, choose as needed

Switch seamlessly with the OpenAI-compatible format, or unlock full capabilities with the native Anthropic format

Feature Chat Completions Messages API
Endpoint path /v1/chat/completions /v1/messages
OpenAI SDK compatibility ✓ ✗
Anthropic SDK compatibility ✗ ✓
Streaming ✓ ✓
Tool Use / Function Calling ✓ ✓
Multimodal input (Vision) ✓ ✓
Extended Thinking ✗ ✓
Token counting — Please see the models supported by Count Tokens
System Prompt ✓ (messages array) ✓ (separate system field)

What can you build with the Claude API?

From intelligent conversations to complex reasoning—developers are building these applications with Claude

💬

AI Conversation Assistant

Build intelligent customer service, personal assistants, or knowledge Q&A systems using Claude's exceptional language understanding and generation capabilities

💻

Coding Assistance

Code generation, review, debugging, and refactoring. Claude excels at programming tasks and supports all major languages

📊

Data Analysis

Document parsing, data extraction, and report generation. Multimodal input lets Claude analyze charts and screenshots directly

🤖

AI Agent

Build autonomous agents and automated workflows with Tool Use. Claude can call APIs, query databases, and perform complex tasks

Get started in 3 steps

From signing up to sending your first Claude message, it takes less than 3 minutes

01

Sign up and get an API Key

Follow the illustration above to copy the API Key for the general application.

02

Choose an API format

Use OpenAI-compatible Chat Completions for quick integration, or use the native Anthropic Messages API to unlock all features.

03

Start a conversation

Send your first message and experience Claude's powerful reasoning capabilities. Streaming is supported for real-time responses.

Why choose Ace Data Cloud instead of using Anthropic directly?

Comprehensive advantages in pricing, rate limits, and compatibility

Comparison Ace Data Cloud Anthropic Direct
Pricing Billed by model and Token usage Official pricing
Rate limits ✓ Generous concurrency limits ✗ Strict limits (Tier-dependent)
OpenAI-compatible format ✓ ✗
Anthropic native format ✓ ✓
Extended Thinking ✓ ✓
Tool Use ✓ ✓
Global availability ✓ Ready to use out of the box ✗ Restricted in some regions
Pay as you go ✓ Flexible top-ups Monthly billing
Claude Code integration ✓ ✓

Choose the Right Model Family

From lightweight and fast to top-tier reasoning—Claude offers a range of model choices

Haiku Family

Fast and Affordable

The fastest response times and lowest cost. Ideal for simple tasks, high-concurrency scenarios, and latency-sensitive applications.

  • ✓ Claude 3 Haiku / Claude 3.5 Haiku
  • ✓ Claude Haiku 4.5 (latest)
  • ✓ Millisecond response times
  • ✓ The lowest-cost Claude models
  • ✓ Ideal for classification, extraction, and simple Q&A
Recommended

Sonnet Family

Best Balance

The best balance of performance and cost. Ideal for most production applications, combining excellent reasoning with reasonable pricing.

  • ✓ Claude 3.5 Sonnet / Claude 3.7 Sonnet
  • ✓ Claude Sonnet 5.5 / Sonnet 5 / Sonnet 4.6
  • ✓ Excellent coding and reasoning abilities
  • ✓ Supports Extended Thinking
  • ✓ The most popular choice among developers

Fable / Opus Family

Flagship

Claude Fable 5.2 is the latest flagship for long-running agents and complex reasoning, while the older Fable 5 and Opus family continue to handle demanding analysis tasks.

  • ✓ Claude Fable 5.2 (latest flagship, 1 million Token context, maximum output of 128K Token)
  • ✓ Claude Fable 5.1 / Fable 5 (retained for compatibility)
  • ✓ Claude 3 Opus / Opus 4 / Opus 4.1
  • ✓ Claude Opus 5.5 (Chat Completions and Messages API; use Messages for full native capabilities)
  • ✓ Claude Opus 4.5 / Opus 4.6 / Opus 4.7 / Opus 4.8
  • ✓ The strongest reasoning and analysis capabilities
  • ✓ Supports Extended Thinking
  • ✓ Ideal for research, complex coding, and in-depth analysis
claude-fable-5-2 claude-fable-5-1 claude-fable-5 claude-opus-5-5 claude-sonnet-4-20250514 claude-opus-4-6 claude-opus-4-7 claude-opus-4-8 claude-sonnet-5-5 claude-opus-5-5 claude-haiku-4-5-20251001 claude-opus-4-5-20251101

Claude API Pricing

Input, output, and applicable cache usage are billed separately by selected model, at the rates shown on the pricing page.

Enjoy greater discounts with bulk plans

Pay as you go
Token-based billing
Credits deducted based on usage

Billed based on actual Token usage, with separate input and output pricing

  • ✓ Haiku series: Lowest-cost entry point
  • ✓ Sonnet series: Best value
  • ✓ Opus series: Flagship reasoning capabilities
  • ✓ Models are subject to the list for the selected API
  • ✓ Reasoning usage counts toward output Tokens
  • ✓ Streaming responses supported, billed by actual Token usage
  • ✓ Estimate request usage with Count Tokens for applicable models
View pricing details
Enterprise
Custom

Tailored solutions for high-usage teams

  • ✓ Tiered discounts based on usage
  • ✓ Priority support and an account manager
  • ✓ Custom rate limits
  • ✓ SLA guarantees
  • ✓ Private deployment options
Contact sales

Frequently Asked Questions

Everything you need to know about using the Claude API

How is this different from using the Anthropic API directly? ▾

Ace Data Cloud offers Claude's native Messages and OpenAI-compatible Chat Completions. See the API documentation and pricing page for models, parameters, and rates, respectively.

Does it support the OpenAI SDK? ▾

Yes! Our Chat Completions API is fully compatible with the OpenAI SDK (Python, Node.js, Go, etc.). Simply change base_url to https://api.acedata.cloud/v1 and set model to the Claude model name. Your existing OpenAI code requires almost no changes.

Which Claude models are supported? ▾

We support the latest Claude Fable 5.2, Fable 5.1 and Fable 5 retained for compatibility, and the Haiku, Sonnet, and Opus model families. Fable 5.2 is designed for the most complex long-horizon reasoning and agent tasks, supporting a context of 100 ten-thousand tokens and a maximum output of 128K tokens; Sonnet 5.5 and Opus 5.5 can be selected based on latency and reasoning needs. Fable 5.2 currently supports Messages and Chat Completions.

What is Extended Thinking? ▾

Extended Thinking is Claude's deep reasoning mode. When enabled, the model follows a structured thinking process before answering, similar to the human practice of "thinking before speaking." This significantly improves performance on tasks such as mathematics, logical reasoning, and complex programming. Enable it using the thinking parameter in the Messages API, or use a model name with the -thinking suffix directly.

Can it be used with Claude Code? ▾

Yes! Ace Data Cloud's Claude API can directly provide backend support for Claude Code. Simply set the API base URL and Token in your Claude Code configuration to get started. Billing is based on actual usage of the selected model. See our Claude Code configuration guide for details.

How does pricing work? ▾

Input, output, and applicable cache usage are calculated separately for each model. Check the pricing page for Credits rates; actual costs depend on usage and the plan purchased.

Are there rate limits? ▾

Rate limits vary by model and service. If you receive a 429, reduce concurrency and try again later.

Is multimodal input supported? ▾

Yes. Both Chat Completions and Messages API support mixed image + text input. You can include a Base64-encoded image or an image URL in a message, and Claude will understand the image content and use it alongside the text to respond. JPEG, PNG, GIF, and WebP formats are supported.

Start Using the Claude API Today

Choose a Claude model and integration protocol, and start with your first conversation or tool call.