OpenAIPaidOperational
Dall E 2
API model name: dall-e-2
Dall E 2 is OpenAI's image generation model, served on the Api.Airforce unified API. Access it through the OpenAI-compatible API with one key, alongside 65+ other models on Api.Airforce.
Pricing
Resolutions: 1:1
Qualities: standard
Specifications
- Provider
- OpenAI
- Type
- image generation model
What is Dall E 2 used for?
- Image generation — marketing visuals, concept art, product shots and illustrations.
Related models
Chatgpt ImageOpenAIDall E 3OpenAI · $20.00 / 1MGpt 3.5OpenAIGpt 3.5 Turbo 16kOpenAIGpt 4OpenAI · $6.42 / 1MGpt 4 0125OpenAI · $2.13 / 1MGpt 4 1106OpenAI · $2.13 / 1MGpt 4 32kOpenAIGpt 4 AllOpenAI · $5.13 / 1MGpt 4 TurboOpenAI · $2.13 / 1MGpt 4 VisionOpenAI · $2.13 / 1MGpt 4.1OpenAI · $0.42 / 1M
Dall E 2 — frequently asked questions
- How much does Dall E 2 cost?
- Dall E 2 is billed per generation rather than per token. See the pricing page for the current rate.
- What can Dall E 2 do?
- Dall E 2 is OpenAI's image generation model, accessible through the Api.Airforce API.
- Is Dall E 2 free to use?
- Dall E 2 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Dall E 2 via the API?
- Dall E 2 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID dall-e-2 with your Api.Airforce API key.
- Who makes Dall E 2?
- Dall E 2 is OpenAI's image generation model, served through the unified Api.Airforce gateway alongside 65+ other models.
Loading live metrics…
Loading live metrics…
Use Dall E 2 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass dall-e-2 as the model.
cURL
curl https://api.airforce/v1/images/generations \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-2",
"prompt": "a red panda coding"
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
img = client.images.generate(model="dall-e-2", prompt="a red panda coding")
print(img.data[0].url)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const img = await client.images.generate({ model: "dall-e-2", prompt: "a red panda coding" });
console.log(img.data[0].url);