Introduction to the API
More information about the API of RBLX/ai
You can use the API to interact with the RBLX/ai service. The API is a RESTful API that allows you to perform various actions, such as generating graphic(s), generating variations, viewing the community images, viewing your images and viewing your current balance.
The API is currently in beta, and is subject to change. We will be adding more endpoints and features as we continue to improve the service.
Endpoints
The API has the following endpoints:
-
/api/v1/generate-icon-thumbnail
: This endpoint allows you to generate Icons & Thumbnails using the API. You can specify the prompt, and the number of variations you want to generate. -
/api/v1/generate-vector
: This endpoint allows you to generate Vectors using the API. You can specify the prompt, and the number of variations you want to generate. -
/api/v1/get-balance
: This endpoint allows you to check your current credits balance. -
/api/v1/get-community
: This endpoint allows you to get the latest graphics generated by the community. -
/api/v1/get-history
: This endpoint allows you to get the history of graphics you have generated.
Authentication
To use the API, you will need to authenticate with your account. You can do this by including your API key in the request header.
headers: {
"x-api-key": "Bearer <your-api-key>"
}
You can find your API key in the API section of the dashboard.
Rate Limiting
We have implemented rate limiting to prevent abuse and ensure that the service remains stable. The rate limit is set to 10 requests per second for the Hobby plan. If you exceed this limit, you will receive a 429 error code. See the following table for the rate limits for each plan:
- Hobby Plan: 10 requests/1s API Limit
- Pro Plan: 60 requests/1s API Limit
- Advanced Plan: 90 requests/1s API Limit
Contact Us
If you have any questions or need assistance with the API, please contact us at [email protected].