curl --request POST \
--url https://api.vivgrid.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-1",
"prompt": "A cozy reading nook with plants and warm light",
"size": "1024x1024",
"response_format": "url"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}Creates an image from a text prompt (OpenAI-compatible).
curl --request POST \
--url https://api.vivgrid.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-1",
"prompt": "A cozy reading nook with plants and warm light",
"size": "1024x1024",
"response_format": "url"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The model to use for image generation. gpt-image-1.5 supported.
A text description of the desired image(s). The maximum length is 32000 characters.
The number of images to generate. Must be between 1 and 10.
1 <= x <= 10The size of the generated images. Must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default value).
1024x1024, 1536x1024, 1024x1536, auto The quality of the generated images.
auto, high, medium, low The format in which the generated images are returned.
png, jpeg, webp The compression level of the output images, between 0 (no compression) and 100 (maximum compression).
0 <= x <= 100