Back to Dashboard
Adaptive TTS API

Access our Test-Time Scaling benchmark service to evaluate model performance and optimize AI inference costs.

Base URL: https://us-central1-unified-analytix.cloudfunctions.net

Quick Start Guide

Get up and running with the Adaptive TTS API in under 5 minutes:

Step 1: Get Your API Key

Visit the API Management page to generate your API key.

POST /generateApiKey { "companyId": "company_123", "companyName": "Acme Corp", "planType": "professional" }
Step 2: Set Up Stripe Subscription

Create a subscription for usage-based billing.

POST /createAdaptiveTtsSubscription { "companyId": "company_123", "paymentMethodId": "pm_1234567890", "planType": "professional" }
Step 3: Make Your First API Call

Run a comprehensive TTS benchmark.

curl -X POST https://us-central1-unified-analytix.cloudfunctions.net/adaptiveTtsApi \ -H "X-API-Key: uat_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "modelConfig": {"model": "3B", "temperature": 0.7}, "testType": "comprehensive" }'
Step 4: Monitor Your Usage

Check your API usage and billing on the Usage Dashboard.

Authentication

All API requests require authentication using API keys. Include your API key in the header:

X-API-Key: uat_your_api_key_here Content-Type: application/json
API Endpoints

Run Adaptive TTS Benchmark

POST
/adaptiveTtsApi

Execute a comprehensive TTS benchmark test with various strategies.

Request Body
{ "modelConfig": { "model": "3B", "temperature": 0.7 }, "testType": "comprehensive" }
Parameters
  • modelConfig.model - Model size (1B, 3B, 7B, 70B, 405B)
  • modelConfig.temperature - Sampling temperature (0.1-1.0)
  • testType - Test type (comprehensive, strategy, difficulty)

Generate API Key

POST
/generateApiKey

Generate a new API key for your company.

Get API Usage Statistics

GET
/getApiUsageStats

Retrieve usage statistics and billing information.

Usage-Based Billing

API usage is tracked and billed through Stripe usage meters:

Base Unit
1 per test
7B Model
2x multiplier
70B Model
10x multiplier
405B Model
50x multiplier

Price ID: price_1TK5nSE2MtcX3EsOGGuu2wE0

Product ID: prod_UIhBmiUBzcUACH