GPT4All
  • 😇Welcome!
  • Information
    • 👑Premium Access
    • 😭Limits
    • 🤖Models
  • Main
    • 🛠️Receiving a API token
    • 📒API Endpoint
  • Api
    • Models
    • Chat Completions
    • Image Generations
  • Contact Information
    • 👁️Links
Powered by GitBook
On this page
  • Request
  • Python
  1. Api

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)
PreviousChat CompletionsNextLinks

Last updated 8 months ago