Images
Generate, edit, and create variations of images using DALL-E models. OpenAI-compatible.
Edit image with text instructions
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
multipart/form-data
The model to use for image editing.
Number of images to generate (1-10).
int32Compression level (0-100%) for webp/jpeg output.
int32A text description of the desired edit. Max 1000 chars for dall-e-2, 32000 for GPT image models.
Edit image in streaming mode. GPT image models only.
Unique identifier for the end-user for abuse detection.
Response Body
application/json
curl -X POST "https://loading/api/v1/images/edits" \ -F prompt="string"{
"background": "string",
"created": 0,
"data": [
{
"b64_json": "string",
"revised_prompt": "string",
"url": "string"
}
],
"output_format": "string",
"quality": "string",
"size": "string",
"usage": {}
}Create image from text prompt
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
The model to use for image generation.
Number of images to generate (1-10). For dall-e-3, only n=1 is supported.
int32Compression level (0-100%) for webp/jpeg output. GPT image models only.
int32A text description of the desired image(s). Max 32000 chars for GPT image models, 1000 for dall-e-2, 4000 for dall-e-3.
Generate image in streaming mode. GPT image models only.
Unique identifier for the end-user for abuse detection.
Response Body
application/json
curl -X POST "https://loading/api/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string" }'{
"background": "string",
"created": 0,
"data": [
{
"b64_json": "string",
"revised_prompt": "string",
"url": "string"
}
],
"output_format": "string",
"quality": "string",
"size": "string",
"usage": {}
}Create image variations
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
multipart/form-data
The model to use. Only dall-e-2 is supported for variations.
Number of images to generate (1-10).
int32Unique identifier for the end-user for abuse detection.
Response Body
application/json
curl -X POST "https://loading/api/v1/images/variations"{
"background": "string",
"created": 0,
"data": [
{
"b64_json": "string",
"revised_prompt": "string",
"url": "string"
}
],
"output_format": "string",
"quality": "string",
"size": "string",
"usage": {}
}