> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# generate_image

> Makes one image from a prompt with PostChamp Image Studio and optionally attaches it to a post.

{/* Generated by apps/docs/scripts/generate.ts. Do not edit by hand. */}

**Make an image** · Images, carousels and video

Makes one image from a prompt with PostChamp Image Studio and optionally attaches it to a post. Costs 25 credits (charged when ready) and counts toward the daily image limit; if it is still running after 25 s, call again with imageId to check it.

* **Credits:** 25
* **Needs confirmation:** no
* **In the ChatGPT app:** no

## Input

**prompt** `string`

What the image shows (1 to 4,000 characters). Required unless imageId is given. Length 1–4000.

**aspectRatio** `enum`

One of: `1:1`, `4:5`, `2:3`, `3:2`, `16:9`, `9:16`. Default: `"1:1"`.

**useBrandKit** `boolean`

Use the workspace Brand Kit. Default: the workspace's own setting.

**postId** `string`

Attach the image to this post once it is ready. Format: `uuid`.

**imageId** `string`

Check (and attach) an image started earlier instead of making a new one. Free. Format: `uuid`.

**idempotencyKey** `string`

Optional. The same key with the same arguments never starts (or charges) a second job. Length 8–80.

**workspace** `string`

Workspace id or exact name. Required when this connection can use more than one workspace (see list\_workspaces). Length 1–200.

## Example call

```json Tool call
{
  "name": "generate_image",
  "arguments": {}
}
```

## Related

* [All MCP tools](/mcp/tools.md)
* [Connect an assistant](/mcp/quickstart.md)
* [Limits and errors](/mcp/limits-and-errors.md)
