I use chatgpt from a JS script on an HTML page, is it possible to do the same with dall-e, can I integrate it into the gpt4 API or do I need to make a separate request and script?
Hi and welcome to the Developer Forum!
Not sure what you mean by a JS script and chatgpt, ChatGPT is a website implementation of the API.
If you are using an SDK or scrapper app to use the ChatGPT website as a pseudo API then you are breaking the terms of service.
Dall-E can be accessed via an API call, but it must be done by a different endpoint to the language model, see OpenAI Platform
(The same link will take you to the GPT LLM API documentation)