generate_image_with_ai
Generates a single image from a text prompt and returns its URL for use as post image content. Consumes one AI image credit per request.
Instructions
Generate one image from a text description with RecurPost AI and get its URL, which can go into image_url of post_content or add_content_in_library. Spends an AI image credit (see ai_credits).
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_text": "<prompt_text>"
},
"name": "generate_image_with_ai"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_text | Yes | Description of the image, up to 5000 characters. | |
| workspace_id | No | Workspace to act in (ws_id from workspace_list). Omit to use your default workspace. |