recraft_generate_asset
Generate an image from a prompt, remove its background, and save it directly to a file for game assets, icons, and UI elements.
Instructions
Full asset pipeline: generate image → download → optionally remove background → save to file. Perfect for game assets, icons, and UI elements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"output_path": "<output_path>"
},
"name": "recraft_generate_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size (e.g., 1024x1024, 1344x768) or ratio (e.g., 16:9, 1:1 for vector models) | 1024x1024 |
| model | No | Model: recraftv4_1, recraftv4_1_vector, recraftv4_1_pro, recraftv4_1_pro_vector, recraftv4_1_utility, recraftv4_1_utility_vector, recraftv4_1_utility_pro, recraftv4_1_utility_pro_vector, recraftv4, recraftv4_vector, recraftv4_pro, recraftv4_pro_vector, recraftv4_styles, recraftv4_styles_vector, recraftv4_styles_pro, recraftv4_styles_pro_vector, recraftv3, recraftv3_vector, recraftv2, recraftv2_vector | recraftv4 |
| style | No | Style name (V3/V2 only) | |
| prompt | Yes | Image description | |
| remove_bg | No | Remove background after generation (default: true) | |
| output_path | Yes | Where to save the final image | |
| negative_prompt | No | What to exclude |