Image generation
Playground models
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Prompt to use for the image generation process.
Required string length:
1 - 4000
Available options:
playground-v2-5
Negative prompt to use for the image generation process.
Maximum length:
4000
The number of images to generate. Between 1 and 4.
Required range:
1 < x < 4
The size of the generated images.
Available options:
1024x1024
, 768x1344
, 1344x768
Number of steps to use for the image generation process. Between 1 and 50.
Required range:
1 < x < 50
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
Enable a safety check for each response.
Classifier-free guidance scale for the image diffusion process.
Response
200 - application/json
An array of generated image URLs.