@acedatacloud/openclaw-provider 2026.11.13 → 2026.11.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,8 +11,8 @@ review and has not been granted.
11
11
 
12
12
  ## Get your Ace Data Cloud API key
13
13
 
14
- 1. Open [Ace Data Cloud → Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=openclawprovider_readme_api_key). Sign in, or register an account first.
15
- 2. Find **General application**. If it has not been created, choose **Initialize General Application**. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and [current pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=openclawprovider_readme_pricing).
14
+ 1. Open [Ace Data Cloud → Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen). Sign in, or register an account first.
15
+ 2. Find **General application**. If it has not been created, choose **Initialize General Application**. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and [current pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen).
16
16
  3. Copy the **API Key** from the application card, or open **Keys / Manage Keys → Create** to create a separate key for this integration. Give it a recognizable name so you can revoke or rotate it independently.
17
17
  4. When creating a key, review **Expiration Time**, **Set Usage Limitation**, and **Allowed APIs**. Enable only the restrictions you need, allow the operations you will call, then click **Create** and copy the token from the key list. Task lookup does not grant permission to submit a generation. Confirm the application's balance can cover your first request; any trial allowance is whatever your account currently displays.
18
18
  5. Copy only the token value, without quotation marks, spaces, or `Bearer `. An API Key / API Token field expects this raw value; only a manually configured HTTP `Authorization` header needs the `Bearer ` prefix. A `platform-...` account-management token cannot replace a generation API key.
@@ -39,15 +39,15 @@ and as a `.tgz` on [GitHub Releases](https://github.com/AceDataCloud/OpenClawPro
39
39
  Follow the [API key steps above](#get-your-ace-data-cloud-api-key) before onboarding.
40
40
  The default model is `acedatacloud/gpt-4.1-mini`.
41
41
 
42
- The chat catalog covers 91 public models across OpenAI, Claude, Gemini, Grok,
42
+ The chat catalog covers 92 public models across OpenAI, Claude, Gemini, Grok,
43
43
  DeepSeek, Kimi, and GLM. Each model uses its own supported Chat Completions,
44
44
  Responses, or Messages route, input capabilities, reasoning controls, and prices.
45
45
  See [model support and cost estimates](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/model-catalog.md). No automatic
46
46
  fallback changes the chosen model.
47
47
 
48
48
  Native media providers cover Nano Banana, GPT Image, Seedream, Flux, Qwen Image,
49
- Midjourney, Seedance, Veo, Kling, Grok Video, Happy Horse, MiniMax H3, Wan, Suno
50
- and Fish Audio. 97 optional tools across 17 services expose advanced editing,
49
+ Midjourney, Seedance, Veo, Kling, Grok Video, Happy Horse, MiniMax H3, Wan, ACE Music, Suno
50
+ and Fish Audio. 115 optional tools across 19 services expose advanced editing,
51
51
  voice/persona management, face transformation, search and task retrieval.
52
52
  See [capability and tool reference](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/capabilities.md) and the
53
53
  [official-contract architecture decision](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/architecture.md).
@@ -104,4 +104,4 @@ MIT License. Maintained by Ace Data Cloud, dev@acedata.cloud.
104
104
 
105
105
  ## Independent service entry points
106
106
 
107
- Dedicated packages under [service-plugins](service-plugins) expose **Suno by Ace Data Cloud**, **Seedance by Ace Data Cloud**, **HappyHorse by Ace Data Cloud**, **GPT Image by Ace Data Cloud**, and **Nano Banana by Ace Data Cloud**. They share this source but register only their service media provider and tools, use separate keys, and can coexist with the collection. Publication is verified per package and version; consult each ClawHub listing rather than inferring availability from this source. Each README has the exact future package ID, API token steps, native auth choice and same-task result workflow.
107
+ Dedicated packages under [service-plugins](service-plugins) expose **ACE Music by Ace Data Cloud**, **Suno by Ace Data Cloud**, **Seedance by Ace Data Cloud**, **HappyHorse by Ace Data Cloud**, **GPT Image by Ace Data Cloud**, and **Nano Banana by Ace Data Cloud**. They share this source but register only their service media provider and tools, use separate keys, and can coexist with the collection. Publication is verified per package and version; consult each ClawHub listing rather than inferring availability from this source. Each README has the exact future package ID, API token steps, native auth choice and same-task result workflow.
@@ -1744,6 +1744,51 @@ export const GENERATED_CHAT_MODELS = [
1744
1744
  "off": "low"
1745
1745
  }
1746
1746
  },
1747
+ {
1748
+ "id": "gemini-4-neon",
1749
+ "name": "Gemini 4 Neon",
1750
+ "api": "openai-completions",
1751
+ "baseUrl": "https://api.acedata.cloud/gemini",
1752
+ "reasoning": true,
1753
+ "input": [
1754
+ "text",
1755
+ "image"
1756
+ ],
1757
+ "contextWindow": 1048576,
1758
+ "maxTokens": 65536,
1759
+ "cost": {
1760
+ "input": 1.1037985,
1761
+ "output": 5.51899285,
1762
+ "cacheRead": 0.055189925,
1763
+ "cacheWrite": 0
1764
+ },
1765
+ "compat": {
1766
+ "supportsStore": false,
1767
+ "supportsDeveloperRole": false,
1768
+ "supportsReasoningEffort": true,
1769
+ "supportsUsageInStreaming": true,
1770
+ "maxTokensField": "max_tokens",
1771
+ "supportsTools": true,
1772
+ "supportedReasoningEfforts": [
1773
+ "low",
1774
+ "medium",
1775
+ "high"
1776
+ ],
1777
+ "thinkingFormat": "openai"
1778
+ },
1779
+ "reasoningEfforts": [
1780
+ "low",
1781
+ "medium",
1782
+ "high"
1783
+ ],
1784
+ "thinkingToggle": false,
1785
+ "thinkingLevelMap": {
1786
+ "low": "low",
1787
+ "medium": "medium",
1788
+ "high": "high",
1789
+ "off": "low"
1790
+ }
1791
+ },
1747
1792
  {
1748
1793
  "id": "glm-4.6",
1749
1794
  "name": "GLM-4.6",
@@ -0,0 +1,14 @@
1
+ declare const _default: Omit<{
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
6
+ configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
7
+ reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
8
+ nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
9
+ securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
10
+ register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
11
+ }, "configSchema"> & {
12
+ configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
13
+ };
14
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { SERVICE_PLUGINS } from "./definitions.js";
2
+ import { createServicePlugin } from "./entry.js";
3
+ export default createServicePlugin(SERVICE_PLUGINS.find(def => def.service === "acemusic"));
@@ -48,5 +48,15 @@ export declare const SERVICE_PLUGINS: readonly [{
48
48
  readonly model: "nano-banana-2-lite";
49
49
  readonly action: "nano_banana_generate_image";
50
50
  readonly searchTerms: readonly ["nano banana", "nano-banana", "image editing"];
51
+ }, {
52
+ readonly service: "acemusic";
53
+ readonly label: "ACE Music";
54
+ readonly id: "ace-acemusic";
55
+ readonly packageName: "@acedatacloud/acemusic-openclaw";
56
+ readonly envVar: "ACEDATA_ACEMUSIC_API_KEY";
57
+ readonly kind: "music";
58
+ readonly model: "acemusic-v1.1";
59
+ readonly action: "acemusic_generate_music";
60
+ readonly searchTerms: readonly ["ace music", "acemusic", "music", "lyrics"];
51
61
  }];
52
62
  export type ServicePluginDefinition = (typeof SERVICE_PLUGINS)[number];
@@ -4,4 +4,5 @@ export const SERVICE_PLUGINS = [
4
4
  { service: "happyhorse", label: "HappyHorse", id: "ace-happyhorse", packageName: "@acedatacloud/happyhorse-openclaw", envVar: "ACEDATA_HAPPYHORSE_API_KEY", kind: "video", model: "happyhorse-1.0-t2v", action: "happyhorse_generate_video", searchTerms: ["happyhorse", "happy horse", "video"] },
5
5
  { service: "gpt-image", label: "GPT Image", id: "ace-gpt-image", packageName: "@acedatacloud/gpt-image-openclaw", envVar: "ACEDATA_GPT_IMAGE_API_KEY", kind: "image", model: "gpt-image-2", action: "gpt_image_generate_image", searchTerms: ["gpt image", "gpt-image", "image editing"] },
6
6
  { service: "nano-banana", label: "Nano Banana", id: "ace-nano-banana", packageName: "@acedatacloud/nano-banana-openclaw", envVar: "ACEDATA_NANO_BANANA_API_KEY", kind: "image", model: "nano-banana-2-lite", action: "nano_banana_generate_image", searchTerms: ["nano banana", "nano-banana", "image editing"] },
7
+ { service: "acemusic", label: "ACE Music", id: "ace-acemusic", packageName: "@acedatacloud/acemusic-openclaw", envVar: "ACEDATA_ACEMUSIC_API_KEY", kind: "music", model: "acemusic-v1.1", action: "acemusic_generate_music", searchTerms: ["ace music", "acemusic", "music", "lyrics"] },
7
8
  ];
@@ -1,3 +1,4 @@
1
+ import aceMusic from "./contracts/acemusic.json" with { type: "json" };
1
2
  import c0 from "./contracts/face.json" with { type: "json" };
2
3
  import c1 from "./contracts/fish-audio.json" with { type: "json" };
3
4
  import c2 from "./contracts/flux.json" with { type: "json" };
@@ -14,8 +15,9 @@ import c12 from "./contracts/seedance.json" with { type: "json" };
14
15
  import c13 from "./contracts/seedream.json" with { type: "json" };
15
16
  import c14 from "./contracts/suno.json" with { type: "json" };
16
17
  import c15 from "./contracts/veo.json" with { type: "json" };
18
+ import tripo from "./contracts/tripo.json" with { type: "json" };
17
19
  import c16 from "./contracts/wan.json" with { type: "json" };
18
- export const SERVICES = [c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16];
20
+ export const SERVICES = [aceMusic, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, tripo, c15, c16];
19
21
  export function serviceById(id) {
20
22
  const service = SERVICES.find(s => s.id === id);
21
23
  if (!service)
@@ -22,7 +22,7 @@ export function mediaUrls(x) {
22
22
  return;
23
23
  }
24
24
  for (const [key, value] of Object.entries(record(n))) {
25
- if (["url", "image_url", "audio_url", "video_url", "file_url", "raw_image_url"].includes(key) && typeof value === "string" && /^https:\/\//.test(value))
25
+ if (["url", "image_url", "audio_url", "video_url", "file_url", "model_url", "raw_image_url"].includes(key) && typeof value === "string" && /^https:\/\//.test(value))
26
26
  result.add(value);
27
27
  else if (typeof value === "object")
28
28
  walk(value);
@@ -98,6 +98,12 @@ export function prepare(service, tool, parameters) {
98
98
  endpoint = service.endpoints[selection];
99
99
  }
100
100
  const params = adaptParameters(service.id, Object.fromEntries(Object.entries(parameters).filter(([, v]) => v !== undefined && v !== null)), endpoint);
101
+ if (service.id === "acemusic") {
102
+ for (const [key, fixed] of Object.entries(endpoint.fixed ?? {})) {
103
+ if (key in params && params[key] !== fixed)
104
+ throw new Error(`Unsupported ${key} for this ACE Music operation.`);
105
+ }
106
+ }
101
107
  const values = { ...endpoint.defaults, ...params, ...endpoint.fixed };
102
108
  const allowed = new Set([...Object.keys(endpoint.properties), ...(endpoint.parameters ?? []).map(p => p.name.toLowerCase() === "idempotency-key" ? "idempotency_key" : p.name), ...Object.keys(endpoint.defaults ?? {}), "confirm", "wait_seconds", "task_id"]);
103
109
  if (service.endpoints[tool].selector)
@@ -190,6 +196,34 @@ export function normalize(body, taskId = "", retrieved = false, synchronous = fa
190
196
  throw new Error(`No task ID or completed result; inspect request history before resubmitting${trace ? ` (trace ${trace})` : ""}.`);
191
197
  return { status: done ? partial ? "partial" : "succeeded" : "pending", success: done && !partial, task_id: id, trace_id: trace, media_urls: done ? urls : [], data: done ? cleanResult(obj.data ?? obj.content ?? result) : {}, result: done ? clean : {} };
192
198
  }
199
+ // ACE Music uses the task group state even when a processing response has success=false.
200
+ function normalizeAceMusic(body, taskId, retrieved) {
201
+ const row = record(body);
202
+ const payload = retrieved ? record(row.response) : row;
203
+ const state = String(row.state ?? row.status ?? payload.state ?? payload.status ?? "");
204
+ const id = String(taskId || row.task_id || row.id || payload.task_id || "");
205
+ const trace = String(row.trace_id ?? payload.trace_id ?? "");
206
+ const data = Array.isArray(payload.data) ? payload.data : [];
207
+ const partial = state === "partial_failed";
208
+ if (state === "failed" || (!state && payload.success === false && !id)) {
209
+ throw new Error(`ACE Music task failed (${id || trace || "no ID"}).`);
210
+ }
211
+ // Synchronous lyric results can contain a task_id alongside the final text.
212
+ const completedLyrics = !state && payload.success === true && data.some(item => typeof record(item).text === "string");
213
+ const done = state === "succeeded" || partial || completedLyrics;
214
+ if (!done && !id)
215
+ throw new Error("ACE Music did not return a task ID. Reconcile the submission before trying again.");
216
+ const delivered = done ? data.filter(item => {
217
+ const track = record(item);
218
+ return !partial || (track.state ?? track.status) === "succeeded";
219
+ }) : [];
220
+ const urls = delivered.map(item => record(item).audio_url).filter((url) => typeof url === "string" && url.startsWith("https://"));
221
+ return {
222
+ status: partial ? "partial" : done ? "succeeded" : "pending",
223
+ success: done && !partial, task_id: id, trace_id: trace, media_urls: urls,
224
+ data: cleanResult(delivered), result: done ? cleanResult({ ...payload, state, data: delivered }) : { state },
225
+ };
226
+ }
193
227
  export async function readLimited(response, limit) {
194
228
  if (Number(response.headers.get("content-length")) > limit)
195
229
  throw new Error("Response exceeds the configured size limit.");
@@ -252,6 +286,9 @@ export class ServiceClient {
252
286
  const endpoint = service.endpoints[tool];
253
287
  if (!endpoint)
254
288
  throw new Error("Unknown service operation.");
289
+ const settle = (body, id, retrieved, synchronous = false) => service.id === "acemusic" && endpoint.operation !== "task_list"
290
+ ? normalizeAceMusic(body, id, retrieved)
291
+ : normalize(body, id, retrieved, synchronous, service.id === "seedream");
255
292
  if (endpoint.operation === "task") {
256
293
  const id = params.task_id ?? params.id;
257
294
  const trace = endpoint.properties.trace_id ? params.trace_id : undefined;
@@ -265,7 +302,7 @@ export class ServiceClient {
265
302
  signal?.throwIfAborted();
266
303
  const request = prepare(service, tool, { ...params, action: "retrieve", ...(id ? { id } : {}), ...(trace ? { trace_id: trace } : {}) });
267
304
  const body = await this.request(request, signal);
268
- const result = normalize(body, String(id || record(body).id || ""), true, false, service.id === "seedream");
305
+ const result = settle(body, String(id || record(body).id || ""), true);
269
306
  if (result.status !== "pending" || Date.now() >= end)
270
307
  return result;
271
308
  await delay(Math.min(5000, end - Date.now()), signal);
@@ -279,7 +316,7 @@ export class ServiceClient {
279
316
  if (!Array.isArray(items))
280
317
  throw new Error("Invalid task batch response.");
281
318
  const results = items.map(item => { const id = String(record(item).id ?? record(item).task_id ?? ""); try {
282
- return normalize(item, id, true, false, service.id === "seedream");
319
+ return settle(item, id, true);
283
320
  }
284
321
  catch {
285
322
  return { status: "failed", success: false, task_id: id, trace_id: "", media_urls: [], data: {}, result: {} };
@@ -287,7 +324,7 @@ export class ServiceClient {
287
324
  const status = results.some(r => r.status === "pending") ? "pending" : results.some(r => r.status === "failed") ? "failed" : results.some(r => r.status === "partial") ? "partial" : "succeeded";
288
325
  return { status, success: status === "succeeded", task_id: "", trace_id: "", media_urls: results.flatMap(r => r.media_urls), data: results, result: { items: results } };
289
326
  }
290
- return normalize(body, "", false, !req.asynchronous, service.id === "seedream");
327
+ return settle(body, "", false, !req.asynchronous);
291
328
  }
292
329
  async complete(service, tool, params, timeoutMs = 600_000) {
293
330
  const signal = AbortSignal.timeout(timeoutMs);
@@ -0,0 +1,17 @@
1
+ {
2
+ "id": "acemusic",
3
+ "label": "ACE Music",
4
+ "source": { "repository": "https://github.com/AceDataCloud/ACEMusicAPI", "commit": "b78e8d676e41dc9b9ff604ab7d0943ba1fe30bb5", "path": "openapi.json" },
5
+ "taskPath": "/acemusic/tasks",
6
+ "endpoints": {
7
+ "acemusic_generate_music": { "method": "POST", "path": "/acemusic/audios", "operation": "generate_music", "schema": { "type": "object", "additionalProperties": false, "properties": { "prompt": { "type": "string", "description": "Creation idea. Required when custom is false.", "maxLength": 20000, "minLength": 1 }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "custom": { "type": "boolean", "default": false, "description": "Only used by generate: false for an idea, true for supplied lyrics." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "required": ["prompt"] }, "properties": { "prompt": { "type": "string", "description": "Creation idea. Required when custom is false.", "maxLength": 20000, "minLength": 1 }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "custom": { "type": "boolean", "default": false, "description": "Only used by generate: false for an idea, true for supplied lyrics." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "tool": { "label": "ACE Music generate music", "description": "Generate a two-track song group from an idea.", "input": [{ "name": "prompt", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "model", "required": false, "schema": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1" } }] }, "fixed": { "action": "generate", "custom": false }, "defaults": { "model": "acemusic-v1.1" }, "parameters": [{ "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" }, "description": "Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected." }] },
8
+ "acemusic_generate_custom_music": { "method": "POST", "path": "/acemusic/audios", "operation": "generate_custom_music", "schema": { "type": "object", "additionalProperties": false, "properties": { "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "custom": { "type": "boolean", "default": false, "description": "Only used by generate: false for an idea, true for supplied lyrics." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "required": ["lyric", "style", "title"] }, "properties": { "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "custom": { "type": "boolean", "default": false, "description": "Only used by generate: false for an idea, true for supplied lyrics." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "tool": { "label": "ACE Music generate custom music", "description": "Generate a song group using the exact title, lyrics and style.", "input": [{ "name": "lyric", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "style", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "title", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "model", "required": false, "schema": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1" } }] }, "fixed": { "action": "generate", "custom": true }, "defaults": { "model": "acemusic-v1.1" }, "parameters": [{ "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" }, "description": "Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected." }] },
9
+ "acemusic_upload_audio": { "method": "POST", "path": "/acemusic/audios", "operation": "upload_audio", "schema": { "type": "object", "additionalProperties": false, "properties": { "audio_url": { "type": "string", "format": "uri", "pattern": "^https://", "minLength": 1, "maxLength": 20000, "description": "HTTPS URL of an MP3 source file for upload. Use audio_id or mashup_audio_ids for already imported or generated tracks." }, "name": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Optional display name for an upload." }, "audio_id": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "required": ["audio_url"] }, "properties": { "audio_url": { "type": "string", "format": "uri", "pattern": "^https://", "minLength": 1, "maxLength": 20000, "description": "HTTPS URL of an MP3 source file for upload. Use audio_id or mashup_audio_ids for already imported or generated tracks." }, "name": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Optional display name for an upload." }, "audio_id": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "tool": { "label": "ACE Music upload audio", "description": "Import one publicly accessible HTTPS reference MP3 as a separately priced operation.", "input": [{ "name": "audio_url", "required": true, "schema": { "type": "string", "format": "uri", "pattern": "^https://", "minLength": 1, "maxLength": 20000 } }, { "name": "name", "required": false, "schema": { "type": "string", "minLength": 1, "maxLength": 20000 } }, { "name": "audio_id", "required": false, "schema": { "type": "string", "minLength": 1, "maxLength": 20000 } }] }, "fixed": { "action": "upload" }, "parameters": [{ "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" }, "description": "Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected." }] },
10
+ "acemusic_cover_audio": { "method": "POST", "path": "/acemusic/audios", "operation": "cover_audio", "schema": { "type": "object", "additionalProperties": false, "properties": { "audio_id": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track." }, "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "audio_influence": { "type": "number", "minimum": 1, "maximum": 100, "default": 60, "description": "Audio reference strength for cover and mashup. Defaults to 60." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "required": ["audio_id", "lyric", "style"] }, "properties": { "audio_id": { "type": "string", "minLength": 1, "maxLength": 20000, "description": "Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track." }, "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "audio_influence": { "type": "number", "minimum": 1, "maximum": 100, "default": 60, "description": "Audio reference strength for cover and mashup. Defaults to 60." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "tool": { "label": "ACE Music cover audio", "description": "Cover one owned platform audio track using the supplied lyrics and style.", "input": [{ "name": "audio_id", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 20000 } }, { "name": "lyric", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "style", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "title", "required": false, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "audio_influence", "required": false, "schema": { "type": "number", "minimum": 1, "maximum": 100, "default": 60 } }] }, "fixed": { "action": "cover", "model": "acemusic-v1.1" }, "parameters": [{ "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" }, "description": "Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected." }] },
11
+ "acemusic_mashup_audio": { "method": "POST", "path": "/acemusic/audios", "operation": "mashup_audio", "schema": { "type": "object", "additionalProperties": false, "properties": { "mashup_audio_ids": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 20000 }, "minItems": 2, "maxItems": 2, "uniqueItems": true, "description": "Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other." }, "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "audio_influence": { "type": "number", "minimum": 1, "maximum": 100, "default": 60, "description": "Audio reference strength for cover and mashup. Defaults to 60." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "required": ["mashup_audio_ids", "lyric", "style"] }, "properties": { "mashup_audio_ids": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 20000 }, "minItems": 2, "maxItems": 2, "uniqueItems": true, "description": "Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other." }, "lyric": { "type": "string", "description": "Lyrics for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "style": { "type": "string", "description": "Musical style for custom generation, cover or mashup.", "maxLength": 20000, "minLength": 1 }, "title": { "type": "string", "maxLength": 20000, "minLength": 1, "description": "Required for custom generation; optional for cover and mashup." }, "audio_influence": { "type": "number", "minimum": 1, "maximum": 100, "default": 60, "description": "Audio reference strength for cover and mashup. Defaults to 60." }, "action": { "type": "string", "enum": ["generate", "upload", "cover", "mashup"], "default": "generate", "description": "generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks." }, "model": { "type": "string", "enum": ["acemusic-v1.1", "acemusic-v1"], "default": "acemusic-v1.1", "description": "Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload." }, "async": { "type": "boolean", "default": true, "description": "Return a persistent task ID; query /acemusic/tasks for the result." } }, "tool": { "label": "ACE Music mashup audio", "description": "Blend exactly two different compatible owned platform tracks.", "input": [{ "name": "mashup_audio_ids", "required": true, "schema": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 20000 }, "minItems": 2, "maxItems": 2, "uniqueItems": true } }, { "name": "lyric", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "style", "required": true, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "title", "required": false, "schema": { "type": "string", "maxLength": 20000, "minLength": 1 } }, { "name": "audio_influence", "required": false, "schema": { "type": "number", "minimum": 1, "maximum": 100, "default": 60 } }] }, "fixed": { "action": "mashup", "model": "acemusic-v1.1" }, "parameters": [{ "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" }, "description": "Reuse the same key for the same creation request to retrieve its original task. A different payload with the same key is rejected." }] },
12
+ "acemusic_generate_lyrics": { "method": "POST", "path": "/acemusic/lyrics", "operation": "generate_lyrics", "schema": { "type": "object", "additionalProperties": false, "properties": { "prompt": { "type": "string", "minLength": 1, "maxLength": 20000 }, "style": { "type": "string", "maxLength": 20000 } }, "required": ["prompt"] }, "properties": { "prompt": { "type": "string", "minLength": 1, "maxLength": 20000 }, "style": { "type": "string", "maxLength": 20000 } }, "tool": { "label": "ACE Music generate lyrics", "description": "Generate a separate lyric draft; retain the original task ID if processing continues.", "input": [{ "name": "prompt", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 20000 } }, { "name": "style", "required": false, "schema": { "type": "string", "maxLength": 20000 } }] } },
13
+ "acemusic_task_retrieve": { "method": "POST", "path": "/acemusic/tasks", "operation": "task", "schema": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "required": ["id"] }, "properties": { "id": { "type": "string" }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "tool": { "label": "ACE Music task retrieve", "description": "Retrieve the original ACE Music task by task ID.", "input": [{ "name": "task_id", "required": true, "schema": { "type": "string" } }] }, "fixed": { "action": "retrieve" }, "read_only": true },
14
+ "acemusic_task_batch": { "method": "POST", "path": "/acemusic/tasks", "operation": "batch", "schema": { "type": "object", "additionalProperties": false, "properties": { "ids": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 100 }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "required": ["ids"] }, "properties": { "ids": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 100 }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "tool": { "label": "ACE Music task batch", "description": "Look up a batch of original ACE Music tasks.", "input": [{ "name": "ids", "required": true, "schema": { "type": "array", "items": { "type": "string" }, "minItems": 1, "maxItems": 100 } }] }, "fixed": { "action": "retrieve_batch" }, "read_only": true },
15
+ "acemusic_task_list": { "method": "POST", "path": "/acemusic/tasks", "operation": "task_list", "schema": { "type": "object", "additionalProperties": false, "properties": { "page": { "type": "integer", "minimum": 1, "default": 1, "maximum": 10001 }, "page_size": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "type": { "type": "string", "enum": ["audios", "lyrics"], "description": "Optional history type filter." }, "created_at_min": { "type": "number", "minimum": 0, "description": "Inclusive creation-time lower bound, Unix seconds." }, "created_at_max": { "type": "number", "minimum": 0, "description": "Inclusive creation-time upper bound, Unix seconds." }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "required": [] }, "properties": { "page": { "type": "integer", "minimum": 1, "default": 1, "maximum": 10001 }, "page_size": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "type": { "type": "string", "enum": ["audios", "lyrics"], "description": "Optional history type filter." }, "created_at_min": { "type": "number", "minimum": 0, "description": "Inclusive creation-time lower bound, Unix seconds." }, "created_at_max": { "type": "number", "minimum": 0, "description": "Inclusive creation-time upper bound, Unix seconds." }, "action": { "type": "string", "enum": ["retrieve", "retrieve_batch", "list"] } }, "tool": { "label": "ACE Music task list", "description": "List the caller’s ACE Music task history.", "input": [{ "name": "page", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "maximum": 10001 } }, { "name": "page_size", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 } }, { "name": "type", "required": false, "schema": { "type": "string", "enum": ["audios", "lyrics"] } }, { "name": "created_at_min", "required": false, "schema": { "type": "number", "minimum": 0 } }, { "name": "created_at_max", "required": false, "schema": { "type": "number", "minimum": 0 } }] }, "fixed": { "action": "list" }, "read_only": true }
16
+ }
17
+ }