---
title: "Create image"
method: POST
path: "/v1/images/generations"
tags: ["Images"]
---

# Create image

`POST /v1/images/generations`

Creates an image given a prompt.

## Request body

- object
  - `model` string, required
  - `prompt` string, required
  - `n` integer
  - `size` string
  - `response_format` 'url' | 'b64_json'
  - `steps` integer
  - `user` string
  - `image` string
  - `mask_image` string
  - `mask_prompt` string
  - `outpainting_mode` 'DEFAULT' | 'PRECISE'
  - `quality` string
  - `style` string
  - `strength` number

## Response `200`

Successful response

- object
  - `created` number, required
  - `data` object[], required
    - `url` string
    - `b64_json` string
    - `revised_prompt` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/neosantara/apis/neosantara-ai-api.md) · [All operations](https://skmtc.net/neosantara/apis/neosantara-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neosantara/neosantara-ai-api/revisions/82bc74ee8650/schema)
