Skip to main content

Get Your API Key

Visit the CTGT Dashboard to get your API key and start building

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

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?