All models
Other
Image
Available
Content Image Upscale
Upscale an image by `1x`, `2x`, `4x`, or `8x` while keeping the original aspect ratio. Detail is restored generatively, and text regions are upscaled with a fidelity pass so the text is never rewritten.
Image Upscale
From 60 credits (≈ ₹60.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
image_urlRequired |
string | URL of the image to upscale. Required. - Must be a publicly downloadable HTTP(S) URL - Max file size: 20 MB - Supported formats: JPG, PNG, WEBP, GIF (only the first frame is used) - Use a file URL after upload, not the file content itself format: uri |
upscale_factor |
string | Upscale factor applied to both width and height, keeping the aspect ratio. Optional. Allowed values: `"1"`, `"2"`, `"4"`, `"8"` (numbers are also accepted). Default: `"2"`. - `1`: same-size quality enhancement (denoise, sharpen, preserve text); dimensions do not change - `2` / `4` / `8`: output width and height = input × factor - Output must stay within 67 MP (about 8192×8192) and 16,384 px per side; otherwise the request is rejected with 422 and not charged - Billing tier (2K / 4K / 8K) is dete one of: "1", "2", "4", "8" · default "2" |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "content-image-upscale",
"input": {
"image_url": "https://example.com/input.png",
"upscale_factor": "2"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "content-image-upscale",
"input": {
"image_url": "https://example.com/input.png",
"upscale_factor": "2",
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "content-image-upscale",
"input": {
"image_url": "https://example.com/input.png",
"upscale_factor": "2"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "content-image-upscale",
"input": {
"image_url": "https://example.com/input.png",
"upscale_factor": "2"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "content-image-upscale",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}