Skip to main content
POST
https://zx1.deepwl.net
/
jm
Jimeng Official Format Image Generation
curl --request POST \
  --url https://zx1.deepwl.net/jm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "req_key": "<string>",
  "model": "<string>",
  "prompt": "<string>",
  "resolution": "<string>",
  "size": 123,
  "force_single": true,
  "image_urls": [
    {}
  ],
  "width": 123,
  "height": 123
}
'
{
  "code": 10000,
  "data": {
    "task_id": "67fb9e82-126e-4c71-bb16-a3bb3789e3b7",
    "status": "submitted"
  },
  "message": "Success",
  "request_id": "67fb9e82-126e-4c71-bb16-a3bb3789e3b7",
  "status": 10000,
  "time_elapsed": "35.381µs"
}

Documentation Index

Fetch the complete documentation index at: https://doc.deepwl.cn/llms.txt

Use this file to discover all available pages before exploring further.

Jimeng Official Format Image Generation

An image generation API in Jimeng’s official format, submitted in JSON and requiring query parameters.
  • The routing entry is POST /jm.
  • The Action and Version query parameters must be included in the URL.
  • Currently submitted using application/json.
  • Supports text-to-image, image-to-image, and other scenarios.
  • After successful submission, a task task_id is returned. Use Query Task to fetch the result later.

Supported Models

  • jimeng-4.0: Jimeng 4.0 model

Method and Path

POST /jm?Action=CVSync2AsyncSubmitTask&Version=2022-08-31

Request Example

curl -X POST "https://zx1.deepwl.net/jm?Action=CVSync2AsyncSubmitTask&Version=2022-08-31" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "req_key": "jimeng_t2i_v40",
    "model": "jimeng-4.0",
    "prompt": "The sunset glow illuminates the lake, with delicate oil painting texture",
    "force_single": true,
    "image_urls": [],
    "width": 1024,
    "height": 1024
  }'

Example with Reference Images

curl -X POST "https://zx1.deepwl.net/jm?Action=CVSync2AsyncSubmitTask&Version=2022-08-31" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "req_key": "jimeng_t2i_v40",
    "model": "jimeng-4.0",
    "prompt": "Generate an artistic style based on the reference images",
    "force_single": true,
    "image_urls": [
      "https://example.com/reference1.png",
      "https://example.com/reference2.png"
    ],
    "resolution": "2k"
  }'

Response Example

{
  "code": 10000,
  "data": {
    "task_id": "67fb9e82-126e-4c71-bb16-a3bb3789e3b7",
    "status": "submitted"
  },
  "message": "Success",
  "request_id": "67fb9e82-126e-4c71-bb16-a3bb3789e3b7",
  "status": 10000,
  "time_elapsed": "35.381µs"
}

Authentication

Authorization: Bearer YOUR_API_KEY

Query Parameters

Action
string
Operation type. Fixed value: CVSync2AsyncSubmitTask (submit task).
Version
string
API version. Fixed value: 2022-08-31.

Body

req_key
string
required
Service identifier. Fixed value: jimeng_t2i_v40.
model
string
required
Model name. For example, jimeng-4.0.
prompt
string
required
The prompt used to generate the image. Both Chinese and English are supported. It is recommended to keep it within 800 characters at most; overly long prompts may cause generation anomalies or fail to take effect. You can directly specify the image generation ratio in the prompt.
resolution
string
Resolution. Optional values: 1k, 2k, 4k.
size
integer
The image area to generate (deprecated). Default: 4194304, which is 20482048, generating a 2K resolution image. Range: [10241024, 4096*4096], capable of generating 1K to 4K resolution images.
force_single
boolean
Whether to force generation of a single image. Default: false.
image_urls
array
Image file URLs. Supports 0 to 10 images for image-to-image scenarios.
width
integer
Image width. Recommended values: 1024 (1K), 2048 (2K), 4096 (4K), etc.
height
integer
Image height. Recommended values: 1024 (1K), 2048 (2K), 4096 (4K), etc.

Response

code
integer
Status code. 10000 indicates success.
data
object
Response data container.
data.task_id
string
Task ID. Used to query task status and results later.
data.status
string
Task status.
message
string
Status message.
request_id
string
Request ID.
status
integer
Status code.
time_elapsed
string
Request duration.

1K Resolution

Width x HeightRatio
1024x10241:1

2K Resolution

Width x HeightRatio
2048x20481:1
2304x17284:3
2496x16643:2
2560x144016:9
3024x129621:9

4K Resolution

Width x HeightRatio
4096x40961:1
4694x35204:3
4992x33283:2
5404x304016:9
6198x265621:9