How Do You Find the 3D Hunyuan API Key? 7 Easy Steps to Get and Use It
If you’re searching for the 3D Hunyuan API key, there’s one thing to know first. Tencent doesn’t issue a standalone key just for its 3D models. You use your Tencent Cloud account credentials, and this guide shows where to find them, how to generate them, and how to use them with the Hunyuan 3D API.
Table of Contents

What Is the Hunyuan API credentials?
In Tencent Cloud, an API „key“ is a pair of credentials called SecretId and SecretKey. The SecretId works like a username and identifies who is calling the API, while the SecretKey works like a password and verifies that identity. Together they let you call Tencent HY 3D Global (the current name for Hunyuan 3D) to generate 3D models from text prompts or images. tencentcloudtencentcloud
Where to Find Your Hunyuan API credentials
Access the 3D.Hunyuan.Tencent Platform
The API is a Tencent Cloud service, so the credentials live in the Tencent Cloud console rather than on a separate 3D site. First sign up for a Tencent Cloud account and complete real-name authentication. tencentcloud
Sign In to Your Tencent Account
Log in to the Tencent HY console, accept the terms of service, and click to activate the service. Activating it for the first time also grants a one-time free quota for testing. tencentcloudtencentcloud
Locate Your API Key Settings
Open the CAM (Cloud Access Management) console, go to Access Key, then API Keys. That page is where every key lives, and it’s the only place to manage them. tencentcloud
How to Get Your Hunyuan API credentials Step by Step
Create or Access Your API Credentials
With a root account, click Create Key on the API Keys page. Sub-users can have their own keys, created from their user details page under API Keys. A sub-account can only use the service after the primary account has authorized it. The policy to attach is QcloudAI3DFullAccess. tencent cloud +3
Generate and Copy Your Hunyuan API credentials
After you click Create Key, a window shows the new SecretId and SecretKey. Copy both before closing it. tencentcloud
Save Your API Key Securely
This step matters most. Since November 30, 2023, Tencent no longer lets you look up a SecretKey after creation. If you lose it, you have to delete the key and create a new one. Put it in a password manager or secrets vault straight away. tencentcloud
How to Use Your Hunyuan API credentials for 3D Models
Connect to the Hunyuan 3D API
Tencent publishes the Hunyuan 3D APIs in its API documentation, and requests are signed with your SecretId and SecretKey. The official SDKs handle the signing for you. For a quick test with no code, use the API Explorer in the console. tencentcloud
Generate 3D Models Using Your API Key
The Professional edition is asynchronous, so you make two calls. First, SubmitHunyuanTo3DProJob takes your text prompt or image and returns a JobId. Then QueryHunyuanTo3DProJob uses that JobId to check progress. tencentcloud
The status is WAIT, RUN, FAIL or DONE. Keep polling while it’s WAIT or RUN. When it’s DONE, your model files are in the ResultFile3Ds field. If it’s FAIL, ErrorCode and ErrorMessage explain why. tencentcloudtencentcloud
Other route: you can also reach Tencent’s Hunyuan 3D models through Comfy Router, using a key created at platform.comfy.org. That’s a separate key from the Tencent Cloud pair above. comfy
Common Hunyuan API credentials Problems and Solutions
- Lost SecretKey: it can’t be recovered. Delete the key and create a new one. tencentcloud
- Sub-account access denied: the primary account must authorize the sub-account and attach the 3D access policy.
- Service not activated: activate Tencent HY in the console before calling the API.
- Calls stop working after testing: the free package expires after one year, and it doesn’t switch to postpaid automatically. Enable postpaid under Settings > Postpaid Settings in the Tencent HY console. tencenttencentcloud
- Requests rejected: input text and images are moderated by default, so non-compliant content is blocked. Check the error code in the response. tencentcloud
- Too many parallel jobs: the Professional API has a default limit of 3 concurrent tasks. tencentcloud
How to Keep Your Hunyuan API credentials Secure
- Never hardcode the key in source code, and keep it out of public repositories. Use environment variables or a secrets manager.
- Use a sub-account with only the permissions you need instead of your root credentials.
- Rotate and disable. Disabling a key blocks all requests that use it. Each account can have at most two key pairs, so you can swap one in while retiring the other. tencentcloudtencentcloud
- Watch the Last Access Time. The key page shows when each key was last used. Unexpected activity means you should disable the key. tencentcloud
Frequently Asked Questions About the Hunyuan API credentials
Is the Hunyuan API credentials Free?
Creating a key costs nothing, but usage isn’t free past the trial. New activations get a one-time free package, valid for one year, of 200 credits per user for the Professional API. A default text- or image-to-3D call uses 25 credits. That’s about eight test generations. Postpaid usage is priced at 0.02 USD per credit. Failed calls aren’t charged. Free Credit +3
Can I Generate 3D Models with the Hunyuan API?
Yes. You submit a prompt or image and get back a 3D result file. Tencent also offers related APIs for part generation, smart topology, texture editing, UV unfolding, auto rigging and format conversion. tencentcloudtencentcloud
What Should I Do If My Hunyuan API credentials Does Not Work?
Work through these checks in order:
- Confirm you copied the SecretId and SecretKey correctly.
- Make sure the key hasn’t been disabled or deleted in the CAM console.
- Check that Tencent HY is activated and, for sub-accounts, that the 3D policy is attached.
- Check your remaining credits and whether postpaid is on.
- Read the ErrorCode and ErrorMessage in the response.
If none of that helps, create a new key and contact Tencent Cloud support.
Before You Create a Tencent Cloud API Key
Before creating a Hunyuan API credentials, make sure you are signed in to the correct Tencent Cloud account. This matters if you manage more than one cloud account or work inside an organization. The SecretId and SecretKey belong to an account or sub-user, not to a particular 3D model file. Treat them as account credentials and grant only the permissions required for the Hunyuan 3D service.
You should also confirm that the Hunyuan 3D service is available for your account and region. Product names, console menus, supported regions, quotas, and API versions can change. If a menu in this guide looks different from your console, use the current Tencent Cloud documentation linked above rather than creating credentials in an unrelated service.
SecretId vs. SecretKey: What Is the Difference?

When people search for a Tencent Cloud API key, they often expect one long token. Tencent Cloud key authentication normally uses two values. The SecretId identifies the credential, while the SecretKey is the secret used to sign requests. Both values are needed by the Tencent Cloud authentication process. A SecretId by itself is not enough to authorize a request, and the SecretKey must never be shared publicly. When configuring a 3D Hunyuan API Key, keep this credential pair together in your secure server configuration.
- SecretId: the identifier for the access-key pair. It is not a password, but should still be handled carefully.
- SecretKey: the private signing secret. Store it securely and do not paste it into public code, screenshots, support forums, or browser-side scripts.
- API permissions: the access policy assigned to the account determines which cloud services and actions the credential can use.
If an application asks for an API key and a secret separately, check its Tencent Cloud integration instructions to see whether it expects SecretId and SecretKey. Do not paste both values into a single field unless the application explicitly documents that format.
How to Create a Key with Safer Permissions
For a personal test, you may be able to use the credentials associated with your main Tencent Cloud account. A production 3D Hunyuan API Key should instead belong to a dedicated application user with limited permissions. For a production application, a dedicated sub-user is usually a safer choice. It separates the application from your main account and makes it easier to revoke access without disrupting unrelated cloud services.
- Open Tencent Cloud CAM and review the users already configured for your account.
- Create or select a dedicated sub-user for the application that will call Hunyuan 3D.
- Grant the minimum policy required by the current Hunyuan 3D documentation. Do not attach broad administrator permissions just to make a test pass.
- Create an access-key pair for that user and copy the SecretId and SecretKey when they are displayed.
- Store the pair in a server-side secret manager or protected environment variables.
- Make a small test request and confirm that the response belongs to the expected Tencent Cloud account and service.
Policy names and permissions can be revised by Tencent. Confirm the current policy name and required actions in the official Hunyuan 3D documentation before applying permissions. If you receive an authorization error, check the user, policy, service activation, and region before generating another key.
Using the Hunyuan 3D API: Request and Job Workflow

Once authentication is configured, the application can send a supported text prompt or image to a Hunyuan 3D endpoint. Your 3D Hunyuan API Key authenticates the request, while the selected endpoint and model determine the generation workflow. The exact request fields depend on the model and API version, so use the current API reference for required parameters, accepted image formats, file limits, and output options. Avoid copying an old request example without checking that it matches the endpoint enabled for your account.
For an asynchronous generation workflow, the process generally has two stages:
- Submit a generation job. Send the prompt or image with the required model settings. If the request is accepted, the service returns a job identifier such as a JobId.
- Check the job status. Use the job identifier with the matching query operation to check whether processing is waiting, running, complete, or failed.
- Retrieve the result. When the job is complete, read the result fields returned by the API and download the model output using the provided result location while it remains valid.
- Handle failures. If the job fails, log the returned error code and message, correct the input or permissions, and submit a new job only when appropriate.
Do not repeatedly submit the same generation request just because the first job is still processing. Poll the status endpoint at a sensible interval and follow Tencent’s current rate limits. This avoids unnecessary jobs and makes it easier to track which result belongs to each prompt.
Where Should You Store Your Tencent Cloud API Credentials?

Keep the SecretKey on a trusted server, not in front-end JavaScript, a public Git repository, a downloadable project file, or a mobile application package. This is the safest way to use a 3D Hunyuan API Key in a website or production application. Anything shipped to a user’s browser or device can potentially be extracted. If a website needs to call Hunyuan 3D, send the request through a protected backend that reads the credential from its environment.
- Use environment variables or a managed secrets service for server-side applications.
- Restrict access to production secrets to the people and services that need them.
- Use separate credentials for development, testing, and production where practical.
- Do not write SecretKey values into application logs or error reports.
- Review key activity and disable a credential immediately if you suspect exposure.
- Rotate credentials carefully, test the replacement, and then revoke the old key.
If a key has appeared in a public repository or a screenshot, assume it is compromised. Disable or delete it in Tencent Cloud, create a replacement, update the server-side secret, and review recent activity. Merely deleting the visible text from a page or commit does not make an exposed secret safe again.
How to Troubleshoot Common Authentication Errors
An API request can fail even when the SecretId and SecretKey look correct. If your 3D Hunyuan API Key is rejected, inspect the response code before creating replacement credentials. Check the error response and work through the likely causes in a consistent order instead of repeatedly creating new keys.
- Invalid signature or authentication failure: check that the SecretId and SecretKey belong together, that neither has been changed by whitespace or encoding, and that the SDK or signing method matches the API documentation.
- Permission denied: confirm that the calling user has the current Hunyuan 3D policy and that the requested action is included in its permissions.
- Service unavailable or not activated: verify service activation, account eligibility, and the region or endpoint used by the request.
- Quota or billing error: review remaining trial credits, account spending limits, and postpaid settings in the Tencent Cloud console.
- Request parameter error: compare the submitted fields, prompt, image format, and model options with the current API reference.
- Job timeout or failure: query the job status and inspect the returned error details. A slow job is not necessarily an authentication problem.
For support requests, share the request ID, timestamp, API action, region, and error code where appropriate. Never send your SecretKey or a complete signed authorization header to a public forum or support conversation.
Is the Tencent Hunyuan 3D API the Same as a Third-Party API Key?
No. A key created in Tencent Cloud CAM is different from a credential issued by a third-party gateway or model-routing platform. Check which provider issued your 3D Hunyuan API Key before configuring the endpoint. A third-party service may provide its own endpoint, account, billing, and API token even when it gives access to a Tencent model. Use the credential issued by the provider whose endpoint your application actually calls. A Tencent Cloud SecretId and SecretKey will not automatically authenticate with an unrelated gateway.
Before choosing a provider, compare the supported Hunyuan model versions, input and output formats, rate limits, pricing, data handling terms, and service availability. Keep each provider’s credentials separate so you can identify which account is being billed and revoke access independently.
Final Checklist: Get Your Hunyuan API credentials Working
- You have signed in to the correct Tencent Cloud account.
- The Hunyuan 3D service is activated and available to the account.
- You created or selected the correct CAM user.
- The user has the permissions required by the current API documentation.
- You copied the matching SecretId and SecretKey and stored them securely.
- Your application uses the correct endpoint, region, API version, and request format.
- You can submit a test job and retrieve its status without exposing the secret.
- You have checked quotas, billing settings, and the service’s current limits.
Following this checklist should help you identify whether the issue is with the Hunyuan API credentials, account permissions, service activation, or the API request itself. For exact command names, current pricing, and the latest supported parameters, always use Tencent Cloud’s official documentation because cloud services can change over time.
Related 3D Printing Resources
If your goal is to prepare files for a printer rather than build an API integration, you may prefer ready-to-print STL collections. Browse our 3D vehicle models and STL files or explore the dragon and dinosaur 3D model collection. These downloadable collections are separate from Tencent Hunyuan API access and do not require Tencent Cloud credentials.
For implementation details, always verify the current authentication method, API actions, supported regions, and request parameters in the official Tencent Hunyuan 3D API documentation. The Tencent Cloud CAM documentation is also useful when reviewing access keys and user permissions.