Skip to main content
POST
/
ms
/
v1
/
images
/
generations
OpenAI SDK — images.generate (sync)
curl --request POST \
  --url https://api.mountsea.ai/ms/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-image-2",
  "prompt": "A cinematic scene with soft natural lighting.",
  "size": "1024x1024",
  "quality": "high",
  "n": 1
}
'
{
  "created": 123,
  "data": [
    {
      "b64_json": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required
Example:

"gpt-image-2"

prompt
string
required
n
integer

Maps to num_images

size
string
Example:

"1024x1024"

quality
enum<string>
Available options:
low,
medium,
high
output_format
enum<string>
Available options:
png,
jpeg,
webp

Response

OpenAI ImagesResponse (data[].b64_json)

created
integer
data
object[]