1. Get API KEY
Before calling the API, you need to get TT-API-KEY for identity authentication. Here’s how to get it:Step 1: Register Your Account
Register Your Account
Register Your Account
Open the TTAPI Official Website, click SIGN IN in the top right corner, or directly open the TTAPI Dashboard login page and choose to register/login with Github or Google account.
KEY and Quota
KEY and Quota
- After successful registration, you will receive an official TTAPI email notification and be redirected to the Dashboard homepage. A TT-API-KEY will be generated by default, which will be used for authentication in all TTAPI interface authentication
- You will also receive a default trial quota of 30 quota (≈$0.3), and the current remaining quota will be displayed on the page
Step 2: Use Your Account
Reset Your TT-API-KEY
Reset Your TT-API-KEY
We recommend changing your default TT-API-KEY before first use. Click “RESET” on the dashboard homepage, confirm and submit to change your default KEY
Change Your Account Password
Change Your Account Password
If you don’t want to use Github or Google one-click login in the future, you can click “Forgot Password?” on the login page and reset your login password using the verification code sent to your registered email. Later you can login with your account password
2. Set Request Headers
All API requests must include TT-API-KEY in the request header for authentication.3. Send Your First Request
Step 1: Send Generation Request
Below is a simple image generation API call example.Response Example
Step 2: Check Task Status
Query the generation result using the task ID (jobId) returned in step 1:Response Example
Task Status Explanation
PENDING_QUEUE | Task is waiting in queue |
ON_QUEUE | Task is being processed |
SUCCESS | Task completed successfully |
FAILED | Task execution failed |
Help and Notes
- If you have questions about product queue limits and usage, please refer to the relevant sections in FAQ
- For other undocumented questions, please contact technical support
