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

NameTypeDescription
prompt requiredstringA text description of the desired image(s). Supports up to 32,000 characters…
model requiredstringThe model to use for image generation.
moderationstringThe moderation setting for the image generation. Supported values: low, auto.
backgroundstringThe background setting for the image generation. Supported values…
output_formatstringThe output format for the image generation. Supported values: png, webp, jpeg.
output_compressionintegerThe output compression level for the image generation (0-100).
n requiredintegerThe number of images to generate. Must be between 1 and 10.
qualitystringThe quality of the image that will be generated. Supported values: auto, high…
sizeauto | 1536x1024 | 1024x1536The size of the generated images. GPT-IMAGE-2 supports: auto (automatically…
streambooleanIf set to true, partial image data will be streamed as the image is being…
partial_imagesintegerThe number of partial image chunks to return during streaming generation.…
userstringA 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:

call_tool arguments
{
  "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:

Run in your terminal
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 ….

More from DigitalOcean API