metadata: {"openclaw":{"requires":{"env":["CREAAAPIKEY"]},"primaryEnv":"CREAAAPIKEY"}}
Creaa AI - Image, Edit & Video Generation
Generate and edit AI images, and generate AI videos directly from your terminal using the Creaa API.
Get your API key at: https://creaa.ai/profile -> API Keys
Top up API credits at: https://creaa.ai/pricing
Available Models
Image Models
| Model ID | Name | Credits/Image | Free Daily | Default Ratio | Max Ref Images | Capabilities |
|---|
| INLINECODE0 | Seedream 5.0 | 4 | 10 | 1:1 | 4 | texttoimage, imagetoimage |
| INLINECODE1 |
Nano Banana 2 | 10 | 5 | auto | 14 | text
toimage, image
toimage, multi
imageedit |
|
nano-banana-pro | Nano Banana Pro | 20 | 1 | auto | 10 | text
toimage, image
toimage, multi
imageedit |
|
gpt-image-1.5 | GPT Image 1.5 | 15 | 0 | 1:1 | 10 | text
toimage, image
toimage, multi
imageedit |
|
z-image-turbo | Z-Image Turbo | 1 | - | 1:1 | - | text
toimage |
Aspect ratio options per model:
- -
seedream-5.0: auto, 1:1, 3:4, 4:3, 16:9, 9:16, 2:3, 3:2, 21:9 - INLINECODE6 /
nano-banana-pro: auto, 1:1, 9:16, 16:9, 3:2, 2:3 - INLINECODE8 : 1:1, 3:2, 2:3
- INLINECODE9 : 1:1, 9:16, 16:9
Video Models
| Model ID | Name | Credits/sec | Durations (sec) | Default Duration | Capabilities |
|---|
| INLINECODE10 | Veo 3.1 | 22 | 8 | 8 | texttovideo, imagetovideo |
| INLINECODE11 |
Seedance 2.0 | 25 | 5, 10, 15 | 5 | text
tovideo, image
tovideo |
|
sora-2-pro | Sora 2 Pro | 12 | 4, 8, 12, 16, 20 | 12 | text
tovideo, image
tovideo |
|
seedance-1.5-pro | Seedance 1.5 Pro | 12 | 5, 8, 12 | 5 | text
tovideo, image
tovideo, first
lastframe |
|
kling-3.0 | Kling 3.0 | 25 | 5, 10, 15 | 5 | text
tovideo, image
tovideo |
|
hailuo-2.3 | Hailuo 2.3 | 25 | 6, 10 | 6 | text
tovideo, image
tovideo |
|
runway-gen-4.5 | Runway Gen-4.5 | 30 | 5, 10 | 5 | image
tovideo |
Aspect ratio options per model:
- -
veo-3.1: 16:9, 9:16 - INLINECODE18 : 9:16, 16:9, 1:1, 3:4, 4:3
- INLINECODE19 : 9:16, 16:9
- INLINECODE20 : 9:16, 16:9, 1:1, 3:4, 4:3
- INLINECODE21 : 16:9, 9:16
- INLINECODE22 : 9:16, 16:9
- INLINECODE23 : 16:9, 9:16, 1:1, 4:3, 3:4, 21:9
Available Commands
All generation and edit tasks are asynchronous: submit a task, get a task_id, then poll for results.
Generate Image
Step 1: Submit task
CODEBLOCK0
Parameters:
- -
prompt (required): Image description - INLINECODE26 (optional): Model ID from the image models table above. Default: INLINECODE27
- INLINECODE28 (optional): Aspect ratio like
1:1, 16:9, 9:16. Must match the model's supported ratios. Default varies by model. - INLINECODE32 (optional): Number of images, 1-4. Default 1
Response:
CODEBLOCK1
Step 2: Poll status (wait 5-10 seconds between polls for images)
CODEBLOCK2
Status Response (completed):
CODEBLOCK3
Image generation typically takes 10-60 seconds. Poll every 5 seconds.
Edit Image
Use this endpoint for:
- - Single-image edit:
image_url or image_data (base64) - Multi-image reference edit / composition:
image_urls or image_data_list (base64)
Step 1: Submit task (with URL)
CODEBLOCK4
Step 1: Submit task (with base64 image data)
CODEBLOCK5
Single-image edit parameters:
- -
prompt (required): Edit instruction - INLINECODE38 (option A): Public source image URL
- INLINECODE39 (option B): Base64-encoded image data. Supports
data:image/png;base64,... prefix or raw base64 string. Max 20MB. - INLINECODE41 (optional): Model ID from the image models table above. Default: INLINECODE42
- INLINECODE43 (optional): Must match the model's supported ratios
- INLINECODE44 (optional): Number of output images, 1-4. Default 1
Provide either image_url or image_data for single-image edit. If both are provided, image_url takes priority.
Multi-image edit / composition example:
CODEBLOCK6
You can also use image_data_list with base64 strings instead of image_urls.
Multi-image edit notes:
- -
image_urls or image_data_list: 2-N images, where N depends on the model - Max reference images by model:
-
seedream-5.0: up to 4 input images
-
nano-banana-2: up to 14 input images
-
nano-banana-pro: up to 10 input images
-
gpt-image-1.5: up to 10 input images
- - Only models with
multi_image_edit capability support this mode - URLs must be public
http(s) URLs; base64 data is uploaded to storage automatically
Response:
CODEBLOCK7
Step 2: Poll status
CODEBLOCK8
Status Response (completed):
CODEBLOCK9
Image editing typically takes 10-90 seconds. Poll every 5 seconds.
Generate Video
Step 1: Submit task
CODEBLOCK10
Parameters:
- -
prompt (required): Video description - INLINECODE59 (optional): Model ID from the video models table above. Default: INLINECODE60
- INLINECODE61 (optional):
text_to_video (default) or INLINECODE63 - INLINECODE64 (option A, required for imagetovideo): URL of the source image
- INLINECODE65 (option B, required for imagetovideo): Base64-encoded image data. Supports
data:image/png;base64,... prefix or raw base64 string. Max 20MB. - INLINECODE67 (optional): Duration in seconds, must match the model's supported durations. Default varies by model.
- INLINECODE68 (optional): e.g.
16:9, 9:16, 1:1. Must match the model's supported ratios.
For image_to_video mode, provide either image_url or image_data. If both are provided, image_url takes priority.
Response:
CODEBLOCK11
Step 2: Poll status (wait 15 seconds between polls for videos)
CODEBLOCK12
Status Response (completed):
CODEBLOCK13
Status values: pending -> processing -> completed or failed.
Video generation typically takes 60-300 seconds. Poll every 15 seconds.
Unified Task Status Endpoint
Image generation, image edit, and video tasks all use the same status endpoint:
CODEBLOCK14
Keep polling until status is completed or failed.
- - For images: poll every 5 seconds
- For videos: poll every 15 seconds
List Available Models
CODEBLOCK15
Returns full model catalog with pricing, supported aspect ratios/durations, capabilities, and max_upload_images for image-edit models.
Check Usage
CODEBLOCK16
Usage is tracked against the API key's own credit pool (api_credits), not the website account balance.
Billing Notes
- - Open API requests charge the API key credit pool, not the user's main website balance.
- If task submission fails before the job is queued, credits are refunded immediately.
- If a queued task fails, credits are refunded automatically.
- For image generation and image editing, partial success is billed by successful outputs; unused credits are refunded automatically.
- For video generation, successful jobs keep the full charge; failed jobs are refunded in full.
Model Selection Tips
Image models:
- -
seedream-5.0 - Best quality, great default choice (10 free daily) - INLINECODE86 - Best default for multi-image editing / composition (5 free daily)
- INLINECODE87 - Higher quality image editing (1 free daily)
- INLINECODE88 - Strong image editing option via Replicate-backed path
- INLINECODE89 - Free, fastest generation
Video models:
- -
veo-3.1 - Highest quality, 8s fixed duration (22 credits/sec) - INLINECODE91 - Best value with long durations up to 20s (12 credits/sec)
- INLINECODE92 - Affordable with firstlastframe support (12 credits/sec)
- INLINECODE93 - High quality, flexible durations (25 credits/sec)
- INLINECODE94 - Image-to-video only, high quality
Error Handling
If any API call returns "success": false, display the error message to the user. Common errors:
- -
invalid_api_key: The API key is missing or wrong. User should check their key at https://creaa.ai/profile - INLINECODE97 : Too many requests per minute. Wait and retry.
- INLINECODE98 : Not enough credits. User should top up at https://creaa.ai/pricing
- INLINECODE99 : The image URL points to localhost, private network, or a non-http(s) source.
- INLINECODE100 : The requested model can edit a single image but cannot do multi-image composition.
metadata: {openclaw:{requires:{env:[CREAAAPIKEY]},primaryEnv:CREAAAPIKEY}}
Creaa AI - 图像、编辑与视频生成
使用 Creaa API 直接从终端生成和编辑 AI 图像,以及生成 AI 视频。
获取 API 密钥:https://creaa.ai/profile -> API 密钥
充值 API 积分:https://creaa.ai/pricing
可用模型
图像模型
| 模型 ID | 名称 | 积分/图像 | 每日免费 | 默认比例 | 最大参考图像数 | 功能 |
|---|
| seedream-5.0 | Seedream 5.0 | 4 | 10 | 1:1 | 4 | 文本转图像,图像转图像 |
| nano-banana-2 |
Nano Banana 2 | 10 | 5 | 自动 | 14 | 文本转图像,图像转图像,多图像编辑 |
| nano-banana-pro | Nano Banana Pro | 20 | 1 | 自动 | 10 | 文本转图像,图像转图像,多图像编辑 |
| gpt-image-1.5 | GPT Image 1.5 | 15 | 0 | 1:1 | 10 | 文本转图像,图像转图像,多图像编辑 |
| z-image-turbo | Z-Image Turbo | 1 | - | 1:1 | - | 文本转图像 |
各模型支持的宽高比选项:
- - seedream-5.0:自动,1:1,3:4,4:3,16:9,9:16,2:3,3:2,21:9
- nano-banana-2 / nano-banana-pro:自动,1:1,9:16,16:9,3:2,2:3
- gpt-image-1.5:1:1,3:2,2:3
- z-image-turbo:1:1,9:16,16:9
视频模型
| 模型 ID | 名称 | 积分/秒 | 时长(秒) | 默认时长 | 功能 |
|---|
| veo-3.1 | Veo 3.1 | 22 | 8 | 8 | 文本转视频,图像转视频 |
| seedance-2.0 |
Seedance 2.0 | 25 | 5,10,15 | 5 | 文本转视频,图像转视频 |
| sora-2-pro | Sora 2 Pro | 12 | 4,8,12,16,20 | 12 | 文本转视频,图像转视频 |
| seedance-1.5-pro | Seedance 1.5 Pro | 12 | 5,8,12 | 5 | 文本转视频,图像转视频,首尾帧 |
| kling-3.0 | Kling 3.0 | 25 | 5,10,15 | 5 | 文本转视频,图像转视频 |
| hailuo-2.3 | Hailuo 2.3 | 25 | 6,10 | 6 | 文本转视频,图像转视频 |
| runway-gen-4.5 | Runway Gen-4.5 | 30 | 5,10 | 5 | 图像转视频 |
各模型支持的宽高比选项:
- - veo-3.1:16:9,9:16
- seedance-2.0:9:16,16:9,1:1,3:4,4:3
- sora-2-pro:9:16,16:9
- seedance-1.5-pro:9:16,16:9,1:1,3:4,4:3
- kling-3.0:16:9,9:16
- hailuo-2.3:9:16,16:9
- runway-gen-4.5:16:9,9:16,1:1,4:3,3:4,21:9
可用命令
所有生成和编辑任务均为异步:提交任务,获取 task_id,然后轮询结果。
生成图像
步骤 1:提交任务
bash
curl -s -X POST https://creaa.ai/api/open/v1/images/generate \
-H Authorization: Bearer $CREAAAPIKEY \
-H Content-Type: application/json \
-H X-Source: openclaw \
-d {
prompt: <用户提示词>,
model: <模型ID>,
aspect_ratio: <比例>,
n: <数量>
}
参数:
- - prompt(必填):图像描述
- model(可选):上方图像模型表中的模型 ID。默认值:nano-banana-2
- aspect_ratio(可选):宽高比,如 1:1、16:9、9:16。必须与模型支持的比例匹配。默认值因模型而异。
- n(可选):图像数量,1-4。默认值 1
响应:
json
{
success: true,
task_id: abc123-def456,
task_type: image,
model: nano-banana-2
}
步骤 2:轮询状态(图像轮询间隔 5-10 秒)
bash
curl -s https://creaa.ai/api/open/v1/tasks/ \
-H Authorization: Bearer $CREAAAPIKEY \
-H X-Source: openclaw
状态响应(已完成):
json
{
success: true,
task_id: abc123-def456,
status: completed,
progress: 1.0,
result_url: https://...,
result_urls: [https://..., https://...]
}
图像生成通常需要 10-60 秒。每 5 秒轮询一次。
编辑图像
使用此端点进行:
- - 单图像编辑:imageurl 或 imagedata(base64)
- 多图像参考编辑/合成:imageurls 或 imagedata_list(base64)
步骤 1:提交任务(使用 URL)
bash
curl -s -X POST https://creaa.ai/api/open/v1/images/edit \
-H Authorization: Bearer $CREAAAPIKEY \
-H Content-Type: application/json \
-H X-Source: openclaw \
-d {
prompt: <编辑提示词>,
image_url: https://...,
model: <模型ID>,
aspect_ratio: <比例>,
n: <数量>
}
步骤 1:提交任务(使用 base64 图像数据)
bash
curl -s -X POST https://creaa.ai/api/open/v1/images/edit \
-H Authorization: Bearer $CREAAAPIKEY \
-H Content-Type: application/json \
-H X-Source: openclaw \
-d {
prompt: <编辑提示词>,
image_data: data:image/png;base64,iVBOR...,
model: <模型ID>,
aspect_ratio: <比例>,
n: <数量>
}
单图像编辑参数:
- - prompt(必填):编辑指令
- imageurl(选项 A):公开源图像 URL
- imagedata(选项 B):Base64 编码的图像数据。支持 data:image/png;base64,... 前缀或原始 base64 字符串。最大 20MB。
- model(可选):上方图像模型表中的模型 ID。默认值:nano-banana-2
- aspect_ratio(可选):必须与模型支持的比例匹配
- n(可选):输出图像数量,1-4。默认值 1
单图像编辑需提供 imageurl 或 imagedata。如果两者都提供,image_url 优先。
多图像编辑/合成示例:
bash
curl -s -X POST https://creaa.ai/api/open/v1/images/edit \
-H Authorization: Bearer $CREAAAPIKEY \
-H Content-Type: application/json \
-H X-Source: openclaw