Leonardo.ai
communityAI image generation platform — fine-tuned models, real-time canvas, and texture generation
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
/api/v1/generationsGenerate image from prompt
Parameters
widthintegeroptionalheightintegeroptionalpromptstringrequiredmodel_idstringoptionalnum_imagesintegeroptionalReturns
generation_id, images[] with url, id, nsfwGET
/api/v1/platformModelsGet available models
Returns
models[] with id, name, description, generated_images_count, typeGET
/api/v1/generations/user/{userId}Get user generations
Parameters
limitintegeroptionaluserIdstringrequiredReturns
generations[] with id, prompt, images[], model, created_at