Back to pricing

DALL-E 3

image
OpenAI
Per request

高质量文生图模型,适用于营销素材与创意设计。

Model ID: dall-e-3
Billing: Per request/image
OpenAI-compatible endpoint with a single model key
Pricing Info

$0.0400/image

Market Price

$0.0800/image

Model Documentation
Using default documentation template for this model.

DALL-E 3 Documentation

Use this model with OpenAI-compatible SDKs.

Endpoint

  • Base URL: https://your-domain.com/v1
  • Model key: dall-e-3

JavaScript / TypeScript (Official OpenAI SDK)

ts
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.NEW_API_KEY,
  baseURL: 'YOUR_BASE_URL'
})

const completion = await client.chat.completions.create({
  model: 'YOUR_MODEL_ID',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'Give me a quick intro for this model.' }
  ]
})

console.log(completion.choices[0]?.message?.content)

Python (Official OpenAI SDK)

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_NEW_API_KEY",
    base_url="YOUR_BASE_URL"
)

resp = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"}
    ]
)

print(resp.choices[0].message.content)