← 返回
未分类 Key 中文

Acedatacloud Api

Guide for using AceDataCloud APIs. Use when authenticating, making API calls, managing credentials, understanding billing, or integrating AceDataCloud servic...
AceDataCloud API 使用指南。在身份验证、发起 API 调用、管理凭证、了解计费或集成 AceDataCloud 服务时使用。
germey germey 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 517
下载
💾 0
安装
1
版本
#latest

概述

AceDataCloud API Usage Guide

Complete guide for using AceDataCloud's AI-powered data services API.

Getting Started

1. Create an Account

Register at platform.acedata.cloud.

2. Subscribe to a Service

Browse available services and click Get to subscribe. Most services include free quota.

3. Create API Credentials

Go to your service's Credentials page and create an API Token.

Authentication

All APIs use Bearer token authentication:

curl -X POST https://api.acedata.cloud/<endpoint> \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

Token Types

TypeFormatScope
---------------------
Service TokenUUID stringAccess to subscribed service only
Global TokenUUID stringAccess to all subscribed services

Base URL

https://api.acedata.cloud

SDK Integration (OpenAI-Compatible)

For chat completion services, use the standard OpenAI SDK:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_TOKEN",
    base_url="https://api.acedata.cloud/v1"
)

response = client.chat.completions.create(
    model="claude-sonnet-4-20250514",
    messages=[{"role": "user", "content": "Hello!"}]
)
import OpenAI from "openai";

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

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

Common Request Patterns

Synchronous APIs

Some APIs return results immediately (e.g., face transform, search):

curl -X POST https://api.acedata.cloud/face/analyze \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://example.com/photo.jpg"}'

Async Task APIs

Most generation APIs (images, video, music) are asynchronous:

Step 1: Submit request

POST /suno/audios
{"prompt": "a jazz song", "wait": false}
→ {"task_id": "abc123"}

Step 2: Poll for results

POST /suno/tasks
{"task_id": "abc123"}
→ {"state": "succeeded", "data": [...]}

Shortcut: Pass "wait": true to block until completion (simpler but longer timeout).

Error Handling

HTTP CodeMeaningAction
----------------------------
400Bad requestCheck request parameters
401UnauthorizedCheck API token
403ForbiddenContent filtered or insufficient permissions
429Rate limitedWait and retry with backoff
500Server errorRetry or contact support

Error response format:

{
  "error": {
    "code": "token_mismatched",
    "message": "Invalid or expired token"
  }
}

Billing

  • Each API call deducts from your subscription balance (remaining_amount)
  • Cost varies by service, model, and usage (tokens, requests, data size)
  • Check balance at platform.acedata.cloud
  • Most services offer free trial quota

Service Categories

CategoryServicesBase Path
-------------------------------
AI ChatGPT, Claude, Gemini, DeepSeek, Grok/v1/chat/completions
Image GenMidjourney, Flux, Seedream, NanoBanana/midjourney/, /flux/, etc.
Video GenLuma, Sora, Veo, Kling, Hailuo, Seedance/luma/, /sora/, etc.
Music GenSuno, Producer, Fish Audio/suno/, /producer/, /fish/*
SearchGoogle Search (web/images/news/maps)/serp/*
FaceAnalyze, beautify, swap, cartoon, age/face/*
UtilityShort URL, QR Art, Headshots/short-url, /qrart/, /headshots/

Gotchas

  • Tokens are service-scoped by default — create a global token if you need cross-service access
  • Async APIs return a task_id — you must poll to get the result
  • wait: true is convenient but has a timeout limit (typically 60–120s)
  • Rate limits vary by service tier — upgrade your plan if hitting limits
  • All timestamps are in UTC

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 20:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Seedance Video

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

Nano Banana Image

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

Google Search

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