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

# Seedance 2.0 API

> Create video generation tasks, check task status, and retrieve API credit balance.

## Overview

The Seedance 2.0 API provides endpoints to:

* Create asynchronous video generation tasks
* Check task status and retrieve results
* Check your current API credit balance

## Authentication

Include your API key in the `Authorization` header for every request:

<CodeGroup>
  ```http Authorization Header theme={null}
  Authorization: Bearer <api_key>
  ```
</CodeGroup>

## Base URL

<CodeGroup>
  ```http Base URL theme={null}
  https://api.outai.top/api
  ```
</CodeGroup>

## Response Format

All responses follow the same envelope:

<CodeGroup>
  ```json Response Envelope theme={null}
  {
    "code": 200,
    "trace_id": "xxxxxx",
    "message": null,
    "data": {}
  }
  ```
</CodeGroup>

## Available Endpoints

* `POST /v1/video/seedance-2` — Create a video generation task
* `GET /v1/tasks?task_id=<task_id>` — Retrieve task status and result
* `GET /v1/credits` — Retrieve current API credit balance

## Notes

* Video generation is asynchronous
* A successful create request returns a `task_id`
* Use `task_id` to poll task status and retrieve the final result
* Business-level failures may use the same `code` with different `message` values, so clients should inspect both `code` and `message`
