---
title: "image-to-image"
method: POST
path: "/generation/{engine_id}/image-to-image"
tags: ["v1alpha/generation"]
---

# image-to-image

`POST /generation/{engine_id}/image-to-image`

Generate big fancy pictures from small fancy pictures - deprecated, use v1beta/image-to-image instead

## Path parameters

- `engine_id` string, required

## Headers

- `Accept` 'application/json' | 'image/png'
- `Organization` string
- `Authorization` string, required

## Response `200`

OK response.

## Other responses

- `400` — bad_request: - invalid_samples: Sample count may only be greater than 1 when the accept header is set to `application/json` - invalid_height_or_width: Height and width must be specified in increments of 64 - invalid_file_size: The file size of one or more of the provided files is invalid - invalid_mime_type: The mime type of one or more of the provided files is invalid - invalid_prompts: One or more of the prompts contains filtered words - invalid_pixel_count: Incorrect number of pixels specified. Requirements: - For 768 engines : <span style='display: inline-flex; justify-content: flex-start; gap:8px'>589,824 <span>≤</span> `height * width` <span>≤</span> 1,048,576</span> - All other engines: <span style='display: inline-flex; justify-content: flex-start; gap:8px'>262,144 <span>≤</span> `height * width` <span>≤</span> 1,048,576</span>
- `401` — unauthorized: API key missing or invalid
- `403` — permission_denied: You lack the necessary permissions to perform this action
- `404` — not_found: The requested resource was not found (e.g. specifing a model that does not exist)

---

[API](https://skmtc.dev/stability-ai/apis/stability-ai-rest-api-3.md) · [All operations](https://skmtc.dev/stability-ai/apis/stability-ai-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stability-ai/stability-ai-rest-api-3/revisions/3feaa94a4ae2/schema)
