---
title: "Generate an NFT image"
method: POST
path: "/v2/farcaster/nft/image/"
tags: ["Onchain"]
---

# Generate an NFT image

`POST /v2/farcaster/nft/image/`

Generate a new image or edit existing images using AI. Returns a publicly accessible URL to the generated image.

## Headers

- `x-wallet-id` string, required

## Request body

- object
  - `format` 'png' | 'jpeg' | 'webp' — Output image format (default: png)
  - `height` integer — Output image height in pixels (default: 1024)
  - `high_fidelity` boolean — Use the high-fidelity model (slower but more detailed). Default: false.
  - `prompt` string, required — Text prompt describing the image to generate
  - `source_image_urls` string[] — Optional array of source image URLs to edit or use as reference (max 5)
  - `width` integer — Output image width in pixels (default: 1024)

## Response `200`

Success

- object
  - `image_url` string, uri, required

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Resource not found
- `500` — Server Error

---

[API](https://skmtc.net/neynar/apis/neynar-api.md) · [All operations](https://skmtc.net/neynar/apis/neynar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neynar/neynar-api/versions/dbb91bfb0d1a/schema)
