---
title: "Generate idea visual"
method: POST
path: "/social-post-ideas/generate-idea-visual"
tags: ["Social Post Ideas"]
---

# Generate idea visual

`POST /social-post-ideas/generate-idea-visual`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/social-post-ideas/generate-idea-visual`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/social-post-ideas/generate-idea-visual/post.ts> (a function with typed inputs; its response is checked against the schema)

Generates an on-demand visual (image) for a social post idea from a prompt, optionally grounded by up to two `referenceImageUrls` and a target `imageSize`.

## Headers

- `Synup-Version` string, required
- `Authorization` string, required

## Request body

- GenerateIdeaVisualRequest
  - `ideaId` string, required
  - `prompt` string
  - `referenceImageUrls` string[]
  - `imageSize` string

## Response `200`

Successful response

- object
  - `data` object
    - `generateIdeaVisual` RegenerateResponse
      - `success` boolean
      - `idea` object: The updated post idea (see Post idea for the full shape).
      - `error` Error
        - `message` string
        - `code` string
        - `contextInfo` object[]
          - `key` string
          - `value` string

## Other responses

- `401`: Unauthorized - Invalid or missing API key

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
