Skip to content

Basic text to image

The basic image generation type. Once the task moves out of the waiting queue, it typically completes within a few seconds. This task costs 5 credits, and no additional credits cost by parameters.

Endpoint

Parameters

Required parameters

type: Must be set to text_to_image.

prompt: A text value that directs the model generation. The maximum prompt length is 1024 characters, equivalent to approximately 100 words. The API supports multiple languages. However, emojis and certain special Unicode characters are not supported.

Optional parameters

negative_prompt: Unlike prompt, it provides a reverse direction to assist in generating content contrasting with the original prompt. The maximum length is 255 characters.

Returns

task_id: The identifier for the successfully submitted task.