# Create image generation

Tool: `veryfront__create_image_generation`

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

| Name                | Type                                    | Required | Description                                                 |
| ------------------- | --------------------------------------- | -------- | ----------------------------------------------------------- |
| `project_reference` | string                                  |          | Project ID or slug                                          |
| `prompt`            | string · min length 1 · max length 1000 | Yes      | Text description of the desired image (max 1000 characters) |
| `count`             | integer · min 1 · max 10 · default 1    |          | Number of images to generate (1-10, default: 1)             |
| `seed`              | integer · min 1 · max 999999            |          | Random seed for reproducible generation                     |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_image_generation",
    "arguments": {
      "prompt": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"requested_count\":1,\"generated_count\":1,\"failed_count\":0,\"skipped_count\":0,\"results\":[{\"index\":0,\"outcome\":\"generated\",\"url\":\"string\",\"upload_id\":\"string\",\"error\":null}]}"
      }
    ],
    "structuredContent": {
      "requested_count": 1,
      "generated_count": 1,
      "failed_count": 0,
      "skipped_count": 0,
      "results": [
        {
          "index": 0,
          "outcome": "generated",
          "url": "string",
          "upload_id": "string",
          "error": null
        }
      ]
    }
  }
}
```
