Skip to main content
POST
AI Image - Text to Image

Introduction

Submit text-to-image task, used to generate new images based on text description.

Authentication

string
required
Bearer Token, e.g., Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... How to get: Obtain via the POST interface in the Authentication module at the top left, https://docs.leapx-hub.com/en/leapx-lab-v4/endpoint/get-token

Request Parameters

string
required
Image description prompt
string
Image size, e.g., 512x512, 1024x1024

Example Code

Response Example