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

# Quickstart Guide

> Set up your account, create API keys, purchase tokens, and make your first API calls with GoEnhanceAI's video and image processing tools.

# GoEnhanceAI API Tutorial

GoEnhanceAI offers the most cutting-edge generative video models. You can start using our models in your application with only a few quick steps. This tutorial will guide you through the process of setting up and using the GoEnhanceAI API.

## 1. Set Up an Account

1. Visit [app.goenhance.ai](https://app.goenhance.ai) to create a new account.
2. We recommend creating a separate account specifically for API usage to prevent confusion between personal use and API consumption.
3. Click on the "Sign Up" button and follow the registration process.

## 2. Create an API Key

1. Log in to your GoEnhanceAI account.
2. Navigate to [app.goenhance.ai/open-api/api-keys](https://app.goenhance.ai/open-api/api-keys).
3. Click on "Create".
4. Copy and securely store your API key.

## 3. Buy Tokens

The GoEnhance API operates on a **pay-as-you-go** model, providing flexible access to advanced media processing features. The platform supports a **token-based** pricing system, allowing users to customize their usage based on specific project needs.

1. Go to the [GoEnhance API Pricing page](https://app.goenhance.ai/open-api/billing).
2. Buy tokens to your balance by clicking "Add Tokens."
3. Consider factors such as:
   * Number of concurrent task allowed
   * The discount you receive on future purchases
4. Start making API calls.

## 4. Make Your First API Call

Now that you have an account, API key, and tokens, you're ready to make your first API call.

### Example using `Curl`:

1.Generate video to video

```shell theme={null}
curl --request POST 'https://api.goenhance.ai/api/v1/video2video/generate' \
--header 'Authorization: Bearer {Your API Key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "args": {
        "model": 2,
        "duration": 10,
        "reference_video_url": "https://cdn.goenhance.ai/user/goenhance/0dc5cb142ed43e0616881942c920d4fc.mp4",
        "seed": -1
    },
    "type": "mx-v2v"
}'
```

2.Get Job detail

```shell theme={null}
curl --request GET 'https://api.goenhance.ai/api/v1/jobs/detail?img_uuid=' \
--header 'Authorization: Bearer {Your API Key}' 
```

3.Generate Image Face Swap

```shell theme={null}
curl --location --request POST 'https://api.goenhance.ai/api/v1/imagefaceswap/generate' \
--header 'Authorization Bearer {Your API Key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "args": {
        "reference_img": "https://cdn.goenhance.ai/user/goenhance/808585c07e9b4fa4dd3ed4377c418d24.jpg",
        "source_img": "https://cdn.goenhance.ai/user/goenhance/37018e026a6bb46c718a31bcde9f410a.jpg"
    },
    "type": "mx-image-face-swap"
}'
```

## 5. API Documentation

For detailed information about all available endpoints, request/response formats, and best practices, please refer to our comprehensive API documentation at [docs.dev.goenhance.ai](https://docs.dev.goenhance.ai) (replace with the actual documentation URL).

## 6. Rate Limits and Usage

* Be aware of the rate limits associated with your chosen plan.
* Monitor your API usage through the dashboard at [app.goenhance.ai/open-api/usage](https://app.goenhance.ai/open-api/usage).
* Set up usage alerts to avoid unexpected charges or service interruptions.

## 7. Support and Community

* For technical support, please email [api@goenhance.ai](mailto:api@goenhance.ai). Titles begin with \[API]
* Join our developer community on [Discord](https://discord.gg/bztDCAkekB) to connect with other developers and get quick answers.
* Check out our [Docs](https://docs.dev.goenhance.ai) for the latest updates, tutorials, and best practices.
