Quickstart
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
- Visit app.goenhance.ai to create a new account.
- We recommend creating a separate account specifically for API usage to prevent confusion between personal use and API consumption.
- Click on the "Sign Up" button and follow the registration process.
2. Create an API Key
- Log in to your GoEnhanceAI account.
- Navigate to app.goenhance.ai/open-api/api-keys.
- Click on "Create".
- 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.
- Go to the GoEnhance API Pricing page.
- Buy tokens to your balance by clicking "Add Tokens."
- Consider factors such as:
- Number of concurrent task allowed
- The discount you receive on future purchases
- 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
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
curl --request GET 'https://api.goenhance.ai/api/v1/jobs/detail?img_uuid=' \
--header 'Authorization: Bearer {Your API Key}'
3.Generate Image Face Swap
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 (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.
- Set up usage alerts to avoid unexpected charges or service interruptions.
7. Support and Community
- For technical support, please email api@goenhance.ai. Titles begin with [API]
- Join our developer community on Discord to connect with other developers and get quick answers.
- Check out our Docs for the latest updates, tutorials, and best practices.