Ask a question to get started
Enter to send•Shift+Enter new line
DallEAPIWrapper()
BaseModel
Automatically inferred from env var OPENAI_API_KEY if not provided.
OPENAI_API_KEY
Base URL path for API requests, leave blank if not using a proxy or service emulator.
Automatically inferred from env var OPENAI_ORG_ID if not provided.
OPENAI_ORG_ID
Number of images to generate
Size of image to generate
Separator to use when multiple URLs are returned.
Quality of the image that will be generated
Maximum number of retries to make when generating.
Optional httpx.Client.
Build extra kwargs from additional params that were passed in.
Validate that api key and python package exists in environment.
Run query through OpenAI and parse result.
Wrapper for OpenAI's DALL-E Image Generator.
https://platform.openai.com/docs/guides/images/generations?context=node
Usage instructions:
pip install openai