Actions14
- Account Actions
- Image Actions
- Job Actions
- Video Actions
Image → Imagine
AI-generatedSummary
Initiates an image generation request based on a text prompt and optional configuration.
Inputs
- text (required) — The text prompt for image generation
- callback — Optional webhook URL to receive the result when the task is completed
- requestOptions — HTTP request options such as batch settings, SSL verification, proxy, and timeout
Output shape
a single job object containing the generation task identifier and status
The operation returns a job record; subsequent calls may be needed to retrieve the final image.
Examples
Example 1: Create an image from a prompt
text: 'A cyberpunk landscape', callback: 'https://example.com/webhook', requestOptions: {batchSize: 5, batchInterval: 1000}