# Images

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/http-api/images/
> Summary: The images endpoints of the Tracon HTTP API — 1 operations.

1 operations. `{prefix}` is the route prefix passed to
`MapTracon`; the template uses `/tracon`.

## POST {prefix}/api/images/generate

**Operation ID:** `TraconGenerateImage`

**Generates images and saves them as attachments.**

This is an operator action outside a run. Generated images are saved as attachments and the response returns their descriptors and configured cost. To record usage in tool_invocations, use the agent's generate_image tool instead. Returns 403 when the tenant's egress policy does not allow the image provider, or when the tenant has its own credential for it: the generator uses the setup credential, and the image is not generated on it.

**Authorization:** bearer authentication; `Operator` role policy when that policy is registered; `RunsWrite` API-key scope.

**Request body** (required):

- `application/json` → [`ImageGenerationOperatorRequest`](/http-api/schemas/imagegenerationoperatorrequest/)

| Response | Body | Headers |
|---|---|---|
| **200** OK | `application/json` → [`ImageGenerationOperatorResponse`](/http-api/schemas/imagegenerationoperatorresponse/) | — |
| **400** Bad Request | `application/problem+json` → [`ProblemDetails`](/http-api/schemas/problemdetails/) | — |
| **403** Forbidden | `application/problem+json` → [`ProblemDetails`](/http-api/schemas/problemdetails/) | — |
| **502** Bad Gateway | `application/problem+json` → [`ProblemDetails`](/http-api/schemas/problemdetails/) | — |
