计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
xai-grok-imagine-image-edit【效率与协作】XAI | Grok | Imagine | Image Edit. Edit images with text prompts using xAI Grok Imagine. Triggers: image edit, grok, xai, edit image, modify
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Edit existing images using text descriptions with xAI's Grok Imagine. Supports multiple output images and various output formats.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "xai-grok-imagine-image-edit",
"version": "0.0.1",
"input": {
"prompt": "Remove the background and replace it with a tropical beach",
"image_url": "https://example.com/portrait.jpg",
"num_images": 1,
"output_format": "jpeg"
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| image_url | string | URL of the image to edit. | |
| num_images | integer | 1 | Number of images to generate. |
| output_format | string | jpeg | Output format. enum: jpeg, png, webp |
| prompt | string | Text description of the desired edit. |
Background replacement:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "xai-grok-imagine-image-edit",
"version": "0.0.1",
"input": {
"prompt": "Replace the background with a futuristic sci-fi cityscape",
"image_url": "https://example.com/person-standing.jpg",
"num_images": 2,
"output_format": "png"
}
}'
Object modification:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "xai-grok-imagine-image-edit",
"version": "0.0.1",
"input": {
"prompt": "Change the car color from blue to red",
"image_url": "https://example.com/blue-car.jpg",
"output_format": "jpeg"
}
}'