upscale
Status: Available
This method upscales an image using ImagineoAI's backend. It requires an existing run or image and supports prompt-based or original-prompt upscaling.
Usage
const result = await client.images.upscale({
original_run_id: 'uuid-of-run',
upscale_factor: 2,
use_original_prompt: true
});
// result: GenerateImageOutput
Parameters
input: UpscaleImageInputoriginal_run_id(string, required): The run ID of the image to upscaleupscale_factor(number, required): The factor to upscale by (e.g., 2)use_original_prompt(boolean, required): If true, use the prompt from the original runprompt(string, optional): Override promptmodel_id(string, optional): Model to usemodel_weight(number, optional): Model blend weightwebhook_url(string, optional): Webhook for status updateswebhook_events(array, optional): Events to send to webhook
Returns
Promise<GenerateImageOutput>
Errors
- Throws if input is invalid or API returns an error.
- Error shape:
{ message: string; code?: string; details?: any }
- Error shape: