Renderonix API Documentation

Renderonix AI API Docs

Generate high-quality AI images using Renderonix API with just a few lines of code. Our API is designed for simplicity and powerful integration.

If you want to integrate Renderonix AI into your applications, contact us to get access to the API: shaan81290@gmail.com

API Endpoint

All API requests should be made to the following endpoint:

POST https://renderonix.com/api_generate.php

Required Headers

Ensure these headers are included with every API request for authentication and content type:

Content-Type: application/json
X-API-TOKEN: YOUR_API_TOKEN

Request Body (JSON)

The request body should be a JSON object containing the following parameters:

{
  "prompt": "a futuristic warrior girl in glowing armor, cyberpunk city background, neon lights, highly detailed, cinematic lighting",
  "aspect": "2:3",
  "quantity": 2
}

cURL Example

Here's an example of how to make a request using cURL:

curl -X POST https://renderonix.com/api_generate.php \
  -H "Content-Type: application/json" \
  -H "X-API-TOKEN: YOUR_API_TOKEN" \
  -d '{
    "prompt": "a futuristic warrior girl in glowing armor, cyberpunk city background, neon lights, highly detailed, cinematic lighting",
    "aspect": "2:3",
    "quantity": 2
  }'

Sample Success Response

A successful request will return a JSON object similar to this, containing URLs to your generated images and credit information:

{
  "images": [
    "https://renderonix.com/i/a1b2c3",
    "https://renderonix.com/i/d4e5f6"
  ],
  "used": 2,
  "credits_left": 3,
  "width": 768,
  "height": 1152,
  "status": "success"
}

Error Responses

In case of an error, the API will return a JSON object with a status of "error" and a descriptive message:

{
  "status": "error",
  "message": "Invalid API token. Please check your token and try again."
}
{
  "status": "error",
  "message": "Insufficient credits. Please top up your account."
}

Supported Aspect Ratios

To fetch the most current list of all supported aspect ratios and their corresponding dimensions, make a GET request to this endpoint:

GET https://renderonix.com/aspect_ratios.php

Important Notes

Need further assistance or have questions? Contact our support team!