mcpField
A
acedatacloud-api

acedatacloud-api

github.com/acedatacloudDevelopment1795 installsUpdated today
Repository

About acedatacloud-api

acedatacloud-api is a usage guide for AceDataCloud AI data services, aimed at developers integrating its APIs. It covers OpenAI-compatible calls, synchronous and asynchronous requests, authentication, and error handling.

Key features

  1. 01OpenAI-compatible SDK integration
  2. 02Synchronous API request examples
  3. 03Async task submission and polling
  4. 04API token and permission guidance
  5. 05Error handling and billing guidance

Use cases

  1. 01Calling chat services through the OpenAI SDK
  2. 02Submitting image, video, or music generation tasks
  3. 03Handling API rate limits and authentication errors

MCP support

The guide mentions MCP servers for connecting services to AI agents, but provides no specific MCP tools or configuration details.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/acedatacloud/skills --skill acedatacloud-api

After installing, type/acedatacloud-apiin Claude Code to confirm it loaded.

Details

From the project README

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.

Full details: See authentication for token types and usage.

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!" }]
});

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.

Full details: See async task polling for the submit-and-poll pattern.

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, Kimi, Grok/v1/chat/completions
Image GenFlux, Seedream, NanoBanana/flux/*, /seedream/*, etc.
Video GenLuma, Sora, Veo, Kling, Hailuo, Seedance, Wan/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 — always use callback_url to get the task_id immediately, then poll for results
  • Avoid wait: true — it blocks for the full generation duration and will time out for video/music tasks
  • Rate limits vary by service tier — upgrade your plan if hitting limits
  • All timestamps are in UTC

MCP: See MCP servers for tool-use integration with AI agents.

Comments

Markdown supported