POST
/
v1
/
image
/
gen
/
playground
Follow the quickstart guide to get your own API Key.

Playground is a series of image generation models developed by Playground AI. See the pricing page for pricing details.

Playground V2.5

  • Latest iteration of Playground’s image generation technology
  • Cost-effective solution for high-quality image generation
  • Features:
    • Strong artistic style interpretation
    • Good composition and coherence
    • Efficient processing speed
    • Reliable output quality
  • Best for:
    • Creative projects
    • Digital art creation
    • Content generation
    • Rapid prototyping
    • Personal and commercial use

Previews

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

Prompt to use for the image generation process.

Required string length: 1 - 4000
model
enum<string>
default: playground-v2-5
Available options:
playground-v2-5
negative_prompt
string

Negative prompt to use for the image generation process.

Maximum length: 4000
count
integer
default: 1

The number of images to generate. Between 1 and 4.

Required range: 1 < x < 4
size
enum<string>
default: 1024x1024

The size of the generated images.

Available options:
1024x1024,
768x1344,
1344x768
step
integer
default: 30

Number of steps to use for the image generation process. Between 1 and 50.

Required range: 1 < x < 50
seed
integer

Random seed to use for the image generation process. If 0, we will use a totally random seed. Between 0 and 2147483647.

Required range: x < 2147483647
safety_check
boolean
default: false

Enable a safety check for each response.

cfg_scale
number
default: 7

Classifier-free guidance scale for the image diffusion process.

Response

200 - application/json
data
object[]

An array of generated image URLs.