---
title: "createFotoAiGeneration: POST /fotoai/generations | Posty Docs"
description: "Starts a generation paid with the user's FotoAI credits, with a price ceiling (max_millicredits or quote_id) and an idempotency key. The result goes into the media library."
canonical: https://posty.hu/en/docs/api/endpoints/create-foto-ai-generation
source: https://posty.hu/en/docs/api/endpoints/create-foto-ai-generation.md
---

Other

# createFotoAiGeneration: POST /fotoai/generations

Starts a generation paid with the user's FotoAI credits, with a price ceiling (max\_millicredits or quote\_id) and an idempotency key. The result goes into the media library.

## Path

Method and path

POSThttps://api.posty.hu/public/v1/fotoai/generations

Authorization

`media:write`

operationId

`createFotoAiGeneration`

Starts a generation paid with the user's FotoAI credits, with a price ceiling (max\_millicredits or quote\_id) and an idempotency key. The result goes into the media library.

## Related

- [Authentication](https://posty.hu/en/docs/api/authentication): API key and scopes.
- [Errors and limits](https://posty.hu/en/docs/api/errors): error responses and rate limits.
- [All endpoints](https://posty.hu/en/docs/api/endpoints): full list.

Documentation pages

Is something missing from this page? Email [norbert@posty.hu](mailto:norbert@posty.hu) or use the form on the [Help](https://posty.hu/en/help) page.
