POST https://api.novita.ai/openai/v1/images/generations
Ming Image — an image generation model family. ming-image-0.1-design supports text-to-image generation using the OpenAI Image generations protocol.
ming-image-0.1-design: Supports text-to-image, using the OpenAI Image generations protocol.ming-image-0.1-design-layer: Only supports layer decoupling, using the OpenAI Image edits protocol (see the Ming Image Layer Decoupling API).
Request Headers
Request Body
The form in which the image is returned, default is
b64_json. Available values: url, b64_json. Note: url is valid for 24 hours.The output image size, default
auto selects automatically based on the model. Format "{w}x{h}", e.g. "1024x1024".ming-image-0.1-design size only supports 1k and above, e.g. "1024x1024", "2048x2048".Controls whether a watermark is added to the AI-generated image.
true: enables the explicit watermark and implicit digital watermark on AI-generated images, complying with policy requirements. false: disables all watermarks.Response
The array of returned images, each element contains the information of one generated image.
Example
Request:
Response: