Introduction
Creating images from text descriptions can be tricky without the right tools. The DALL-E API helps solve this by turning your words into pictures automatically.
Jump into concepts and practice - no test required
Imagine telling an artist exactly what you want to see in a painting, and they create it for you instantly. The DALL-E API works like that artist, turning your words into pictures without delay.
┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │ User sends │─────▶│ DALL-E API │─────▶│ API returns │ │ text prompt │ │ processes │ │ generated │ │ and options │ │ request │ │ images │ └───────────────┘ └───────────────┘ └───────────────┘ ▲ │ │ ▼ ┌───────────────┐ ┌───────────────┐ │ User includes │ │ User displays │ │ API key for │ │ or saves │ │ authentication│ │ images │ └───────────────┘ └───────────────┘
response = client.images.generate(prompt='sunset over mountains', n=1, size='256x256') print(response.data[0].url)
response = client.images.generate(prompt='a dog', n=2, size='1024x1024') print(response.url)