Skip to main content

Ace Data Cloud for LangChain

A named ChatAceDataCloud chat model and five separately installable service toolkits: Suno, Seedance, HappyHorse, GPT Image and Nano Banana by Ace Data Cloud. This project is maintained by Ace Data Cloud; it is not an official client of those service brands.

简体中文 · Privacy · Source

Stable release preparation: the native integration source is merged on main. Version 0.1.0 is being prepared for all six packages; verify release status for actual uploaded versions. Existing 0.1.0rc1 packages are historical prereleases. Package publication and official LangChain directory approval are separate gates. No new graphical chat button or upstream default-provider registration is claimed.

Install only the integration you need

Use Python 3.10+ in a virtual environment. Each service package installs only its own tool classes plus the shared runtime, not the other four services.

Integration Package / official registry destination Guide
Ace chat model langchain-acedatacloud Chat model
Suno by Ace Data Cloud langchain-suno-acedatacloud suno
Seedance by Ace Data Cloud langchain-seedance-acedatacloud seedance
HappyHorse by Ace Data Cloud langchain-happyhorse-acedatacloud happyhorse
GPT Image by Ace Data Cloud langchain-gpt-image-acedatacloud gpt-image
Nano Banana by Ace Data Cloud langchain-nano-banana-acedatacloud nano-banana
python3 -m venv .venv
source .venv/bin/activate
# Stable version (after registry readback):
python -m pip install langchain-acedatacloud==0.1.0
# Or one service:
python -m pip install langchain-happyhorse-acedatacloud==0.1.0

For source installation, run git clone --branch main https://github.com/AceDataCloud/LangChain.git, cd LangChain, then pip install -e packages/core -e packages/suno. Package artifacts are not proof of official listing.

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 historical create-key image says Dify tutorial; name the actual key LangChain <service>. 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.

Chat without a custom base URL

from langchain_acedatacloud import ChatAceDataCloud

model = ChatAceDataCloud(model="gpt-4o-mini")
reply = model.invoke("Reply in one short sentence.")  # One paid API request.
print(reply.content)
print(reply.usage_metadata)  # Token counts, not charged Credits.

The named class owns Ace credential and endpoint defaults. Standard chat, async, stream and tool binding reuse LangChain's OpenAI protocol implementation. It fixes Chat Completions mode, disables automatic retries by default, and identifies traces as acedatacloud. Model-specific capabilities still depend on the selected model. For stream token counts use stream_usage=True only where supported.

Use model.bind_tools([...]), execute a returned local tool, and supply ToolMessage to complete a tool loop. Each model invocation may be charged; a tool selection plus final answer normally means two calls. This does not mean init_chat_model(model_provider="acedatacloud") is built into the upstream release. A maintainer-approved provider-registry entry is a separate goal.

Add a single service to an agent

from langchain_acedatacloud import AceAPIClient
from langchain_suno_acedatacloud import SunoToolkit

# Query-only by default: enabling a toolkit must not silently enable paid generation.
tools = SunoToolkit(client=AceAPIClient()).get_tools()
print([tool.name for tool in tools])
# ['suno_retrieve_task']

An application deliberately enables generation with include_generation=True after showing current prices and obtaining its user's authorization. Pass those BaseTool instances to your LangChain agent or invoke them directly. The client credential is not part of the LLM tool schema.

Asynchronous results and billing

One generation-tool invocation submits one request with async=true, returns a task ID, and does not loop or retry. Query tools call the service's task endpoint with the same ID. A successful submission or preview URL is not terminal completion. The normalized result exposes terminal and status; a pending result must be queried again later, never regenerated merely to poll. Media URLs are exposed as final only after finished_at; raw API data remains available for diagnosis. The tools do not download remote media.

Inspect Usage History for actual Credits and uncertain submissions. Token counts and package downloads are not revenue. No integration test is configured to issue paid calls in CI.

Troubleshooting

Result What to check
401 / missing key Use the raw application API Key and ACEDATACLOUD_API_TOKEN.
403 Service access, balance, expiry, usage/API restrictions and response policy details.
429 Reduce concurrency; no automatic paid retry is performed.
Pending / empty media Query the same task ID; do not resubmit generation.
Timeout / 5xx Check original task and Usage History before deciding on another paid request.
Unsupported provider in init_chat_model Import ChatAceDataCloud directly; upstream default-provider registration is not claimed.

Development and contribution

pip install -r requirements-dev.txt
pip install -e packages/core
pip install --no-deps -e packages/suno -e packages/seedance -e packages/happyhorse -e packages/gpt-image -e packages/nano-banana
python scripts/check_packages.py
ruff check .
ruff format --check .
pytest
python scripts/build_packages.py
python -m twine check dist/*

The repository is a single source for shared transport/task behavior. Packages have independent identities, service names, schemas and listing materials. The LangChain integration process requires published packages and a listing issue; see submissions/ for reviewable forms. No unsolicited manual listing PR or promotional message is sent.

Official requests (2026-10-18)

These are submissions, not approved entries: ChatAceDataCloud, HappyHorse by Ace Data Cloud, GPT Image by Ace Data Cloud, Nano Banana by Ace Data Cloud. The native default-provider request was automatically closed because programmatic submission is disallowed; it needs the official web template. No API resubmission or issue-type workaround is used. Suno and Seedance listing forms are submitted only after their public package installation is verified.

Metadata

Release files for langchain-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-acedatacloud 0.1.0
File Size Uploaded
langchain_acedatacloud-0.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

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

Total release size: 18.2 kB

Release files / langchain_acedatacloud-0.1.0.tar.gz

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

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

Download URL langchain_acedatacloud-0.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d574be881aa9155cbe7cc5476f6c01dbeaf0fc1746edb53d39b63ad5a3dd72b0
BLAKE2b-256 checksum
How to use checksums
74f3731387c61fcf105e261a8a3f17a88a6adbab1dc828c45e581eb92c71a96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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