API reference · sandbase-ai

sandbase-ai/creative-upscaler

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

IMAGEAsyncOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDsandbase-ai/creative-upscaler
01

Input Schema

18 parameters · 2 required · 16 optional

ParameterTypeRequiredDescription
imagestringRequiredThe image to upscale.
promptstringRequiredThe 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.
seedintegerOptional The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
scalenumberOptionalThe scale of the output image. The higher the scale, the bigger the output image will be. · Min: 1 · Max: 5 · Default: 2
detailnumberOptionalHow much detail to add · Min: 0 · Max: 5 · Default: 1
skip_ccsrbooleanOptional If set to true, the image will not be processed by the CCSR model before being processed by the creativity model. · Default: false
creativitynumberOptionalHow much the output can deviate from the original · Min: 0 · Max: 1 · Default: 0.5
model_typestringOptionalThe 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_suffixstringOptionalThe 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_urlstringOptionalThe URL to the base model to use for the upscaling
guidance_scalenumberOptional 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_preservationnumberOptionalHow much to preserve the shape of the original image · Min: 0 · Max: 3 · Default: 0.25
additional_lora_urlstringOptionalThe URL to the additional LORA model to use for the upscaling. Default is None
num_inference_stepsintegerOptional 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_checksbooleanOptional 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_limitsbooleanOptional Allow for large uploads that could take a very long time. · Default: false
additional_lora_scalenumberOptionalThe scale of the additional LORA model to use for the upscaling. Default is 1.0 · Default: 1
additional_embedding_urlstringOptionalThe URL to the additional embeddings to use for the upscaling. Default is None
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from 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"