Skip to main content

Quick Start

Get started with the CTGT API in 3 simple steps:
  1. Sign up and verify your email
  2. Get your API key
  3. Make your first request

Step 1: Create Your Account

Create your account with email verification:
curl -X POST https://api.ctgt.ai/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{
    "name": "John Doe",
    "email": "john@example.com",
    "organization": "Acme Corp"
  }'
Response:
{
  "message": "Account created successfully. Please check your email to verify your account.",
  "email": "john@example.com"
}

Step 2: Verify Your Email

Check your inbox for a verification email containing a link like:
https://api.ctgt.ai/v1/auth/verify?token=VERIFICATION_TOKEN
Click the link or make a GET request:
curl "https://api.ctgt.ai/v1/auth/verify?token=VERIFICATION_TOKEN"
Response:
{
  "message": "Email verified successfully!",
  "email": "john@example.com",
  "api_key": "sk-ctgt-abc123def456..."
}
Save your API key! You’ll need it for all API requests. Store it securely and never share it publicly.

Step 3: Make Your First Request

Now you can start making API requests using your API key:
curl -X POST https://api.ctgt.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-ctgt-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-2.5-flash",
    "messages": [
      {"role": "user", "content": "Hello! What can you help me with?"}
    ]
  }'
Response:
{
  "id": "chatcmpl-123",
  "object": "chat.completion",
  "created": 1702847123,
  "model": "gemini-2.5-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! I'm here to help you with a wide range of tasks..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 15,
    "completion_tokens": 42,
    "total_tokens": 57
  }
}

What’s Included with Free Tier

Upon signup, you immediately get access to:

3 Free Models

  • Gemini 2.5 Flash
  • Gemini 2.5 Flash Lite
  • Claude Haiku 4.5

Generous Rate Limits

  • 20 requests/minute
  • 100 requests/hour
  • 500 requests/day
  • 100K tokens/day

Pay-as-you-go Pricing

Only pay for what you use Starting at $0.30 per 1M tokens

Production Ready

Full API access Streaming support No credit card required

Next Steps


Authentication

All API requests require authentication using a Bearer token:
Authorization: Bearer YOUR_API_KEY
Your API key:
  • Starts with sk-ctgt-
  • Is unique to your account
  • Should be kept secure and never shared
  • Can be regenerated if compromised
Store your API key as an environment variable:
export CTGT_API_KEY="sk-ctgt-YOUR_API_KEY"

Base URL

All API endpoints are accessed through:
https://api.ctgt.ai

Need Help?