API reference · sandbase-ai
sandbase-ai/creative-upscaler
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
sandbase-ai/creative-upscaler01
Input Schema
18 parameters · 2 required · 16 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | The image to upscale. |
prompt | string | Required | The prompt to use for generating the image. Be as descriptive as possible for best results. If no prompt is provide BLIP2 will be used to generate a prompt. |
seed | integer | Optional | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. |
scale | number | Optional | The scale of the output image. The higher the scale, the bigger the output image will be. · Min: 1 · Max: 5 · Default: 2 |
detail | number | Optional | How much detail to add · Min: 0 · Max: 5 · Default: 1 |
skip_ccsr | boolean | Optional | If set to true, the image will not be processed by the CCSR model before being processed by the creativity model. · Default: false |
creativity | number | Optional | How much the output can deviate from the original · Min: 0 · Max: 1 · Default: 0.5 |
model_type | string | Optional | The type of model to use for the upscaling. Default is SD_1_5 · Options: SD_1_5, SDXL · Default: "SD_1_5" SD_1_5SDXL |
prompt_suffix | string | Optional | The suffix to add to the prompt. This is useful to add a common ending to all prompts such as 'high quality' etc or embedding tokens. · Default: " high quality, highly detailed, high resolution, sharp" |
base_model_url | string | Optional | The URL to the base model to use for the upscaling |
guidance_scale | number | Optional | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. · Min: 0 · Max: 16 · Default: 7.5 |
shape_preservation | number | Optional | How much to preserve the shape of the original image · Min: 0 · Max: 3 · Default: 0.25 |
additional_lora_url | string | Optional | The URL to the additional LORA model to use for the upscaling. Default is None |
num_inference_steps | integer | Optional | The number of inference steps to use for generating the image. The more steps the better the image will be but it will also take longer to generate. · Min: 1 · Max: 200 · Default: 20 |
enable_safety_checks | boolean | Optional | If set to true, the resulting image will be checked whether it includes any potentially unsafe content. If it does, it will be replaced with a black image. · Default: true |
override_size_limits | boolean | Optional | Allow for large uploads that could take a very long time. · Default: false |
additional_lora_scale | number | Optional | The scale of the additional LORA model to use for the upscaling. Default is 1.0 · Default: 1 |
additional_embedding_url | string | Optional | The URL to the additional embeddings to use for the upscaling. Default is None |
02
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
03
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": "sandbase-ai/creative-upscaler",
"seed": 42,
"image": "https://static.sandbase.ai/examples/bytedance/seedvr/upscale/image/input_image_0.png",
"scale": 2,
"detail": 1,
"skip_ccsr": false,
"creativity": 0.5,
"model_type": "SD_1_5",
"prompt_suffix": " high quality, highly detailed, high resolution, sharp",
"guidance_scale": 7.5,
"shape_preservation": 0.25,
"num_inference_steps": 20,
"enable_safety_checks": true,
"override_size_limits": false,
"additional_lora_scale": 1,
"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"
