图像Recraft新增

Recraft V3

以设计为中心,支持矢量输出

model: "recraft-v3"

API 文档代理文档

模式

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

模式选择方式典型价格
文本生成图像prompt
请求示例
{
  "model": "recraft-v3",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.040
图像编辑image_url
请求示例
{
  "model": "recraft-v3",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040

输入

必需

Prompt

可选

Size

可选

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

高级选项 (1)

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

可选

Visual style preset.

结果

Recraft V3示例输出

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

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "recraft-v3",
  "input": {
    "prompt": "Jeweler'\''s hands setting a pear-cut sapphire into a platinum claw mount under a raking bench lamp, fine tweezers gripping the stone as prongs are pressed flush, raking sidelight splitting the facets into electric blue and violet prisms, square macro craft composition, cool platinum and vivid sapphire palette, fine metal filings on the black velvet pad below, meditative precision"
  }
}'
Recraft V3 1Recraft V3 2Recraft V3 3Recraft V3 4Recraft V3 5Recraft V3 6