> For the complete documentation index, see [llms.txt](https://docs.apismart.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apismart.ai/welcome-to-apismart.md).

# Welcome to ApiSmart

Build with AI models for **text, image, and video** through one unified API platform.

ApiSmart gives developers a consistent way to access supported AI models, manage API credentials, monitor usage, and integrate AI capabilities into applications.

{% hint style="info" %}
**ApiSmart API**

Base URL: `https://gw.apismart.ai/v1`

Authentication: `Authorization: Bearer <your-api-key>`
{% endhint %}

***

### 🚀 Start Here

New to ApiSmart? Start with these three guides.

<table data-view="cards"><thead><tr><th></th><th data-type="content-ref"></th></tr></thead><tbody><tr><td><h4>Introduction to ApiSmart</h4><p>Learn what ApiSmart is, how the platform works, and what you can build with it.</p></td><td><a href="/pages/og7xHdHykSiCqF4VmKAd">/pages/og7xHdHykSiCqF4VmKAd</a></td></tr><tr><td><h4>Quick Start</h4><p>Create an API Key, find an available model, and make your first API request.   </p></td><td><a href="/pages/NrAxIPMcMo4udzqEgznk">/pages/NrAxIPMcMo4udzqEgznk</a></td></tr><tr><td><h4>API Keys</h4><p>Learn how API authentication works and how to create, manage, and secure your API Keys.</p></td><td><a href="/pages/JrxHx5k3KI8OwAGMqJKX">/pages/JrxHx5k3KI8OwAGMqJKX</a></td></tr></tbody></table>

***

### ⚡ Build with ApiSmart

Choose the API that matches what you want to build.

【GitBook 操作：插入 `Cards`，建议使用 3 张 Medium Cards，一行 3 张。每张 Card 可使用 GitBook 内置小图标】

<table data-view="cards"><thead><tr><th></th><th data-type="content-ref"></th></tr></thead><tbody><tr><td><h4>💬 Chat Completions API</h4><p>Build conversational AI, content generation, reasoning, and other text-based applications.</p><p><code>POST /v1/chat/completions</code></p></td><td><a href="/pages/56a52747d54863f8df67ff3ce908938888c69b66">/pages/56a52747d54863f8df67ff3ce908938888c69b66</a></td></tr><tr><td><h4>🖼️ Image Generation API</h4><p>Generate and transform images using text prompts, reference images, and supported image editing workflows.</p><p><code>POST /v1/images/generations</code></p></td><td><a href="/pages/d9d593aeabc52a165190bf8c93720491a4eb9682">/pages/d9d593aeabc52a165190bf8c93720491a4eb9682</a></td></tr><tr><td><h4>🎬 Video Generation API</h4><p>Create videos from text, images, video, audio, and supported multimodal references.</p><p><code>POST /v1/video/tasks</code></p></td><td><a href="/pages/xkMLmSAg3lrDyCZqsQWA">/pages/xkMLmSAg3lrDyCZqsQWA</a></td></tr></tbody></table>

***

### 🧩 Find the Right Model

Each API request uses a `model` ID to specify the model you want to call.

To retrieve the latest model list:

```bash
curl https://gw.apismart.ai/v1/models \
  -H "Authorization: Bearer <your-api-key>"
```

Use the returned `data[].id` value as the `model` parameter in supported API requests.

**Model IDs must match exactly.**

Pay attention to periods (`.`), hyphens (`-`), and version numbers when copying a model ID.

For model availability, model IDs, and pricing information, see [**Models and Model IDs**](/models-and-pricing/models-and-model-ids.md) and [**Model Pricing and Billing**](/models-and-pricing/model-pricing-and-billing.md).

***

### 📚 Explore the Documentation

Find guides for models, usage, SDKs, and troubleshooting.

【GitBook 操作：插入 4 张 Cards。建议使用 Large Cards，一行 2 张，共两行】

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-type="content-ref"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4>Models and Pricing</h4><p>Explore available models, model IDs, pricing, and billing methods.</p></td><td><a href="/pages/xqOHfSDQ72XkSfyl9VH6">/pages/xqOHfSDQ72XkSfyl9VH6</a></td><td><a href="/pages/umCOhqUVdqBImvg8rZeL">/pages/umCOhqUVdqBImvg8rZeL</a></td></tr><tr><td><h4>API Usage</h4><p>Review API activity, request usage, and associated costs.</p><p><strong>Link to:</strong> Usage Logs and Costs</p></td><td><a href="/pages/KPKIc0kT9fkLsTSKM9G9">/pages/KPKIc0kT9fkLsTSKM9G9</a></td><td></td></tr><tr><td><h4>SDKs and Migration</h4><p>Find practical integration examples for your preferred development environment.</p><p><strong>Available guides:</strong></p><ul><li>cURL</li><li>Python</li><li>JavaScript and TypeScript</li></ul></td><td></td><td><a href="/pages/c115c685925ecf5ef4d655a99b6fe8d334979cfd">/pages/c115c685925ecf5ef4d655a99b6fe8d334979cfd</a></td></tr><tr><td><h4>Troubleshooting</h4><p>Find solutions for common API integration and usage issues.</p><p><strong>Topics include:</strong></p><ul><li>HTTP status codes and API errors</li><li>API Key and authentication issues</li><li>Model and request errors</li><li>Balance and usage limits</li><li>Timeout and connection issues</li></ul></td><td></td><td></td></tr></tbody></table>

***

### 🔄 Understand Response Modes

Different ApiSmart APIs use different response patterns.

| API              | Response Mode            |
| ---------------- | ------------------------ |
| Chat Completions | Standard or streaming    |
| Image Generation | Synchronous or streaming |
| Video Generation | Asynchronous task        |

For implementation details, see **Response Modes**:

* Standard Responses
* Streaming Text Responses
* Streaming Image Responses
* Asynchronous Video Tasks

***

### ✅ Ready to Build?

You don't need to read the entire documentation before getting started.

{% hint style="success" %}
**Make your first API request**

Continue to [**Quick Start**](/welcome-to-apismart/quick-start.md) to create an API Key, choose a model, and send your first request.
{% endhint %}
