Skip to main content
POST
/
api
/
open-api
/
v1
/
images
Create Image Task
curl --request POST \
  --url https://www.jimiai.com/api/open-api/v1/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "size": "auto",
  "images": [
    "<string>"
  ],
  "resolution": "1k"
}
'
{
  "task_id": "<string>",
  "status": "<string>",
  "model": "<string>",
  "created_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.jimmyai.cn/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

Model name (e.g., gpt-image-2, nano-banana-2)

prompt
string
required

Text prompt for image generation

size
enum<string>
default:auto

Image aspect ratio/size. Supported values: auto (Automatic), 1:1 (Square), 3:2 (Landscape), 2:3 (Portrait), 4:3 (Landscape), 3:4 (Portrait), 5:4 (Landscape), 4:5 (Portrait), 16:9 (Widescreen), 9:16 (Vertical), 2:1 (Landscape), 1:2 (Portrait), 3:1 (Wide Landscape), 1:3 (Tall Portrait), 21:9 (Ultrawide), 9:21 (Ultrawide Vertical)

Available options:
auto,
1:1,
3:2,
2:3,
4:3,
3:4,
5:4,
4:5,
16:9,
9:16,
2:1,
1:2,
3:1,
1:3,
21:9,
9:21
images
string[]

Reference image URLs or base64 strings

resolution
enum<string>
default:1k

Image resolution (supported by gpt-image-2). Supported values: 1k, 2k, 4k.

Available options:
1k,
2k,
4k

Response

200 - application/json

Task created successfully

task_id
string
status
string
model
string
created_at
integer<int64>