Skip to main content

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

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The image generation request containing the model ID, prompt, and optional user identifier.

    modelId uuidnullable
    prompt stringrequired

    Possible values: non-empty and <= 1000 characters

    userIdentifier stringnullable

    Possible values: <= 256 characters

    channel stringnullable

    Possible values: <= 100 characters

Responses

OK

Schema

    instanceId uuid
    imageUrl stringnullable

    cost

    object

    amount double
    currency stringnullable
Loading...