Lepton AI
communityDeveloper platform for running AI models with fast inference and simple deployment.
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
https://api.lepton.ai/v1/chat/completionsChat completion
Parameters
modelmodel ID (stringrequiredmessagesmessages (object[]requiredmax_tokensmax tokens (integeroptionaltemperaturetemperature (numberoptionalReturns
choices[] with message.content, finish_reason; usageGET
https://api.lepton.ai/v1/modelsList models
Returns
data[] with id, owned_byPOST
https://api.lepton.ai/v1/embeddingsCreate embeddings
Parameters
inputtext (string|string[]requiredmodelmodel ID (stringrequiredReturns
data[] with embedding, index