图像Black Forest Labs

Style Transfer

从提示词重新设计图像风格,同时保持其构图。

model: "style-transfer"

API 文档代理文档

模式

一个模型ID,支持下列所有模式。您发送的字段决定模式,价格随模式而定。

模式选择方式典型价格
图像输入,图像输出image_url
请求示例
{
  "model": "style-transfer",
  "input": {
    "image_url": "https://example.com/image.jpg"
  }
}
$0.060

真实运行

这是工具在旁边图像上的实际输出。下面的游乐场在同一输入上打开,因此您可以自己运行它。

Style Transfer: 之前
之前
Style Transfer: 之后
之后

输入

可选

The style to apply.

必需

The image to work on (https URL, or an upload URL from POST /v1/uploads).. A public https URL, or an upload URL from POST /v1/uploads.

可选
0.65

0 keeps the original; 1 follows the prompt fully.

高级选项 (5)

主要控件之外的提供商设置。保持为空可使用模型的默认值。

可选

Faster inference at a small cost in detail.

可选
-

How strictly the model follows the prompt. Higher is more literal.

可选
-

Denoising steps. More is slower and can add detail.

可选

File format of the result.

可选

Random seed. The same seed and input reproduce the same result.

结果

Style Transfer示例输出

该模型的真实结果。运行它可在此处查看您的输出。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "style-transfer",
  "input": {
    "image_url": "https://assets.arteza.ai/generations/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/babdfe77-4b1f-47a5-b168-02ca5830abb6/0.jpg",
    "prompt": "watercolor painting"
  }
}'
Style Transfer 1Style Transfer 2