Image Generations

If you generate banned images, you will be banned!

Request

Images Generations (POST)

Headers

Name
Value

Authorization

Bearer <token>

Body

Name
Type
Description

prompt*

string

Prompt

model*

string

Model

quality

string

Quality

Python

from openai import OpenAI

client = OpenAI(api_key="YOUR_TOKEN", base_url="https://api.gpt4-all.xyz/v1")

response = client.images.generate(
    model="dall-e-3",
    prompt="cat",
)

print(response)

Last updated