Actions7
Overview
The Image - Get Result operation in the "Azure OpenAI by YOOV" n8n node retrieves the result of a previously requested image generation task from Azure OpenAI. This is useful when you have initiated an image generation request and want to check its status or obtain the generated image(s) using the unique operation ID provided at submission time.
Common scenarios:
- Polling for completion of asynchronous image generation jobs.
- Fetching generated images or their metadata after submitting a prompt.
- Integrating AI-generated images into automated workflows, such as content creation pipelines or digital asset management systems.
Example:
After requesting an image generation with a specific prompt, use this operation (with the returned Operation ID) to retrieve the resulting image(s) once processing is complete.
Properties
Name | Meaning |
---|---|
API Version | The version of the Azure OpenAI API to use. Options: 2023-06-01-preview . |
Operation ID | The GUID that identifies the original image generation request. Obtain this from the initial request. |
Output
The output will be a JSON object containing the result of the image generation operation. The structure typically includes:
- Status of the operation (e.g., succeeded, running, failed).
- Metadata about the generated image(s), such as URLs, creation timestamps, and other relevant details.
- If the operation is not yet complete, the status field will indicate so.
Example output:
{
"status": "succeeded",
"created": "2024-06-10T12:34:56Z",
"result": {
"images": [
{
"url": "https://example.com/generated-image1.png"
}
]
}
}
Note: The exact fields may vary depending on the Azure OpenAI API response.
Dependencies
- External Service: Requires access to Azure OpenAI services.
- API Key/Credentials: You must configure the
yoovAzureOpenAIApi
credential in n8n, which should include your Azure OpenAI endpoint and authentication key. - Environment Variables: None required beyond n8n credential configuration.
Troubleshooting
Common issues:
- Invalid Operation ID: If the Operation ID is incorrect or expired, the node may return an error indicating the operation was not found.
- Operation Not Complete: If the image generation is still processing, the status may be
running
or similar, and no image URL will be present yet. - Authentication Errors: Missing or invalid credentials will result in authentication errors from the Azure API.
Error messages and resolutions:
"Operation not found"
: Double-check the Operation ID; ensure it matches the one returned from the image generation request."Unauthorized"
or"Invalid API key"
: Verify your Azure OpenAI credentials in n8n."Unexpected token ... in JSON"
: This may occur if the API response format changes or is malformed; check the API version and response.