Room AI

Render AI

1 token3D

Convert 3D screenshots to photorealistic renders

Overview

Render AI transforms 3D model screenshots (from SketchUp, Revit, 3ds Max, Blender, etc.) into photorealistic renders. Upload a screenshot of your 3D scene and the AI adds realistic lighting, materials, textures, and environmental effects. Specify whether the scene is an interior or exterior for optimized rendering.

Image input

Endpoint

POST /api/v1/generate
bash
curl -X POST https://roomai.com/api/v1/generate \
  -H "Authorization: Bearer rai_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"model": "render", ...}'

Parameters

ParameterTypeDescription
modelstring

Must be "render".

render
imagestring

URL of the 3D model screenshot.

sceneTypestring

Whether the scene is an interior or exterior.

Default: "interior"

interiorexterior
promptstring

Additional rendering instructions (e.g. "warm afternoon lighting with soft shadows").

Request Example

json
{
  "model": "render",
  "image": "https://example.com/sketchup-screenshot.jpg",
  "sceneType": "interior",
  "prompt": "warm afternoon lighting, photorealistic materials"
}

Response

Success (200)

json
{
  "status": "success",
  "result": {
    "image_url": "https://storage.googleapis.com/...",
    "model": "render",
    "tokens_used": 1,
    "processing_time_ms": 4500
  }
}

Error

json
{
  "status": "error",
  "error": {
    "code": "INSUFFICIENT_TOKENS",
    "message": "Not enough tokens",
    "required": 1,
    "balance": 0
  }
}

Code Examples

cURL

bash
curl -X POST https://roomai.com/api/v1/generate \
  -H "Authorization: Bearer rai_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "render",
  "image": "https://example.com/sketchup-screenshot.jpg",
  "sceneType": "interior",
  "prompt": "warm afternoon lighting, photorealistic materials"
}'

JavaScript / Node.js

javascript
const response = await fetch("https://roomai.com/api/v1/generate", {
  method: "POST",
  headers: {
    "Authorization": "Bearer rai_live_your_api_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "model": "render",
  "image": "https://example.com/sketchup-screenshot.jpg",
  "sceneType": "interior",
  "prompt": "warm afternoon lighting, photorealistic materials"
}),
});

const data = await response.json();

if (data.status === "success") {
  console.log("Image URL:", data.result.image_url);
  console.log("Tokens used:", data.result.tokens_used);
} else {
  console.error("Error:", data.error.message);
}

Python

python
import requests

response = requests.post(
    "https://roomai.com/api/v1/generate",
    headers={
        "Authorization": "Bearer rai_live_your_api_key",
        "Content-Type": "application/json",
    },
    json={
  "model": "render",
  "image": "https://example.com/sketchup-screenshot.jpg",
  "sceneType": "interior",
  "prompt": "warm afternoon lighting, photorealistic materials"
},
)

data = response.json()

if data["status"] == "success":
    print("Image URL:", data["result"]["image_url"])
    print("Tokens used:", data["result"]["tokens_used"])
else:
    print("Error:", data["error"]["message"])

Tips

  • 1Works with screenshots from any 3D modeling software — SketchUp, Revit, 3ds Max, Blender, Rhino, etc.
  • 2Set "sceneType" correctly — interior and exterior scenes use different lighting and atmosphere.
  • 3Clean 3D screenshots with visible geometry (no wireframes) produce the best renders.
  • 4Add a prompt describing the lighting mood for more control over the result.