---
title: "importFotoAiGeneration: POST /fotoai/generations/:id/import | Posty Docs"
description: "Imports any FotoAI generation (also ones made on fotoai.hu) into the media library. Importing twice returns the same media."
canonical: https://posty.hu/en/docs/api/endpoints/import-foto-ai-generation
source: https://posty.hu/en/docs/api/endpoints/import-foto-ai-generation.md
---

Other

# importFotoAiGeneration: POST /fotoai/generations/:id/import

Imports any FotoAI generation (also ones made on fotoai.hu) into the media library. Importing twice returns the same media.

## Path

Method and path

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

Authorization

`media:write`

operationId

`importFotoAiGeneration`

Imports any FotoAI generation (also ones made on fotoai.hu) into the media library. Importing twice returns the same media.

## 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.
