Skip to main content
POST
/
v1
/
image
/
gen
/
playground
Playground25ImageGeneration
curl --request POST \
  --url https://openapi.monica.im/v1/image/gen/playground \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "model": "playground-v2-5",
  "negative_prompt": "<string>",
  "count": "1",
  "size": "1024x1024",
  "step": "30",
  "seed": 123,
  "safety_check": "false",
  "cfg_scale": "7"
}
'
{
  "data": [
    {
      "url": "<string>"
    }
  ]
}
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
  • Playground V2.5

Authorizations

Authorization
string
header
required

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 string length: 4000
count
integer<int32>
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<int32>
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<double>
default:7

Classifier-free guidance scale for the image diffusion process.

Response

200 - application/json

Success

data
ImageResponseDataInner · object[]

An array of generated image URLs.