Text to Image
Image Generation
Text to Image
Generate images from text prompts
POST
Text to Image
Documentation Index
Fetch the complete documentation index at: https://docs.legnext.ai/llms.txt
Use this file to discover all available pages before exploring further.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text prompt for image generation (1-8192 characters) |
callback | string | No | Callback URL for task completion notifications |
Example Request
Response
Returns a task object with status “pending”. The task will be processed asynchronously.Use the
job_id to check task status and retrieve the generated images when the task is completed.