Skip to main content

Suno by Ace Data Cloud for LangChain

suno integration icon

Install langchain-suno-acedatacloud to give a LangChain application typed Suno by Ace Data Cloud tools. This is an Ace-provided integration, not an official client of the service brand. It does not install the other four service modules. 中文 · Privacy.

1. Install

Official registry destination: PyPI langchain-suno-acedatacloud. Source is merged on main. Version 0.1.0 is the stable release target; check release status for actual publication before installing. LangChain official directory approval is separate.

python3 -m venv .venv
source .venv/bin/activate
python -m pip install langchain-suno-acedatacloud==0.1.0

For source installation: git clone --branch main https://github.com/AceDataCloud/LangChain.git, cd LangChain, then pip install -e packages/core -e packages/suno.

Get the application API Key

  1. Register or sign in → Applications. If no General application exists, choose Initialize General Application.
  2. Open the General application. Copy its API Key, or choose Manage Keys → Create to make a separately named LangChain key. Review expiration, usage limitations and Allowed APIs. Allow both the generation and same-ID task query paths used below. Confirm service access, balance and current pricing. No trial allowance is promised.
  3. Copy the raw token only, without Bearer , quotation marks or redacted characters. A platform-... account-management token cannot replace this application key.

Copy the redacted application API Key or open Manage Keys

Create a separately named key with optional restrictions

The credential name Dify tutorial in the historical create-key image is illustrative; name the actual key LangChain Suno. These are real Ace console screenshots reused from SunoDify, retrieved 2026-10-18; later console layouts may differ. They show credential setup, not a LangChain GUI. Real tokens are redacted.

export ACEDATACLOUD_API_TOKEN='your application key'

PowerShell: $env:ACEDATACLOUD_API_TOKEN='your application key'. Keep the token in the environment or secret manager, never in a prompt or workflow export.

2. Put the key in the client, not in model arguments

from langchain_acedatacloud import AceAPIClient
from langchain_suno_acedatacloud import SunoToolkit

# No network requests: instantiate tools and inspect their names/schemas.
kit = SunoToolkit(client=AceAPIClient())
tools = kit.get_tools()  # Query-only by default.
print([tool.name for tool in tools])

There is no service-provider selection GUI in this package. Supply these LangChain BaseTool objects to your application or agent. Screenshots of another host's plugin authorization are not instructions for this Python integration.

3. First use, then query the same ID

After reviewing current service prices and deliberately authorizing one generation:

kit = SunoToolkit(client=AceAPIClient(), include_generation=True)
generate, retrieve = kit.get_tools()
# This line submits one paid generation if you choose to run it:
submitted = generate.invoke({"prompt": "A short gentle instrumental piano melody for sunrise."})
task_id = submitted["task_id"]
# Query the original ID; never call generate again just to wait:
result = retrieve.invoke({"task_id": task_id})
print(result["status"], result["terminal"], result["media_urls"])

suno_generate_audio submits one asynchronous request to /suno/audios. suno_retrieve_task calls /suno/tasks with action=retrieve and the original id. A pending result is normal. Query that ID later until terminal=true; then inspect success/failure and final media URLs. The example shape is illustrative, not an actual paid result. Advanced edit/extend actions are not exposed in this initial toolkit.

Troubleshooting and cost

401: raw Key or token environment; 403: permissions, balance, expiry, Allowed APIs and response details; 429: reduce concurrency. For pending or a timeout, inspect the same task before any new submission. No automatic retries or hidden polling are performed. Usage History owns actual Credits. Avoid printing credentials or sending them to a model.

Metadata

Release files for langchain-suno-acedatacloud 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-suno-acedatacloud 0.1.0
File Size Uploaded Provenance Actions
langchain_suno_acedatacloud-0.1.0.tar.gz 11.2 kB Without provenance Details for langchain_suno_acedatacloud-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-suno-acedatacloud 0.1.0
File Interpreter ABI Platform Actions
langchain_suno_acedatacloud-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_suno_acedatacloud-0.1.0-py3-none-any.whl

Total release size: 16.5 kB

Release files / langchain_suno_acedatacloud-0.1.0.tar.gz

Download URL langchain_suno_acedatacloud-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
542f706dccf30099593ec1919ef8a94d475b7ebb930b7238c36580734377077e
BLAKE2b-256 checksum
How to use checksums
3c261cdc23035f2f6fbd56f5e5ae17d587ebd8664bfed4bd0d828d95e7809de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / langchain_suno_acedatacloud-0.1.0-py3-none-any.whl

Download URL langchain_suno_acedatacloud-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b02d1a09a1e69a56c73091bed67c44ca3a842d148f700cdf76a1d177f9d9752
BLAKE2b-256 checksum
How to use checksums
3996363ef4aa8dc45a897cd6e3f6b4fdc9ca810702b7454ee1c884b018c25420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for langchain-suno-acedatacloud 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page