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

# Create Image

`POST /v1/images/generations`

OpenAI-compatible image generation endpoint.

Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use the shared "default" user

## Request body

- ImageGenerationRequest — OpenAI-compatible image generation request. Fields are derived from any-llm's ``ImageGenerationParams`` (see ``_schema_derive``) so the schema cannot silently drop a param any-llm forwards.
  - `model` string, required
  - `n` integer, nullable
  - `prompt` string, required
  - `quality` string, nullable
  - `response_format` string, nullable
  - `size` string, nullable
  - `style` string, nullable
  - `user` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.net/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/otari/versions/9efeac9dd037/schema)
