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

# API Introduction

> TensorAI API - Build powerful AI applications

## Welcome to TensorAI API

TensorAI provides powerful APIs for AI-powered image and video generation. Our APIs enable you to integrate cutting-edge AI capabilities into your applications.

## Available APIs

<CardGroup cols={2}>
  <Card title="Image API" icon="image" href="/api-reference/image/introduction">
    Generate images with text-to-image and image-to-image models including SeeDream V4.0, V4.5, V5.0 and Z-Image.
  </Card>

  <Card title="Video API" icon="video" href="/api-reference/video/introduction">
    Create professional videos with SeeDance models supporting text-to-video and image-to-video.
  </Card>
</CardGroup>

## Authentication

All API endpoints require authentication using Bearer tokens. Include your API key in the request header:

```json theme={null}
"Authorization": "Bearer YOUR_API_KEY"
```

<Note>
  You can generate API keys from the [TensorAI Console](https://tensorai.tensorslab.com/).
</Note>

## Rate Limits

API usage is based on credits. Each model has different credit consumption rates:

| Model                                                                            | Type       | Points per Generation |
| -------------------------------------------------------------------------------- | ---------- | --------------------- |
| SeeDream V4.0                                                                    | Image      | 240 points            |
| SeeDream V4.5                                                                    | Image      | 380 points            |
| SeeDream V5.0 Lite                                                               | Image      | 500 points            |
| Z-Image                                                                          | Image      | 100 points            |
| SeeDance 1.0 Lite                                                                | Video (5s) | from 720 points       |
| SeeDance 1.5 Pro                                                                 | Video (5s) | from 540 points       |
| SeeDance 2.0                                                                     | Video (5s) | from 4000 points      |
| SeeDance 2.0 Fast                                                                | Video (5s) | from 3200 points      |
| *Note: The actual credit consumption displayed during generation shall prevail.* |            |                       |

## Quick Start

1. **Get your API key** from the TensorAI console
2. **Choose a model** based on your requirements
3. **Make API requests** using the endpoints documented below

<Card title="View Image API" icon="image" href="/api-reference/image/introduction">
  Explore Image API endpoints
</Card>

<Card title="View Video API" icon="video" href="/api-reference/video/introduction">
  Explore Video API endpoints
</Card>
