← 返回
未分类 Key 中文

Ai Chat

Access 50+ LLM models through a unified OpenAI-compatible API via AceDataCloud. Use when you need chat completions from GPT, Claude, Gemini, DeepSeek, Grok,...
通过 AceDataCloud 的统一 OpenAI 兼容 API访问 50+ LLM 模型,适用于需要 GPT、Claude、Gemini、DeepSeek、Grok 等聊天补全的场景。
germey germey 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 404
下载
💾 0
安装
1
版本
#latest

概述

AI Chat — Unified LLM Gateway

Access 50+ language models through a single OpenAI-compatible endpoint via AceDataCloud.

Authentication

export ACEDATACLOUD_API_TOKEN="your-token-here"

Quick Start

curl -X POST https://api.acedata.cloud/v1/chat/completions \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4-20250514", "messages": [{"role": "user", "content": "Hello!"}]}'

OpenAI SDK Drop-in

from openai import OpenAI

client = OpenAI(
    api_key="your-token-here",
    base_url="https://api.acedata.cloud/v1"
)

response = client.chat.completions.create(
    model="gpt-4.1",
    messages=[{"role": "user", "content": "Explain quantum computing"}]
)
print(response.choices[0].message.content)

Available Models

OpenAI GPT

ModelTypeBest For
-----------------------
gpt-4.1LatestGeneral-purpose, high quality
gpt-4.1-miniSmallFast, cost-effective
gpt-4.1-nanoTinyUltra-fast, lowest cost
gpt-4oMultimodalVision + text
gpt-4o-miniSmall multimodalFast vision tasks
o1ReasoningComplex reasoning tasks
o1-miniSmall reasoningQuick reasoning
o1-proPro reasoningAdvanced reasoning
gpt-5Latest genNext-gen intelligence
gpt-5-miniMini gen 5Fast next-gen

Anthropic Claude

ModelTypeBest For
-----------------------
claude-opus-4-6Latest OpusHighest capability
claude-sonnet-4-6Latest SonnetBalanced quality/speed
claude-opus-4-5-20251101Opus 4.5Premium tasks
claude-sonnet-4-5-20250929Sonnet 4.5High-quality balance
claude-sonnet-4-20250514Sonnet 4Reliable general-purpose
claude-haiku-4-5-20251001Haiku 4.5Fast, efficient
claude-3-5-sonnet-20241022Legacy 3.5Proven track record
claude-3-opus-20240229Legacy OpusMaximum quality (legacy)

Google Gemini

ModelBest For
-----------------
gemini-1.5-proLong context, complex tasks
gemini-1.5-flashFast, efficient

DeepSeek

ModelBest For
-----------------
deepseek-r1Deep reasoning
deepseek-r1-0528Latest reasoning
deepseek-v3General-purpose
deepseek-v3-250324Latest general

xAI Grok

ModelBest For
-----------------
grok-4Latest, highest capability
grok-3General-purpose
grok-3-fastSpeed-optimized
grok-3-miniCompact, efficient

Features

Streaming

POST /v1/chat/completions
{
  "model": "claude-sonnet-4-20250514",
  "messages": [{"role": "user", "content": "Write a story"}],
  "stream": true
}

Function Calling

POST /v1/chat/completions
{
  "model": "gpt-4.1",
  "messages": [{"role": "user", "content": "What's the weather in Tokyo?"}],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_weather",
        "parameters": {"type": "object", "properties": {"location": {"type": "string"}}}
      }
    }
  ]
}

Vision

POST /v1/chat/completions
{
  "model": "gpt-4o",
  "messages": [
    {
      "role": "user",
      "content": [
        {"type": "text", "text": "What's in this image?"},
        {"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}}
      ]
    }
  ]
}

Parameters

ParameterTypeDescription
------------------------------
modelstringModel name (see tables above)
messagesarrayArray of {role, content} objects
temperature0–2Randomness (default: 1)
top_p0–1Nucleus sampling
max_tokensintegerMaximum output tokens
streambooleanEnable SSE streaming
toolsarrayFunction calling definitions
tool_choicestring/objectTool selection strategy

Response

{
  "id": "chatcmpl-xxx",
  "object": "chat.completion",
  "model": "claude-sonnet-4-20250514",
  "choices": [
    {
      "index": 0,
      "message": {"role": "assistant", "content": "Hello!"},
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 10,
    "completion_tokens": 5,
    "total_tokens": 15
  }
}

Gotchas

  • 100% OpenAI-compatible — use the standard OpenAI SDK with base_url="https://api.acedata.cloud/v1"
  • Billing is token-based with per-model pricing (more expensive models cost more per token)
  • Vision is supported on multimodal models (gpt-4o, gpt-4o-mini, grok-2-vision-*)
  • Function calling works on most modern models (GPT-4+, Claude 3+)
  • Streaming returns chat.completion.chunk objects via SSE
  • finish_reason values: "stop" (complete), "length" (max tokens), "tool_calls" (function call), "content_filter" (filtered)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 08:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Seedance Video

germey
使用 Seedance(字节跳动)AceDataCloud API 生成 AI 舞蹈和运动视频,适用于文字提示生成视频或把图片动画化。
★ 0 📥 422

Google Search

germey
使用 AceDataCloud API 调用 Google 搜索,支持搜索网页、图片、新闻、地图、当地地点和视频,具备本地化和时间过滤功能。
★ 0 📥 517

Nano Banana Image

germey
使用 NanoBanana(基于 Gemini)通过 AceDataCloud API 生成和编辑 AI 图像。适用于根据文字提示创建图像或编辑已有图像。
★ 0 📥 420