Skip to main content

ACE Music toolkit for LangChain

ACE Music

Look up a song group from an existing ACE Music task in a LangChain application. If your application should also submit new songs, enable the generation tool explicitly.

Install and configure

python -m pip install langchain-acemusic-acedatacloud

Create an application key with ACE Music access and load it into the ACEDATACLOUD_API_TOKEN environment variable. Keep the key outside prompts and source control.

Retrieve a task

import os

from langchain_acedatacloud import AceAPIClient
from langchain_acemusic_acedatacloud import AceMusicToolkit

toolkit = AceMusicToolkit(client=AceAPIClient())
(retrieve,) = toolkit.get_tools()
result = retrieve.invoke({"task_id": os.environ["ACE_MUSIC_TASK_ID"]})
print(result)

Use the original task ID for subsequent lookups. The result retains the raw task response, including partial track details. get_tools() exposes only acemusic_retrieve_task by default.

Set AceMusicToolkit(client=AceAPIClient(), include_generation=True) to add acemusic_generate_audio. Generation submits a paid operation. Choose acemusic-v1.1 (default) or acemusic-v1 and save the returned task ID before looking up the group. API contract · Current pricing

Metadata

Release files for langchain-acemusic-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-acemusic-acedatacloud 0.1.0
File Size Uploaded Provenance Actions
langchain_acemusic_acedatacloud-0.1.0.tar.gz 3.3 kB Without provenance Details for langchain_acemusic_acedatacloud-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.4 kB

Release files / langchain_acemusic_acedatacloud-0.1.0.tar.gz

Download URL langchain_acemusic_acedatacloud-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
043913bf5d30a5ef45d6e1cc12a31a01ea57b83a878733f13e9d9386876fa045
BLAKE2b-256 checksum
How to use checksums
5e37624e17a204f3b641d981465469d6b426da53f18dbc9cc7de874f9b8f9b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL langchain_acemusic_acedatacloud-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfae1ca489a3cc121a66847de74120f73afd7b018398663ff18c17aa80493c60
BLAKE2b-256 checksum
How to use checksums
65ff0c14187fcfba4c472373509d8e848e997b343a36da9d94a4a1a8b0bacebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for langchain-acemusic-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