Docs/Getting Started

Quick Start

Get an API key, make your first request, and start building — in about 5 minutes.

You need two things: an API key and one HTTP request. That's it.

  1. 1
    Create an API key

    In your dashboard, open Developer → API Keys and click Create key. Copy it right away and keep it somewhere safe: it's only shown once.

  2. 2
    Make your first request

    Send a chat message with cURL, JavaScript or Python. Replace YOUR_API_KEY with the key you just copied.

  3. 3
    Watch it arrive

    Open Monitor → Activity in the dashboard. Every request shows up there in real time, with its model, tokens and latency.

Your first request

curl -X POST "https://api.tarqaai.com/api/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-6",
    "messages": [{"role": "user", "content": "Hello, TarqaAI!"}]
  }'

You'll get back a standard chat completion:

200 OK
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1751760000,
  "model": "claude-opus-4-6",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "Hello! I'm TarqaAI, your unified AI gateway..."
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 14,
    "completion_tokens": 32,
    "total_tokens": 46
  }
}
Try another model

Change "model" to any model in your dashboard's Models page, for example a Gemini or Llama model. Nothing else in the request needs to change.

Next steps