# demand.ai API ## API Docs - [Generate a completion](https://docs.demandai.de/generate-a-completion-21093498e0.md): Generate a response for a given prompt with a provided model. This is a streaming endpoint, so there will be a series of responses. The final response object will include statistics and additional data from the request. - [Generate a chat completion](https://docs.demandai.de/generate-a-chat-completion-21093499e0.md): Generate the next message in a chat with a provided model. This is a streaming endpoint, so there will be a series of responses. Streaming can be disabled using 'stream': false. The final response object will include statistics and additional data from the request. - [Generate Embeddings](https://docs.demandai.de/generate-embeddings-23754298e0.md): Generate embeddings from a model ## Schemas - Schemas [postGenerate](https://docs.demandai.de/postgenerate-9202684d0.md): - Schemas [postChat](https://docs.demandai.de/postchat-9202685d0.md): - Schemas [generateResponse](https://docs.demandai.de/generateresponse-9202686d0.md): - Schemas [chatResponse](https://docs.demandai.de/chatresponse-9202687d0.md): - Schemas [chatResponseFinal](https://docs.demandai.de/chatresponsefinal-9202688d0.md): - Schemas [Success](https://docs.demandai.de/success-9202689d0.md): - Schemas [postEmbed](https://docs.demandai.de/postembed-10647467d0.md): - Schemas [Error](https://docs.demandai.de/error-9202690d0.md): - Schemas [embedResponse](https://docs.demandai.de/embedresponse-10647468d0.md): - Response [Unauthorized](https://docs.demandai.de/unauthorized-10647469d0.md): - Response [BadRequest](https://docs.demandai.de/badrequest-10647470d0.md):