Generate image
generate_imageCreate images with your own OpenAI or Gemini API key and receive workspace asset IDs for use in videos, carousels, and post drafts.
Instructions
Generate image(s) with the user’s own API keys (BYO-key: OpenAI or Gemini; falls back to a labelled mock when no keys are set). Returns workspace asset ids usable in render_video, render_carousel, and post drafts.
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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| label | No | Human-readable label stored on the asset | |
| aspect | No | square | |
| prompt | Yes | ||
| provider | No | Force a provider by name: openai | gemini | mock |