01.AI (Yi)
communityChinese AI startup by Kai-Fu Lee with Yi series large language models.
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.lingyiwanwu.com/v1/chat/completionsChat completion
Parameters
modelyi-large|yi-medium|yi-spark (stringrequiredmessagesconversation array (arrayrequiredmax_tokensmax tokens (integeroptionaltemperature0-2 (numberoptionalReturns
choices[] with message.content, usage with prompt_tokens, completion_tokensGET
https://api.lingyiwanwu.com/v1/modelsList models
Returns
data[] with id, object, created, owned_byPOST
https://api.lingyiwanwu.com/v1/embeddingsText embedding
Parameters
inputtext or text array (string|string[]requiredmodelyi-embedding (stringrequiredReturns
data[] with embedding, index, object; usage