Endpoint for requesting text2img inference
Text-to-Image generates images from text prompts. The endpoint returns a ready-to-use image URL and a task ID to track processing status. Ideal for apps needing automated image creation.Documentation Index
Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
slug, check specific limits and features, and verify LoRA availability. Please omit the LoRA parameter by default during initial testing.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
application/json Image generation parameters
The main prompt for image generation
"A beautiful sunset over mountains"
The model to use for image generation. Available models can be retrieved via the GET /api/v1/client/models endpoint.
"Flux1schnell"
Width of the generated image in pixels
512
Height of the generated image in pixels
512
Guidance scale for the generation
7.5
Number of inference steps
20
Random seed for generation
42
Elements to avoid in the generated image
"blur, darkness, noise"
Array of LoRA models to apply
Optional HTTPS URL to receive webhook notifications for job status changes (processing, completed, failed). Must be HTTPS. Max 2048 characters. See Webhook Documentation for payload structure and authentication details.
2048"https://your-server.com/webhooks/deapi"
ID of the inference request.
Information from success endpoint