Overview
DALL·E 3 is OpenAI's latest text-to-image model, offering unparalleled understanding of nuance and detail. It enables users to generate exceptionally accurate images that closely adhere to provided text descriptions. Seamlessly integrated with ChatGPT, DALL·E 3 allows for intuitive prompt refinement and creative collaboration. With enhanced safety measures and a focus on responsible AI development, it sets a new standard in the field of AI image generation.
Specializations
Generates high-quality images from text prompts with enhanced understanding of context and detail.
Incorporates advanced inpainting capabilities, allowing users to edit parts of images seamlessly.
Supports complex scene generation with improved coherence and artistic style.
Integration Guide (Javascript)
To use this model through Portkey, follow these steps:
1. Install Portkey SDK:
npm install --save portkey-ai
2. Set up client with Portkey:
import OpenAI from 'openai';
import { PORTKEY_GATEWAY_URL, createHeaders } from 'portkey-ai'
const openai = new OpenAI({
apiKey: 'OPENAI_API_KEY',
baseURL: PORTKEY_GATEWAY_URL,
defaultHeaders: createHeaders({
provider: "openai",
apiKey: "PORTKEY_API_KEY"
})
});
3. Make a request:
const image = await openai.images.generate({
model:"dall-e-3",
prompt:"Lucy in the sky with diamonds",
size:"1024x1024"
})
© 2024 Portkey, Inc. All rights reserved