Krea图片 API$0.012 起

Krea API

Krea API on WaveSpeedAI — Krea V3 text-to-image and multi-reference edit, plus Krea 2 Large, Medium, Medium Turbo and the open-weights Krea 2 Turbo with LoRA support, all through one REST API.

Generate images with Krea V3 (quality and speed variants, custom dimensions, seed control), edit and combine up to eight reference images, or pick a Krea 2 model: Large, Medium, Medium Turbo, or the 8-step Turbo with custom LoRAs. Same REST prediction flow as every other model on WaveSpeedAI.

Krea 示例输出

概览

关于 Krea API

Krea 能做什么、它在 Krea 模型阵容中的定位,以及团队选择它的原因。

Krea 是 Krea 推出的图像生成与编辑模型,可通过 WaveSpeedAI REST API 使用。Krea API on WaveSpeedAI — Krea V3 text-to-image and multi-reference edit, plus Krea 2 Large, Medium, Medium Turbo and the open-weights Krea 2 Turbo with LoRA support, all through one REST API.

Generate images with Krea V3 (quality and speed variants, custom dimensions, seed control), edit and combine up to eight reference images, or pick a Krea 2 model: Large, Medium, Medium Turbo, or the 8-step Turbo with custom LoRAs. Same REST prediction flow as every other model on WaveSpeedAI.

WaveSpeedAI 上的 Krea 系列提供 7 个 REST 端点,涵盖 Image-To-Image, Text-To-Image 个工作流。每个变体都有各自的定价、参数选项和示例输出——请选择与你的输入模态和生产约束相匹配的那一个,或使用同一个 API 密钥调用多个变体,组合成多步骤流水线。

使用与 WaveSpeedAI 上其他 1,000 多个 AI 模型相同的 API 密钥、账单账户和速率限制来运行 Krea。无需单独对接供应商,无需各家 SDK,也无需应对各家不同的速率限制——一次集成即可覆盖从文生图、文生视频到音频合成、3D 生成、放大和编辑的全部能力。

端点

全部 Krea API 端点

WaveSpeedAI 现已提供 7 个 Krea 端点——请选择适合你工作流的变体。

image-to-imagev3 Edit — Krea 的 Krea image-to-image 预览

v3 Edit

Krea V3 Image Edit edits and combines up to eight reference images with natural-language instructions, supporting quality and speed variants, custom dimensions, seed control, multi-image composition, creative edits, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

$0.03 起
text-to-imagev3 Text To Image — Krea 的 Krea text-to-image 预览

v3 Text To Image

Krea V3 Text-to-Image generates images from text prompts with selectable quality and speed variants, custom dimensions, and seed control for flexible creative and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

$0.03 起
text-to-imageKrea v2 Large Text To Image — Krea 的 Krea text-to-image 预览

Krea v2 Large Text To Image

Krea 2 Large Text to Image is a fast AI image generation model that creates high-fidelity images from text prompts with aspect ratio, creativity, and optional style reference controls. Ready-to-use REST inference API for creative design, marketing visuals, product mockups, brand assets, social media content, concept art, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing.

$0.06 起
text-to-imageKrea v2 Medium Turbo Text To Image — Krea 的 Krea text-to-image 预览

Krea v2 Medium Turbo Text To Image

Krea 2 Medium Turbo Text to Image is a fast AI image generation model that creates high-quality images from text prompts with aspect ratio, creativity, and optional style reference controls. Ready-to-use REST inference API for rapid creative design, marketing visuals, product mockups, brand assets, social media content, concept art, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing.

$0.015 起
text-to-imageKrea v2 Medium Text To Image — Krea 的 Krea text-to-image 预览

Krea v2 Medium Text To Image

Krea 2 Medium Text to Image is a fast AI image generation model that creates high-quality images from text prompts with aspect ratio, creativity, and optional style reference controls. Ready-to-use REST inference API for creative design, marketing visuals, product mockups, brand assets, social media content, rapid ideation, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing.

$0.03 起
text-to-imageKrea v2 Turbo Lora — Krea 的 Krea text-to-image 预览

Krea v2 Turbo Lora

Krea 2 Turbo with LoRA support runs custom LoRAs and generates personalized images natively at 1K to 2K resolution, with both text-to-image and image-to-image support. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

$0.018 起
text-to-imageKrea v2 Turbo — Krea 的 Krea text-to-image 预览

Krea v2 Turbo

Krea 2 Turbo generates aesthetic-first images natively at 1K to 2K resolution in seconds, supporting both text-to-image and image-to-image. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

$0.012 起

示例

看看 Krea 的实际效果

由 Krea API 生成的真实输出。悬停在任意视频上即可预览,点击可打开全尺寸查看器。

使用方法

如何使用 Krea API

从注册到完成一次生成,只需四步。完整的 Python、Node.js 和 cURL 示例见下方的 API 部分。

  1. 01

    获取 API 密钥

    注册 WaveSpeedAI 账号,并从控制台复制你的 API 密钥。新账号附带免费体验额度——足够在开始计费前把 Playground 运行几十次。

  2. 02

    提交预测

    把你的输入以 JSON 形式 POST 到 https://api.wavespeed.ai/api/v3/krea/v3/text-to-image。端点会立即返回预测 ID——生成是异步的,因此推理期间你无需保持连接。

  3. 03

    轮询完成状态

    GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result。状态为 completed 时返回输出;状态为 failed、cancelled、timeout 或 deleted 时以错误终止;其他任何状态都继续轮询。

  4. 04

    读取输出 URL

    状态变为 "completed" 后,从 data.outputs[0] 读取 URL。该 URL 指向 WaveSpeedAI CDN 上你生成的媒体——具体是图片、视频、音频还是 3D 文件,取决于你调用的 Krea 变体。

应用场景

用 Krea 可以构建什么

开发者和创作者使用 Krea API 的常见工作流。

01

Text-to-image with Krea V3

krea/v3/text-to-image generates images from prompts with quality and speed variants, custom dimensions and seed control.

text-to-imageseed
02

Combine up to eight references

krea/v3/edit edits and combines up to eight reference images with quality and speed variants, custom dimensions and seed control.

image-editmulti-reference
03

Krea 2 Large and Medium

wavespeed-ai/krea-v2-large, krea-v2-medium and krea-v2-medium-turbo text-to-image add aspect ratio, creativity and optional style-reference controls.

krea-2style-reference
04

Fast 1K-2K images with Krea 2 Turbo

wavespeed-ai/krea-v2/turbo is the 12.9B open-weights diffusion transformer distilled to 8 steps, generating aesthetic-first images at 1K to 2K in seconds, text-to-image and image-to-image.

turboopen-weights
05

Custom LoRAs on Krea 2

wavespeed-ai/krea-v2/turbo-lora runs your own LoRAs on the 8-step Krea 2 engine for personalized styles and characters.

loracustom-style

技巧

Krea 提示词技巧

让 Krea 输出更好结果的实用建议——总结自生产流水线中各类图像模型都适用的做法。

  1. 01

    描述光线、构图和风格——而不只是主体

    不要只写「一只猫」,而要写「一只虎斑猫在窗台上,柔和的午后阳光洒入,浅景深,电影感 35mm 构图」。主体 + 场景 + 光线 + 镜头语言,是最能调用图像模型训练数据的提示词公式。

  2. 02

    使用风格锚点,而不是艺术家姓名

    「编辑摄影风格」或「影棚产品图,白色无缝背景」胜过含糊的「高质量、杰作」套话,同时也避免了在商业作品中点名在世艺术家所带来的法律 / 授权顾虑。

  3. 03

    明确指定分辨率和画幅比例

    不要依赖默认值。请预先设定目标画幅比例(1:1、4:3、16:9)和分辨率。事后裁剪或放大会损失保真度,而这些本可以在首次生成时由模型正确安排。

  4. 04

    先在锁定的种子上迭代,再重新抽取

    锁定种子,每次只改动一个提示词元素。比每次修改都重新随机抽取种子快得多——您可以隔离每次提示词修改的因果关系,用更少的总生成次数达到目标图像。

  5. 05

    精修使用编辑端点,而不是整体重新生成

    先生成一次基础图像,再用模型的编辑 / 局部重绘端点精修特定元素——文字、光线、个别主体。编辑会保留您喜欢的基础图像的一切内容,且每次迭代的成本低于整体重新生成。

定价

Krea API 定价

按输出计费。最终费用会随你在各变体 Playground 中设置的参数(分辨率、时长、输出数量、参考素材)而变化。

起步价

$0.012

7 个端点 · Krea

打开 Playground
端点类型起步价
krea/v3/editimage-to-image$0.03
krea/v3/text-to-imagetext-to-image$0.03
wavespeed-ai/krea-v2-large/text-to-imagetext-to-image$0.06
wavespeed-ai/krea-v2-medium-turbo/text-to-imagetext-to-image$0.015
wavespeed-ai/krea-v2-medium/text-to-imagetext-to-image$0.03
wavespeed-ai/krea-v2/turbo-loratext-to-image$0.018
wavespeed-ai/krea-v2/turbotext-to-image$0.012

API

调用 Krea API

在 wavespeed.ai/accesskey 注册并获取 API 密钥,然后通过 REST 提交预测。Playground 可以为任意输入组合生成可直接粘贴的示例代码。

POSThttps://api.wavespeed.ai/api/v3/krea/v3/text-to-image

# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
  -X POST "https://api.wavespeed.ai/api/v3/krea/v3/text-to-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "1024*1024",
    "reasoning_level": "low",
    "model": "berry",
    "output_format": "png"
}')

TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
  printf 'Submission response did not contain a prediction id
' >&2
  exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"

# 2. Poll until the prediction finishes.
while true; do
  RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
    -H "Authorization: Bearer $WAVESPEED_API_KEY")
  RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
  STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
  case "$STATUS" in
    completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
    failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
    *) sleep 2 ;;
  esac
done

对比

Krea 与其他方案对比

在 WaveSpeedAI 上,何时应选择 Krea 而不是同类模型。

Krea 对比 Seedream 5 Pro

Seedream 5 Pro emphasizes design understanding and multi-reference editing with output format controls. Krea adds style-reference controls and an open-weights Turbo model with LoRA support.

Krea 对比 FLUX.2

FLUX.2 is Black Forest Labs' open-weight family. Krea 2 Turbo is another open-weights option, distilled to 8 steps for 1K-2K output.

常见问题

Krea API — 常见问题

定价、许可、集成——关于在 WaveSpeedAI 上运行 Krea 的常见问题。

Krea API 是什么?

Krea 是 Krea 的图像生成模型,在 WaveSpeedAI 上以 REST API 形式提供。Krea API on WaveSpeedAI — Krea V3 text-to-image and multi-reference edit, plus Krea 2 Large, Medium, Medium Turbo and the open-weights Krea 2 Turbo with LoRA support, all through one REST API.你可以通过编程方式调用它,也可以在上方链接的 Playground 中试用。

如何调用 Krea API?

注册 WaveSpeedAI 账号,从 /accesskey 复制你的 API 密钥,然后把输入以 JSON 形式 POST 到 https://api.wavespeed.ai/api/v3/krea/v3/text-to-image。端点会返回预测 ID。从大约每 2 秒一次开始轮询结果端点,长耗时任务可适当拉长间隔,并在任何终止状态时停止。上方有面向生产环境的 Python / Node.js / cURL 示例。

Krea API 的费用是多少?

Krea $0.012 起。实际费用会随你设置的参数(分辨率、时长、输出数量、参考素材)而变化。Playground 中“生成”按钮旁的实时费用预览会显示你当前输入对应的准确价格。

有哪些 Krea 变体可用?

WaveSpeedAI 托管了 7 个已上线的 Krea 端点:krea/v3/edit, krea/v3/text-to-image, wavespeed-ai/krea-v2-large/text-to-image, wavespeed-ai/krea-v2-medium-turbo/text-to-image, wavespeed-ai/krea-v2-medium/text-to-image, wavespeed-ai/krea-v2/turbo-lora, wavespeed-ai/krea-v2/turbo。每个变体都有自己的 Playground 页面和定价。

Krea 的输出可以商用吗?

商用权利遵循 Krea 的模型许可。大多数 Krea 模型允许商用输出;具体许可摘要请查看各模型的 Playground 页面,平台层面的条件请参阅 WaveSpeedAI 的服务条款。

为什么要在 WaveSpeedAI 上使用 Krea,而不是直接对接?

一个 API 密钥、一个账单账户,即可使用 Krea 以及来自其他提供方的 1,000 多个 AI 模型。无需逐家配置 SDK,无需应对各自独立的速率限制,也无需为每家重写集成代码。价格通常与 Krea 直接提供的 API 持平或更低。

在 WaveSpeedAI 上用 Krea 开始构建

注册即送免费体验额度。一个 API 密钥,即可使用来自 Krea 及其他所有提供方的 1,000 多个 AI 模型。