Home / Servers / DigitalOcean API / inference_create_image
Generate images from text prompts
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Generate images from text prompts Creates a high-quality image from a text prompt using GPT-IMAGE-2, the latest image generation model with automatic prompt optimization and enhanced visual capabilities. [POST /v1/images/generations]
Name on the gateway: digitalocean_api__inference_create_image · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
prompt required | string | A text description of the desired image(s). Supports up to 32,000 characters… |
model required | string | The model to use for image generation. |
moderation | string | The moderation setting for the image generation. Supported values: low, auto. |
background | string | The background setting for the image generation. Supported values… |
output_format | string | The output format for the image generation. Supported values: png, webp, jpeg. |
output_compression | integer | The output compression level for the image generation (0-100). |
n required | integer | The number of images to generate. Must be between 1 and 10. |
quality | string | The quality of the image that will be generated. Supported values: auto, high… |
size | auto | 1536x1024 | 1024x1536 | The size of the generated images. GPT-IMAGE-2 supports: auto (automatically… |
stream | boolean | If set to true, partial image data will be streamed as the image is being… |
partial_images | integer | The number of partial image chunks to return during streaming generation.… |
user | string | A unique identifier representing your end-user, which can help DigitalOcean to… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__inference_create_image",
"arguments": {
"prompt": "…",
"model": "…",
"n": 0
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the generate images from text prompts tool with prompt set to ….