topaz/upscale/image/generative
Upscale Image Generative by Topaz Labs - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runtopaz/upscale/image/generativeInput Schema
17 parameters · 2 required · 15 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | Url of the image to be upscaled · Min length: 1 |
prompt | string | Required | Text prompt to guide generative upscaling (max 1024 chars). Applies to Redefine model only. · Max length: 1024 |
model | string | Optional | Generative upscaling model. Wonder 3.5 is the latest Wonder with finer detail and fewer repetitive patterns; Wonder 3 is Topaz's most advanced generative realism model (Wonder 2/Wonder are earlier generations); Recover 3 rebuilds natural detail; Standard MAX is high-quality precision-leaning upscaling; Redefine adds prompt-guided creative detail; Recovery and Recovery V2 rebuild extreme low-resolution images. · Options: Wonder 3.5, Wonder 3, Wonder 2, Wonder, Recover 3, Standard MAX, Redefine, Recovery V2, Recovery · Default: "Wonder 3" Wonder 3.5Wonder 3Wonder 2WonderRecover 3Standard MAXRedefineRecovery V2Recovery |
detail | number | Optional | Detail recovery level (0.0-1.0). Applies to Recovery V2 model only. · Min: 0 · Max: 1 |
denoise | number | Optional | Denoising level (0.0-1.0). Applies to Redefine model only. · Min: 0 · Max: 1 |
sharpen | number | Optional | Sharpening level (0.0-1.0). Applies to Redefine model only. · Min: 0 · Max: 1 |
texture | integer | Optional | Texture detail level for generative upscaling (1-5). Applies to Redefine model only. · Min: 1 · Max: 5 |
autoprompt | boolean | Optional | Enable automatic prompt generation for generative upscaling. Applies to Redefine model only. |
creativity | integer | Optional | Creativity level for generative upscaling (1-6). Higher values produce more creative/hallucinated details. Applies to Redefine model only. · Min: 1 · Max: 6 |
crop_to_fill | boolean | Optional | Default: false |
output_format | string | Optional | Output format of the upscaled image. · Options: jpeg, png · Default: "jpeg" jpegpng |
upscale_factor | number | Optional | Factor to upscale the image by (e.g. 2.0 doubles width and height) · Min: 1 · Max: 4 · Default: 2 |
face_enhancement | boolean | Optional | Whether to apply face enhancement to the image. · Default: true |
subject_detection | string | Optional | Subject detection mode for the image enhancement. Applies to Wonder 3, Recovery and Recovery V2 models. · Options: All, Foreground, Background · Default: "All" AllForegroundBackground |
enhancement_strength | string | Optional | Enhancement strength for generative upscaling. Applies to Wonder 3 and Wonder 3.5 models. When omitted, Topaz auto-configures it. · Options: low, medium, high lowmediumhigh |
face_enhancement_strength | number | Optional | Strength of the face enhancement. 0.0 means no enhancement, 1.0 means maximum enhancement. Ignored if face enhancement is disabled. · Min: 0 · Max: 1 · Default: 0.8 |
face_enhancement_creativity | number | Optional | Creativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled. · Min: 0 · Max: 1 · Default: 0 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Wonder 3",
"image": "https://static.sandbase.ai/examples/topaz/upscale/image/generative/input_image_0.jpeg",
"crop_to_fill": false,
"output_format": "jpeg",
"upscale_factor": 2,
"face_enhancement": true,
"subject_detection": "All",
"face_enhancement_strength": 0.8,
"face_enhancement_creativity": 0,
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Generative
Generative is tailored to the topaz/upscale/image/generative workflow for generative work in image production. Teams can place this named operation inside review, asset preparation, and publishing pipelines while keeping the original request attached to every result. Upscale Image Generative by Topaz Labs - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly. Because topaz/upscale/image/generative is a separate catalog entry, evaluations should use this route’s own inputs, output expectations, and billing behavior. The endpoint is especially useful when a project has a defined transformation goal and needs a repeatable request contract instead of an ad-hoc desktop step. Those strengths describe this precise catalog entry rather than its siblings.
prompt controls text prompt to guide generative upscaling (max 1024 chars). Applies to Redefine model only; image controls url of the image to be upscaled; output format controls output format of the upscaled image; output format accepts jpeg, png; detail controls detail recovery level (0.0-1.0). Applies to Recovery V2 model only; subject detection controls subject detection mode for the image enhancement. Applies to Wonder 3, Recovery and Recovery V2 models; subject detection accepts All, Foreground, Background; upscale factor controls factor to upscale the image by (e.g. 2.0 doubles width and height). The mandatory portion is image, prompt. Generative exposes prompt, image, output_format, detail, subject_detection, upscale_factor, autoprompt as its documented request surface. For example, the route documentation includes “https://static.sandbase.ai/examples/topaz/upscale/image/generative/input_image_0.jpeg”. Applications can submit that exact shape asynchronously, retain the chosen arguments in job metadata, and collect the resulting media URL for review or publishing.
Highlights
- Generative image upscaling. Topaz Upscale Image Generative enlarges a supplied image and reconstructs plausible detail beyond simple pixel resampling.
- Texture synthesis. The model can add coherent surface information in regions that would otherwise become soft or blocky at larger dimensions.
- Source-guided composition. The input preserves the scene, subject placement, and broad visual identity while the enhancement concentrates on resolution and finish.
- High-resolution asset creation. It is useful when a chosen visual must be adapted for larger displays, print, or tighter crops.
Pricing
| Billing option | Price |
|---|---|
| Per request | $0.08 |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose Generative | Use it when the job specifically calls for generative and the route’s documented input contract matches assets already available in your workflow. |
| Keep the request reproducible | Use the required image, prompt explicitly, then record optional choices alongside the prompt for repeatable reruns. |
| Build controlled creative variations | Change one declared control at a time when comparing framing, format, duration, resolution, style, or other route-supported output decisions. |
| Integrate asynchronous delivery | Use this endpoint when an application can submit work, track completion, and collect the returned media URL instead of requiring an immediate inline artifact. |
| Validate before a large batch | Run representative prompts and source assets first, confirm the visual or audio behavior, then lock the successful request shape for scaled production. |
Prompt Guide
Lead with the subject or transformation, then add the composition, environment, style, lighting, motion, voice, or fidelity details relevant to this route. Keep every parameter inside the documented schema; the example below uses only fields declared for topaz/upscale/image/generative.
{
"prompt": "A polished editorial composition with clear subject, lighting, color, and camera direction.",
"image": "https://static.sandbase.ai/examples/topaz/upscale/image/generative/input_image_0.jpeg",
"output_format": "jpeg",
"subject_detection": "All",
"enhancement_strength": "low"
}
Technical Specs
| Specification | Details |
|---|---|
| Model ID | topaz/upscale/image/generative |
| Execution mode | async |
| Task type | image |
prompt | string · required |
image | string · required |
output_format | string · optional · choices: jpeg, png |
detail | number · optional · min 0 · max 1 |
subject_detection | string · optional · choices: All, Foreground, Background |
upscale_factor | number · optional · min 1 · max 4 |
autoprompt | boolean · optional |
face_enhancement | boolean · optional |
sharpen | number · optional · min 0 · max 1 |
crop_to_fill | boolean · optional |
face_enhancement_strength | number · optional · min 0 · max 1 |
creativity | integer · optional · min 1 · max 6 |
enhancement_strength | string · optional · choices: low, medium, high |
denoise | number · optional · min 0 · max 1 |
face_enhancement_creativity | number · optional · min 0 · max 1 |
texture | integer · optional · min 1 · max 5 |
model | string · optional · choices: Wonder 3.5, Wonder 3, Wonder 2, Wonder, Recover 3, Standard MAX, Redefine, Recovery V2, Recovery |

