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. To generate from source images, send the same request as multipart/form-data with the images in Files.

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 <= 32000 characters

    userIdentifier stringnullable

    Possible values: <= 256 characters

    channel stringnullable

    Possible values: <= 64 characters

Responses​

OK

Schema

    instanceId uuid
    imageUrl stringnullable

    cost

    object

    amount double
    currency stringnullable

    usage

    object

    inputUnit stringnullable
    input int32nullable
    outputUnit stringnullable
    output int32nullable
Loading...