image_generations
Creates, updates, deletes, gets or lists an image_generations resource.
Overview
| Name | image_generations |
| Type | Resource |
| Id | digitalocean.inference.image_generations |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
inference_create_image | exec | prompt, model, n | Creates a high-quality image from a text prompt using GPT-IMAGE-1, the latest image generation model with automatic prompt optimization and enhanced visual capabilities. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|
Lifecycle Methods
- inference_create_image
Creates a high-quality image from a text prompt using GPT-IMAGE-1, the latest image generation model with automatic prompt optimization and enhanced visual capabilities.
EXEC digitalocean.inference.image_generations.inference_create_image
@@json=
'{
"prompt": "{{ prompt }}",
"model": "{{ model }}",
"moderation": "{{ moderation }}",
"background": "{{ background }}",
"output_format": "{{ output_format }}",
"output_compression": {{ output_compression }},
"n": {{ n }},
"quality": "{{ quality }}",
"size": "{{ size }}",
"stream": {{ stream }},
"partial_images": {{ partial_images }},
"user": "{{ user }}"
}'
;