Image Generations

If you generate banned images, you will be banned!

Request

Images Generations (POST)

Headers

NameValue

Authorization

Bearer <token>

Body

NameTypeDescription

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="sdxl",
    prompt="cat",
)

print(response)

Last updated