Generate an image from a text prompt.
POST/api/v2/Image/generate
Generates an image using an AI image generation model based on the provided text prompt. The generated image is uploaded as a public file and a download URL is returned.
Request
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The image generation request containing the model ID, prompt, and optional user identifier.
Possible values: non-empty and <= 1000 characters
Possible values: <= 256 characters
Possible values: <= 100 characters
Body
The image generation request containing the model ID, prompt, and optional user identifier.
Possible values: non-empty and <= 1000 characters
Possible values: <= 256 characters
Possible values: <= 100 characters
Body
The image generation request containing the model ID, prompt, and optional user identifier.
Possible values: non-empty and <= 1000 characters
Possible values: <= 256 characters
Possible values: <= 100 characters
Responses
- 200
- 400
- 401
- 403
- 500
OK
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
cost
object
{
"instanceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"imageUrl": "string",
"cost": {
"amount": 0,
"currency": "string"
}
}
- Schema
- Example (from schema)
Schema
cost
object
{
"instanceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"imageUrl": "string",
"cost": {
"amount": 0,
"currency": "string"
}
}
- Schema
- Example (from schema)
Schema
cost
object
{
"instanceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"imageUrl": "string",
"cost": {
"amount": 0,
"currency": "string"
}
}
There was a validation error. Please check your request data.
- application/json
- Schema
- Example (from schema)
Schema
errors
object
nullable
{
"message": "string",
"errors": {}
}
The user is unauthorized or the session expired
The user does not have permission
There was an unexpected error