Getting Started with GoAPI!#
The complete documentation of all APIs offered by GoAPI!
Introduction#
Unlock the full potential of your websites and applications with all-in-one AI API solution, offering Midjourney API, GPTs API, Kling API, and more. Experience the simplicity, cost-effectiveness, and seamless integration that our APIs provide, empowering your digital projects!Getting started#
Sign up for our Dashboard and get free credits to try out our different generative AI APIs!
Our dashboard is where you can manage your credits, subscriptions, API Key, referrals, and more!What is PPU vs BYOA?#
PPU: “Pay-per-use”, or “Pay-as-you-go”, is a service option where you don’t have to have your own Midjourney/ChatGPT/Kling/Luma/Suno/etc accounts depending on the API you want to use, and you will be using the account pool operated by us and it will consume your credits (which you can get more by topping up). Thus, all the jobs submitted will be processed by our accounts.The PPU service option will consume your GoAPI credits, which you can top-up on the dashboard.BYOA: “Bring-your-own-account”, or “Host-your-account”, is a service option where you do need to have and operate your own Midjourney/ChatGPT/Kling/Luma/Suno/etc accounts, and then subscribe to a seat or multiple seats on our platform for that particular API, connect your account to that seat, and then start using the API. Thus, all the jobs submitted will be processed by your own accounts.The BYOA service option will require you to subscribe to BYOA seats for that particular API you want to use. You will not need to top-up GoAPI credits for BYOA.Reliability: the most reliable way is to for you to use both PPU and BYOA to reduce the possibility of downtime associated with account operation related issues (ex. Midjourney API). For example, you could primarily use PPU and have your own BYOA as backup; or in the case of Midjourney API, you could use your BYOA accounts and failover to our PPU (there is a toggle for this fail over logic on the dashboard).Below is an example illustration for Midjourney API. Similar logic applies to Suno API, Kling API, Luma API, GPTs API, etc.Making your first request#
To make your first Flux API request, send an authenticated request to the following endpoint, and you will get a response shortly afterwards.
Find a list of GoAPI's available domains hereExample Request#
{
"model": "Qubico/flux1-schnell",
"task_type": "txt2img",
"input": {
"prompt": "a bear",
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
| Status | Description |
|---|
200: OK | Successful Response |
400: Bad Request | The request format does not meet the requirements. |
401: Unauthorized | The API key is incorrect |
500: Internal Server Error | Service is experiencing an error |
Example Response#
{
"code": 200,
"message": "success",
"data": {
"task_id": "0f647527-12bd-48b1-b813-111111111",
"model": "Qubico/flux1-dev",
"task_type": "txt2img",
"status": "",
"input": {},
"output": {},
"meta": {
},
"logs": [],
"error": {
"code": 1100,
"message": ""
}
}
}
GoAPI Domains#
Here are the available domains for all of our API endpoints. we recommend you to experiment with all of them below and choose one or more based on your program & location:| Type | Domain | Description |
|---|
| Primary Domain | api.goapi.ai | The most recommended domain for all api request |
| Secondary Domain | api.goapi.xyz | The backup domain with all api endpoint available |
| Special Domain | proxy.goapi.xyz | Domain that is improved for long wait response. If you have long halt GPT request, use this domain |
Modified at 2025-01-08 11:14:07