createImageGeneration

Generate 1 to 10 images from a text prompt with the EU image model and return their URLs; every image is billed in credits. Requires project.files.write.

Arguments

  • inputCreateImageGenerationInput!required

  • input.projectReferenceString!required

    Project UUID, slug or configured domain.

  • input.promptString!required

    Text description of the desired image (max 1000 characters)

  • input.countInt

    Number of images to generate (1-10, default: 1)

  • input.seedInt

    Random seed for reproducible generation

Responses

mutation CreateImageGeneration($input: CreateImageGenerationInput!) {  createImageGeneration(input: $input) {    sources    count    requestedCount    generatedCount    failedCount    skippedCount    results {      index      outcome      url      uploadId    }  }}
{  "data": {    "createImageGeneration": {      "sources": [        "string"      ],      "count": 0,      "requestedCount": 0,      "generatedCount": 0,      "failedCount": 0,      "skippedCount": 0,      "results": [        {          "index": 0,          "outcome": "generated",          "url": "https://example.com",          "uploadId": "string"        }      ]    }  }}

The ImageGeneration! in data.createImageGeneration.