Loading...
Loading...
Compare original and translation side by side
requestsrequestsclawdbot config set skill.krea_api.key_id YOUR_KEY_ID
clawdbot config set skill.krea_api.secret YOUR_SECRETclawdbot config set skill.krea_api.key_id YOUR_KEY_ID
clawdbot config set skill.krea_api.secret YOUR_SECRETYou: Generate a sunset over the ocean with Flux
Klawf: Creates the image and returns the URL你:用Flux生成一张海上日落的图片
Klawf:创建图片并返回URLfrom krea_api import KreaAPI
api = KreaAPI(
key_id="your-key-id",
secret="your-secret"
)from krea_api import KreaAPI
api = KreaAPI(
key_id="your-key-id",
secret="your-secret"
)undefinedundefined| Model | Endpoint |
|---|---|
| flux | |
| flux-kontext | |
| flux-1.1-pro | |
| imagen-3 | |
| imagen-4 | |
| ideogram-3.0 | |
| seedream-4 | |
python3 krea_api.py --list-models| 模型 | 接口地址 |
|---|---|
| flux | |
| flux-kontext | |
| flux-1.1-pro | |
| imagen-3 | |
| imagen-4 | |
| ideogram-3.0 | |
| seedream-4 | |
python3 krea_api.py --list-models| Parameter | Type | Default | Description |
|---|---|---|---|
| prompt | str | required | Image description (max 1800 chars) |
| model | str | "flux" | Model name from table above |
| width | int | 1024 | Image width (512-2368) |
| height | int | 1024 | Image height (512-2368) |
| steps | int | 25 | Generation steps (1-100) |
| guidance_scale | float | 3.0 | Guidance scale (0-24) |
| seed | str | None | Random seed for reproducibility |
| webhook_url | str | None | URL for completion notification |
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| prompt | 字符串 | 必填 | 图片描述(最多1800字符) |
| model | 字符串 | "flux" | 上述表格中的模型名称 |
| width | 整数 | 1024 | 图片宽度(512-2368) |
| height | 整数 | 1024 | 图片高度(512-2368) |
| steps | 整数 | 25 | 生成步数(1-100) |
| guidance_scale | 浮点数 | 3.0 | 引导系数(0-24) |
| seed | 字符串 | None | 用于结果复现的随机种子 |
| webhook_url | 字符串 | None | 用于接收完成通知的URL |
/v1/images/flux/generate/image/bfl/flux-1-dev/v1/images/flux/generate/image/bfl/flux-1-dev