> ## Documentation Index
> Fetch the complete documentation index at: https://doc.octopusx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Jimeng Image Overview

> Jimeng Image provides two integration methods: an OpenAI-compatible interface and an official format, supporting both image generation and image editing.

# Jimeng Image

The Jimeng Image series provides unified image generation and editing capabilities, supporting models such as `jimeng-4.0` and `jimeng-4.5`.

## Quick Start

<CardGroup cols={2}>
  <Card title="Image Generation" icon="image" href="/en/images/jimeng/generation">
    `POST /v1/images/generations`, submitted in OpenAI-compatible format.
  </Card>

  <Card title="Image Editing" icon="wand-sparkles" href="/en/images/jimeng/edit">
    `POST /v1/images/edits`, generates new images based on reference images.
  </Card>

  <Card title="Official Format Image Generation" icon="sparkles" href="/en/images/jimeng/official-generation">
    `POST /jm`, Jimeng official format interface.
  </Card>

  <Card title="Official Format Query" icon="hourglass" href="/en/images/jimeng/official-query">
    `POST /jm`, queries the task status and result in the official format.
  </Card>
</CardGroup>

## Supported Models

* `jimeng-4.0`: Jimeng 4.0 model
* `jimeng-4.5`: Jimeng 4.5 model

## Integration Methods

| Operation                     | API                           | Description                                                   |
| ----------------------------- | ----------------------------- | ------------------------------------------------------------- |
| **Image Generation**          | `POST /v1/images/generations` | OpenAI-compatible format                                      |
| **Image Editing**             | `POST /v1/images/edits`       | OpenAI-compatible format (multipart/form-data)                |
| **Official Image Generation** | `POST /jm`                    | Official format, requires Action and Version query parameters |
| **Official Query**            | `POST /jm`                    | Official format, query task status                            |

> **Note**: This page mainly introduces the general conventions of the OpenAI-compatible interface. For the official format interface, please refer to the corresponding documents below.

## Comparison

| Item                   | OpenAI Format                 | Official Format                           |
| ---------------------- | ----------------------------- | ----------------------------------------- |
| Image generation entry | `POST /v1/images/generations` | `POST /jm`                                |
| Editing entry          | `POST /v1/images/edits`       | —                                         |
| Query entry            | Returned synchronously        | `POST /jm` (Action=CVSync2AsyncGetResult) |
| Submission format      | JSON / multipart/form-data    | JSON + query parameters                   |
| Reference image        | `image` field (URL or file)   | `image_urls` array                        |
| Size control           | `size`, `ratio`, `resolution` | `width`, `height`, `resolution`           |

## Related APIs

* [Image Model Support Matrix](/en/images/model-matrix)
* [Image Generation](./generation)
* [Image Editing](./edit)
* [Official Format Image Generation](./official-generation)
* [Official Format Query](./official-query)
