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 '{
  "model": "playground-v2-5",
  "prompt": "A beautiful sunset over the ocean",
  "negative_prompt": "",
  "count": 1,
  "size": "1024x1024",
  "step": 30,
  "seed": "0",
  "safety_check": false,
  "cfg_scale": "7.0"
}'
{
  "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
Examples:

"A beautiful sunset over the ocean"

model
enum<string>
default:playground-v2-5
Available options:
playground-v2-5
Examples:

"playground-v2-5"

negative_prompt
string

Negative prompt to use for the image generation process.

Maximum length: 4000
Examples:

""

count
integer
default:1

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

Required range: 1 <= x <= 4
Examples:

1

size
enum<string>
default:1024x1024

The size of the generated images.

Available options:
1024x1024,
768x1344,
1344x768
Examples:

"1024x1024"

step
integer
default:30

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

Required range: 1 <= x <= 50
Examples:

30

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
Examples:

"0"

safety_check
boolean
default:false

Enable a safety check for each response.

Examples:

false

cfg_scale
number
default:7

Classifier-free guidance scale for the image diffusion process.

Examples:

"7.0"

Response

200 - application/json

Success

data
ImageResponseDataInner · object[]

An array of generated image URLs.

I