Docs playground /pg/images/generations
API reference

image generation

OpenAI compatible image generation.

POST/pg/images/generations

Body Parametersapplication/json

model* string

Model name / model ID

n integer

Number of samples to generate

prompt* string

Text prompt

size string

Output size, e.g. 1024x1024

Responses

200 success application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example
1{
2"model": "string",
3"prompt": "string"
4}
Code Sample cURL
1curl -X POST "https://api.digislash.com/pg/images/generations" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"model": "string",
6"prompt": "string"
7}'
Response
1▼{
2"data": {},
3"success": true
4}