10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Upscale images to 2K, 4K, or 8K resolution using WaveSpeed AI's Image Upscaler. Takes an image URL and produces a higher-resolution version. Supports JPEG, PNG, and WebP output formats. Use when the user wants to upscale or enhance the resolution of an image.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install chengzeyi/wavespeed-image-upscaler打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Upscale images to 2K, 4K, or 8K resolution using WaveSpeed AI's Image Upscaler.
export WAVESPEED_API_KEY="your-api-key"
Get your API key at wavespeed.ai/accesskey.
import wavespeed from 'wavespeed';
// Upload a local image to get a URL
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: imageUrl }
))["outputs"][0];
You can also pass an existing image URL directly:
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: "https://example.com/photo.jpg" }
))["outputs"][0];
Model ID: wavespeed-ai/image-upscaler
Upscale an image to a higher resolution.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image |
string | Yes | -- | URL of the image to upscale |
target_resolution |
string | No | 4k |
Target resolution. One of: 2k, 4k, 8k |
output_format |
string | No | jpeg |
Output format. One of: jpeg, png, webp |
import wavespeed from 'wavespeed';
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{
image: imageUrl,
target_resolution: "8k",
output_format: "png"
}
))["outputs"][0];
Use sync mode for a single request that waits for the result without polling:
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: imageUrl },
{ enableSyncMode: true }
))["outputs"][0];
import { Client } from 'wavespeed';
const client = new Client("your-api-key", {
maxRetries: 2,
maxConnectionRetries: 5,
ret...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# WaveSpeedAI Image Upscaler
Upscale images to 2K, 4K, or 8K resolution using WaveSpeed AI's Image Upscaler.
## Authentication
```bash
export WAVESPEED_API_KEY="your-api-key"
```
Get your API key at [wavespeed.ai/accesskey](https://wavespeed.ai/accesskey).
## Quick Start
```javascript
import wavespeed from 'wavespeed';
// Upload a local image to get a URL
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: imageUrl }
))["outputs"][0];
```
You can also pass an existing image URL directly:
```javascript
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: "https://example.com/photo.jpg" }
))["outputs"][0];
```
## API Endpoint
**Model ID:** `wavespeed-ai/image-upscaler`
Upscale an image to a higher resolution.
### Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `image` | string | Yes | -- | URL of the image to upscale |
| `target_resolution` | string | No | `4k` | Target resolution. One of: `2k`, `4k`, `8k` |
| `output_format` | string | No | `jpeg` | Output format. One of: `jpeg`, `png`, `webp` |
### Example
```javascript
import wavespeed from 'wavespeed';
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{
image: imageUrl,
target_resolution: "8k",
output_format: "png"
}
))["outputs"][0];
```
## Advanced Usage
### Sync Mode
Use sync mode for a single request that waits for the result without polling:
```javascript
const output_url = (await wavespeed.run(
"wavespeed-ai/image-upscaler",
{ image: imageUrl },
{ enableSyncMode: true }
))["outputs"][0];
```
### Custom Client with Retry Configuration
```javascript
import { Client } from 'wavespeed';
const client = new Client("your-api-key", {
maxRetries: 2,
maxConnectionRetries: 5,
ret...generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.