Docs
DallE-3 API

Dall E 3 API

OpenAI's image generation api using Dall-e 3 model.

Official Guide
We provide this cost friendly API for high throughput scenarios, there's no rate limit 🚀! For more detailed API spec, see platform.openai.com/docs/guides/images


Available models:

  1. dall-e-3

Pricing
The price of dall-e-3 call is 75% of the price of OpenAI official website. Details: LLM API | PPU Quota | Endpoint Usage


POST

https://api.goapi.xyz/v1/images/generations

This endpoint allows you to create an original image given a text prompt. When using DALL·E 3, images can have a size of 1024x1024, 1024x1792 or 1792x1024 pixels.

Parameters:

Header
NameTypeRequiredDescription
Authorizationstring✔️Bearer YOUR-GOAPI-KEY
Body
NameTypeRequiredDescription
modelstring✔️dall-e-3
promptstring✔️your image prompt
nnumber✔️the number of images, can only be '1' for DALLE3
sizestring✔️'1024x1024','1024x1792' or '1792x1024'
qualitystring'standard' or 'hd'

Response Codes:

200: OK
Successful Response
400: Bad Request
The request format does not meet the requirements.
401: Unauthorized
The API key is incorrect
500: Internal Server Error
Service is experiencing an error

Request Example

import requests
import json
 
url = 'https://api.goapi.xyz/v1/doc-images/generations'
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR-GOAPI-KEY'
}
 
 
data = {
    "model": "dall-e-3",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "size": "1024x1024"
}
 
response = requests.post(url, headers=headers, data=json.dumps(data))
 
print(response.json())