Skip to main content

1. Get your API key

Before you call any API, you need a TT-API-KEY.

Step 1: Create your account

Go to TTAPI or open the TTAPI Dashboard. You can sign in with GitHub or Google.
After your account is created, TTAPI generates a default TT-API-KEY. This key is used across all TTAPI endpoints.New accounts also receive 30 quota (about $0.30) in trial credit.

Step 2: Basic account setup

For security, we recommend rotating the default key before production use. You can reset it directly from the dashboard homepage.
If you do not want to rely on GitHub or Google login later, use Forgot password? on the login page and set a password for your TTAPI account.

2. Add the request header

All requests must include your API key in the header:

3. Send your first request

Step 1: Submit a generation request

The example below creates a Midjourney image task.

Sample response

Step 2: Fetch the task result

Use the returned jobId to poll the result:

Sample response

Task statuses

Need help?

Last modified on April 13, 2026