Render Enhancer

Enhance your images with AI-powered rendering enhancements.

Endpoint

HTTP Method
POST https://api.mnmlai.dev/v1/render/enhancer

Request

Send a POST request with multipart/form-data containing your building image and design specifications.

Required Parameters

ParameterTypeDescription
imageFileThe image to enhance (multipart/form-data)
promptStringDescription of the desired enhancement

Optional Parameters

ParameterTypeDefaultDescription
geometryNumber1Geometry preservation level (0-1)
creativityNumber0.3Creativity level (0-1)
dynamicNumber5Dynamic level (0-10)
seedNumberRandomRandom Number
sharpenNumber0.5Sharpening level (0-1)

Response

The Interior AI endpoint processes your building image asynchronously. You'll receive a request ID that you can use to check the status and retrieve the generated design.

Success Response (200 OK)

{
  "status": "success",
  "id": "b09ssvpzzhrj00cmzt1bykjzp1",
  "prompt": "Modern interior design with glass facade"
}

Examples

Basic Example

curl -X POST https://api.mnmlai.dev/v1/render/enhancer \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "image=@/path/to/building.jpg" \
  -F "prompt=Modern interior design with glass facade"

Advanced Example with All Parameters

curl -X POST https://api.mnmlai.dev/v1/render/enhancer \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "image=@/path/to/building.jpg" \
  -F "prompt=Modern interior design with glass facade" \
  -F "geometry=1" \
  -F "creativity=0.3" \
  -F "dynamic=5" \
  -F "seed=123" \
  -F "sharpen=0.5"

Node.js Example

const FormData = require('form-data');
const fs = require('fs');
const axios = require('axios');

const form = new FormData();
form.append('image', fs.createReadStream('building.jpg'));
form.append('prompt', 'Modern interior design with glass facade');
form.append('geometry', '1');
form.append('creativity', '0.3');
form.append('dynamic', '5');
form.append('seed', '123');
form.append('sharpen', '0.5');

const response = await axios.post(
  'https://api.mnmlai.dev/v1/render/enhancer',
  form,
  {
    headers: {  
      'Accept': 'application/json',
      'Authorization': 'Bearer YOUR_API_KEY',
      ...form.getHeaders()
    }
  }
);

console.log('Request ID:', response.data.id);

Python Example

import requests

url = 'https://api.mnmlai.dev/v1/interior'

files = {
    'image': open('building.jpg', 'rb')
}

data = {
    'prompt': 'Modern interior design with glass facade',
    'geometry': '1',
    'creativity': '0.3',
    'dynamic': '5',
    'seed': '123',
    'sharpen': '0.5'
}

headers = {
    'Accept': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
}

response = requests.post(url, headers=headers, files=files, data=data)
result = response.json()

print(f"Request ID: {result['id']}")

Processing Status

After submitting your request, use the Status Check endpoint with the returned ID to monitor processing progress:

Status Check Endpoint
GET https://api.mnmlai.dev/v1/status/{id}

Error Handling

For detailed information on error responses, status codes, and best practices for handling errors, see our comprehensive API Errors documentation.

Render Enhancer Specific Errors

// 400 Bad Request - Missing required parameters
{
  "error": "Missing required field: image"
}

// 413 Payload Too Large - File size exceeded
{
  "error": "File size exceeds maximum limit of 10MB"
}

// 400 Bad Request - Invalid parameter value
{
  "error": "Parameter 'sharpen' must be between 0 and 1"
}

Related Endpoints

Explore other AI-powered design tools: