> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenkit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Access specialized AI models designed for specific use cases through a developer-friendly REST API

<img className="block dark:hidden rounded-2xl" src="https://static.tokenkit.co/docs/light-bg.png" alt="Hero Light" />

<img className="hidden dark:block rounded-2xl" src="https://static.tokenkit.co/docs/dark-bg.png" alt="Hero Dark" />

## What is TokenKit?

TokenKit is an applied AI lab focused on agentic image generation. We build agents and tools on top of leading foundation models, helping businesses unlock custom capabilities through tailored solutions while also offering general-purpose API access for developers.

## Key Features

* **Agentic Image Generation** - Agents and tools built on top of state-of-the-art models for real-world image use cases
* **Simple REST API** - Straightforward HTTP requests with JSON responses
* **Asynchronous Processing** - All jobs are processed asynchronously with real-time status updates
* **Credit-Based Pricing** - Pay only for what you use with transparent, per-request pricing
* **Production Ready** - Built for scale with rate limiting, error handling, and comprehensive documentation

## Getting Started

Everything you need to start making requests to TokenKit:

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Make your first API request in minutes
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Learn about API keys and securing your requests
  </Card>

  <Card title="Credits & Pricing" icon="credit-card" href="/credits-pricing">
    Understand the credit system and pricing
  </Card>

  <Card title="Rate Limits" icon="gauge" href="/usage-limits">
    Learn about request limits and how to manage them
  </Card>
</CardGroup>

## API Essentials

### Base URL

All API endpoints use the following base URL:

```bash theme={null}
https://api.tokenkit.co/v2
```

### Authentication

Include your API key in the `Authorization` header with the `Bearer` scheme:

```http theme={null}
Authorization: Bearer sk_live_v1_your_key_here
```

### Response Format

All API responses follow a consistent envelope structure:

```json theme={null}
{
  "data": {
    // Response payload
  },
  "errors": null
}
```

When errors occur, the response includes error details:

```json theme={null}
{
  "data": null,
  "errors": [
    {
      "code": "ERROR_CODE",
      "message": "Human-readable error message"
    }
  ]
}
```
