Coming soon

Upscale

Make a small picture larger without it looking blurry
POST
/v1/ai/enhancement/upscale

About this tool

This tool is meant to make a small picture bigger, for example two or four times, while adding believable detail so it does not look blurry. It is not switched on yet, because no model that keeps the picture faithful has passed our checks. If you try it now, you will see a message that it is not available.
For example, you have a small logo and want a bigger version for a poster.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Choose how many times bigger it should become.
  4. Press Generate.
  5. Download the result when the tool becomes available.

What you get back

For now you will see a message that the tool is not available yet. When it opens, you will get a larger picture to download.
TEST IT LIVE

Try Upscale in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Not in a plan yet
Method
POST
Endpoint
/v1/ai/enhancement/upscale
Tool ID
ai.enhancement.upscale
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/enhancement/upscale" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'on_unsupported=error' \
  -F 'scale=2' \
  -F 'strength=low'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.enhancement.upscale({
    "files": 'document.pdf',
    "on_unsupported": "error",
    "scale": 2,
    "strength": "low"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->enhancement()->upscale([
    'files' => 'document.pdf',
    'on_unsupported' => 'error',
    'scale' => 2,
    'strength' => 'low',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Increase resolution. **Currently returns 501 feature_unavailable**: No dedicated image-enhancement model is available through the provider, and general image-generation models regenerate pixels rather than faithfully enhancing them. The feature is enabled only after a model passes the fidelity benchmark.

Classification: ai. Deterministic stages: upload content sniffing, input normalisation (Sharp), output validation (Sharp), fidelity check against the input (Sharp).

Upscale works from text and settings, so no file is needed. Every input is optional.

Upscale is not part of a plan yet. It is being prepared and will appear in the plans when it is ready.

Send a POST request to /v1/ai/enhancement/upscale with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.