Estimate the price of a text-to-image generation request.
Estimate the cost of an image generation job before submitting it. Request body mirrors the fields used byDocumentation Index
Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
/api/v2/images/generations.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
Calculated price for text2img inference.